diff --git a/packages/core/e2e/graphql/generated-e2e-admin-types.ts b/packages/core/e2e/graphql/generated-e2e-admin-types.ts index d15b08f19a..e7eaad17db 100644 --- a/packages/core/e2e/graphql/generated-e2e-admin-types.ts +++ b/packages/core/e2e/graphql/generated-e2e-admin-types.ts @@ -6,351 +6,370 @@ export type MakeOptional = Omit & { [SubKey in K]?: export type MakeMaybe = Omit & { [SubKey in K]: Maybe }; /** All built-in and custom scalars, mapped to their actual values */ export type Scalars = { - ID: string; - String: string; - Boolean: boolean; - Int: number; - Float: number; - /** A date-time string at UTC, such as 2007-12-03T10:15:30Z, compliant with the `date-time` format outlined in section 5.6 of the RFC 3339 profile of the ISO 8601 standard for representation of dates and times using the Gregorian calendar. */ - DateTime: any; - /** The `JSON` scalar type represents JSON values as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf). */ - JSON: any; - /** The `Upload` scalar type represents a file upload. */ - Upload: any; -}; - -export type AddFulfillmentToOrderResult = CreateFulfillmentError | EmptyOrderLineSelectionError | Fulfillment | FulfillmentStateTransitionError | InsufficientStockOnHandError | InvalidFulfillmentHandlerError | ItemsAlreadyFulfilledError; + ID: string; + String: string; + Boolean: boolean; + Int: number; + Float: number; + /** A date-time string at UTC, such as 2007-12-03T10:15:30Z, compliant with the `date-time` format outlined in section 5.6 of the RFC 3339 profile of the ISO 8601 standard for representation of dates and times using the Gregorian calendar. */ + DateTime: any; + /** The `JSON` scalar type represents JSON values as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf). */ + JSON: any; + /** The `Upload` scalar type represents a file upload. */ + Upload: any; +}; + +export type AddFulfillmentToOrderResult = + | CreateFulfillmentError + | EmptyOrderLineSelectionError + | Fulfillment + | FulfillmentStateTransitionError + | InsufficientStockOnHandError + | InvalidFulfillmentHandlerError + | ItemsAlreadyFulfilledError; export type AddItemInput = { - productVariantId: Scalars['ID']; - quantity: Scalars['Int']; + productVariantId: Scalars['ID']; + quantity: Scalars['Int']; }; export type AddItemToDraftOrderInput = { - productVariantId: Scalars['ID']; - quantity: Scalars['Int']; + productVariantId: Scalars['ID']; + quantity: Scalars['Int']; }; export type AddManualPaymentToOrderResult = ManualPaymentStateError | Order; export type AddNoteToCustomerInput = { - id: Scalars['ID']; - isPublic: Scalars['Boolean']; - note: Scalars['String']; + id: Scalars['ID']; + isPublic: Scalars['Boolean']; + note: Scalars['String']; }; export type AddNoteToOrderInput = { - id: Scalars['ID']; - isPublic: Scalars['Boolean']; - note: Scalars['String']; + id: Scalars['ID']; + isPublic: Scalars['Boolean']; + note: Scalars['String']; }; export type Address = Node & { - city?: Maybe; - company?: Maybe; - country: Country; - createdAt: Scalars['DateTime']; - customFields?: Maybe; - defaultBillingAddress?: Maybe; - defaultShippingAddress?: Maybe; - fullName?: Maybe; - id: Scalars['ID']; - phoneNumber?: Maybe; - postalCode?: Maybe; - province?: Maybe; - streetLine1: Scalars['String']; - streetLine2?: Maybe; - updatedAt: Scalars['DateTime']; + city?: Maybe; + company?: Maybe; + country: Country; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + defaultBillingAddress?: Maybe; + defaultShippingAddress?: Maybe; + fullName?: Maybe; + id: Scalars['ID']; + phoneNumber?: Maybe; + postalCode?: Maybe; + province?: Maybe; + streetLine1: Scalars['String']; + streetLine2?: Maybe; + updatedAt: Scalars['DateTime']; }; export type AdjustDraftOrderLineInput = { - orderLineId: Scalars['ID']; - quantity: Scalars['Int']; + orderLineId: Scalars['ID']; + quantity: Scalars['Int']; }; export type AdjustOrderLineInput = { - orderLineId: Scalars['ID']; - quantity: Scalars['Int']; + orderLineId: Scalars['ID']; + quantity: Scalars['Int']; }; export type Adjustment = { - adjustmentSource: Scalars['String']; - amount: Scalars['Int']; - description: Scalars['String']; - type: AdjustmentType; + adjustmentSource: Scalars['String']; + amount: Scalars['Int']; + description: Scalars['String']; + type: AdjustmentType; }; export enum AdjustmentType { - DISTRIBUTED_ORDER_PROMOTION = 'DISTRIBUTED_ORDER_PROMOTION', - OTHER = 'OTHER', - PROMOTION = 'PROMOTION' + DISTRIBUTED_ORDER_PROMOTION = 'DISTRIBUTED_ORDER_PROMOTION', + OTHER = 'OTHER', + PROMOTION = 'PROMOTION', } export type Administrator = Node & { - createdAt: Scalars['DateTime']; - customFields?: Maybe; - emailAddress: Scalars['String']; - firstName: Scalars['String']; - id: Scalars['ID']; - lastName: Scalars['String']; - updatedAt: Scalars['DateTime']; - user: User; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + emailAddress: Scalars['String']; + firstName: Scalars['String']; + id: Scalars['ID']; + lastName: Scalars['String']; + updatedAt: Scalars['DateTime']; + user: User; }; export type AdministratorFilterParameter = { - createdAt?: InputMaybe; - emailAddress?: InputMaybe; - firstName?: InputMaybe; - id?: InputMaybe; - lastName?: InputMaybe; - updatedAt?: InputMaybe; + createdAt?: InputMaybe; + emailAddress?: InputMaybe; + firstName?: InputMaybe; + id?: InputMaybe; + lastName?: InputMaybe; + updatedAt?: InputMaybe; }; export type AdministratorList = PaginatedList & { - items: Array; - totalItems: Scalars['Int']; + items: Array; + totalItems: Scalars['Int']; }; export type AdministratorListOptions = { - /** Allows the results to be filtered */ - filter?: InputMaybe; - /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ - filterOperator?: InputMaybe; - /** Skips the first n results, for use in pagination */ - skip?: InputMaybe; - /** Specifies which properties to sort the results by */ - sort?: InputMaybe; - /** Takes n results, for use in pagination */ - take?: InputMaybe; + /** Allows the results to be filtered */ + filter?: InputMaybe; + /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ + filterOperator?: InputMaybe; + /** Skips the first n results, for use in pagination */ + skip?: InputMaybe; + /** Specifies which properties to sort the results by */ + sort?: InputMaybe; + /** Takes n results, for use in pagination */ + take?: InputMaybe; }; export type AdministratorPaymentInput = { - metadata?: InputMaybe; - paymentMethod?: InputMaybe; + metadata?: InputMaybe; + paymentMethod?: InputMaybe; }; export type AdministratorRefundInput = { - paymentId: Scalars['ID']; - reason?: InputMaybe; + paymentId: Scalars['ID']; + reason?: InputMaybe; }; export type AdministratorSortParameter = { - createdAt?: InputMaybe; - emailAddress?: InputMaybe; - firstName?: InputMaybe; - id?: InputMaybe; - lastName?: InputMaybe; - updatedAt?: InputMaybe; -}; - -export type Allocation = Node & StockMovement & { - createdAt: Scalars['DateTime']; - id: Scalars['ID']; - orderLine: OrderLine; - productVariant: ProductVariant; - quantity: Scalars['Int']; - type: StockMovementType; - updatedAt: Scalars['DateTime']; -}; + createdAt?: InputMaybe; + emailAddress?: InputMaybe; + firstName?: InputMaybe; + id?: InputMaybe; + lastName?: InputMaybe; + updatedAt?: InputMaybe; +}; + +export type Allocation = Node & + StockMovement & { + createdAt: Scalars['DateTime']; + id: Scalars['ID']; + orderLine: OrderLine; + productVariant: ProductVariant; + quantity: Scalars['Int']; + type: StockMovementType; + updatedAt: Scalars['DateTime']; + }; /** Returned if an attempting to refund an OrderItem which has already been refunded */ export type AlreadyRefundedError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; - refundId: Scalars['ID']; + errorCode: ErrorCode; + message: Scalars['String']; + refundId: Scalars['ID']; }; -export type ApplyCouponCodeResult = CouponCodeExpiredError | CouponCodeInvalidError | CouponCodeLimitError | Order; +export type ApplyCouponCodeResult = + | CouponCodeExpiredError + | CouponCodeInvalidError + | CouponCodeLimitError + | Order; export type Asset = Node & { - createdAt: Scalars['DateTime']; - customFields?: Maybe; - fileSize: Scalars['Int']; - focalPoint?: Maybe; - height: Scalars['Int']; - id: Scalars['ID']; - mimeType: Scalars['String']; - name: Scalars['String']; - preview: Scalars['String']; - source: Scalars['String']; - tags: Array; - type: AssetType; - updatedAt: Scalars['DateTime']; - width: Scalars['Int']; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + fileSize: Scalars['Int']; + focalPoint?: Maybe; + height: Scalars['Int']; + id: Scalars['ID']; + mimeType: Scalars['String']; + name: Scalars['String']; + preview: Scalars['String']; + source: Scalars['String']; + tags: Array; + type: AssetType; + updatedAt: Scalars['DateTime']; + width: Scalars['Int']; }; export type AssetFilterParameter = { - createdAt?: InputMaybe; - fileSize?: InputMaybe; - height?: InputMaybe; - id?: InputMaybe; - mimeType?: InputMaybe; - name?: InputMaybe; - preview?: InputMaybe; - source?: InputMaybe; - type?: InputMaybe; - updatedAt?: InputMaybe; - width?: InputMaybe; + createdAt?: InputMaybe; + fileSize?: InputMaybe; + height?: InputMaybe; + id?: InputMaybe; + mimeType?: InputMaybe; + name?: InputMaybe; + preview?: InputMaybe; + source?: InputMaybe; + type?: InputMaybe; + updatedAt?: InputMaybe; + width?: InputMaybe; }; export type AssetList = PaginatedList & { - items: Array; - totalItems: Scalars['Int']; + items: Array; + totalItems: Scalars['Int']; }; export type AssetListOptions = { - /** Allows the results to be filtered */ - filter?: InputMaybe; - /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ - filterOperator?: InputMaybe; - /** Skips the first n results, for use in pagination */ - skip?: InputMaybe; - /** Specifies which properties to sort the results by */ - sort?: InputMaybe; - tags?: InputMaybe>; - tagsOperator?: InputMaybe; - /** Takes n results, for use in pagination */ - take?: InputMaybe; + /** Allows the results to be filtered */ + filter?: InputMaybe; + /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ + filterOperator?: InputMaybe; + /** Skips the first n results, for use in pagination */ + skip?: InputMaybe; + /** Specifies which properties to sort the results by */ + sort?: InputMaybe; + tags?: InputMaybe>; + tagsOperator?: InputMaybe; + /** Takes n results, for use in pagination */ + take?: InputMaybe; }; export type AssetSortParameter = { - createdAt?: InputMaybe; - fileSize?: InputMaybe; - height?: InputMaybe; - id?: InputMaybe; - mimeType?: InputMaybe; - name?: InputMaybe; - preview?: InputMaybe; - source?: InputMaybe; - updatedAt?: InputMaybe; - width?: InputMaybe; + createdAt?: InputMaybe; + fileSize?: InputMaybe; + height?: InputMaybe; + id?: InputMaybe; + mimeType?: InputMaybe; + name?: InputMaybe; + preview?: InputMaybe; + source?: InputMaybe; + updatedAt?: InputMaybe; + width?: InputMaybe; }; export enum AssetType { - BINARY = 'BINARY', - IMAGE = 'IMAGE', - VIDEO = 'VIDEO' + BINARY = 'BINARY', + IMAGE = 'IMAGE', + VIDEO = 'VIDEO', } export type AssignAssetsToChannelInput = { - assetIds: Array; - channelId: Scalars['ID']; + assetIds: Array; + channelId: Scalars['ID']; }; export type AssignCollectionsToChannelInput = { - channelId: Scalars['ID']; - collectionIds: Array; + channelId: Scalars['ID']; + collectionIds: Array; }; export type AssignFacetsToChannelInput = { - channelId: Scalars['ID']; - facetIds: Array; + channelId: Scalars['ID']; + facetIds: Array; }; export type AssignProductVariantsToChannelInput = { - channelId: Scalars['ID']; - priceFactor?: InputMaybe; - productVariantIds: Array; + channelId: Scalars['ID']; + priceFactor?: InputMaybe; + productVariantIds: Array; }; export type AssignProductsToChannelInput = { - channelId: Scalars['ID']; - priceFactor?: InputMaybe; - productIds: Array; + channelId: Scalars['ID']; + priceFactor?: InputMaybe; + productIds: Array; }; export type AssignPromotionsToChannelInput = { - channelId: Scalars['ID']; - promotionIds: Array; + channelId: Scalars['ID']; + promotionIds: Array; }; export type AuthenticationInput = { - native?: InputMaybe; + native?: InputMaybe; }; export type AuthenticationMethod = Node & { - createdAt: Scalars['DateTime']; - id: Scalars['ID']; - strategy: Scalars['String']; - updatedAt: Scalars['DateTime']; + createdAt: Scalars['DateTime']; + id: Scalars['ID']; + strategy: Scalars['String']; + updatedAt: Scalars['DateTime']; }; export type AuthenticationResult = CurrentUser | InvalidCredentialsError; export type BooleanCustomFieldConfig = CustomField & { - description?: Maybe>; - internal?: Maybe; - label?: Maybe>; - list: Scalars['Boolean']; - name: Scalars['String']; - nullable?: Maybe; - readonly?: Maybe; - type: Scalars['String']; - ui?: Maybe; + description?: Maybe>; + internal?: Maybe; + label?: Maybe>; + list: Scalars['Boolean']; + name: Scalars['String']; + nullable?: Maybe; + readonly?: Maybe; + type: Scalars['String']; + ui?: Maybe; }; /** Operators for filtering on a list of Boolean fields */ export type BooleanListOperators = { - inList: Scalars['Boolean']; + inList: Scalars['Boolean']; }; /** Operators for filtering on a Boolean field */ export type BooleanOperators = { - eq?: InputMaybe; - isNull?: InputMaybe; + eq?: InputMaybe; + isNull?: InputMaybe; }; /** Returned if an attempting to cancel lines from an Order which is still active */ export type CancelActiveOrderError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; - orderState: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; + orderState: Scalars['String']; }; export type CancelOrderInput = { - /** Specify whether the shipping charges should also be cancelled. Defaults to false */ - cancelShipping?: InputMaybe; - /** Optionally specify which OrderLines to cancel. If not provided, all OrderLines will be cancelled */ - lines?: InputMaybe>; - /** The id of the order to be cancelled */ - orderId: Scalars['ID']; - reason?: InputMaybe; -}; - -export type CancelOrderResult = CancelActiveOrderError | EmptyOrderLineSelectionError | MultipleOrderError | Order | OrderStateTransitionError | QuantityTooGreatError; + /** Specify whether the shipping charges should also be cancelled. Defaults to false */ + cancelShipping?: InputMaybe; + /** Optionally specify which OrderLines to cancel. If not provided, all OrderLines will be cancelled */ + lines?: InputMaybe>; + /** The id of the order to be cancelled */ + orderId: Scalars['ID']; + reason?: InputMaybe; +}; + +export type CancelOrderResult = + | CancelActiveOrderError + | EmptyOrderLineSelectionError + | MultipleOrderError + | Order + | OrderStateTransitionError + | QuantityTooGreatError; /** Returned if the Payment cancellation fails */ export type CancelPaymentError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; - paymentErrorMessage: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; + paymentErrorMessage: Scalars['String']; }; export type CancelPaymentResult = CancelPaymentError | Payment | PaymentStateTransitionError; -export type Cancellation = Node & StockMovement & { - createdAt: Scalars['DateTime']; - id: Scalars['ID']; - orderLine: OrderLine; - productVariant: ProductVariant; - quantity: Scalars['Int']; - type: StockMovementType; - updatedAt: Scalars['DateTime']; -}; +export type Cancellation = Node & + StockMovement & { + createdAt: Scalars['DateTime']; + id: Scalars['ID']; + orderLine: OrderLine; + productVariant: ProductVariant; + quantity: Scalars['Int']; + type: StockMovementType; + updatedAt: Scalars['DateTime']; + }; export type Channel = Node & { - code: Scalars['String']; - createdAt: Scalars['DateTime']; - currencyCode: CurrencyCode; - customFields?: Maybe; - defaultLanguageCode: LanguageCode; - defaultShippingZone?: Maybe; - defaultTaxZone?: Maybe; - id: Scalars['ID']; - pricesIncludeTax: Scalars['Boolean']; - seller?: Maybe; - token: Scalars['String']; - updatedAt: Scalars['DateTime']; + code: Scalars['String']; + createdAt: Scalars['DateTime']; + currencyCode: CurrencyCode; + customFields?: Maybe; + defaultLanguageCode: LanguageCode; + defaultShippingZone?: Maybe; + defaultTaxZone?: Maybe; + id: Scalars['ID']; + pricesIncludeTax: Scalars['Boolean']; + seller?: Maybe; + token: Scalars['String']; + updatedAt: Scalars['DateTime']; }; /** @@ -358,74 +377,73 @@ export type Channel = Node & { * of the GlobalSettings */ export type ChannelDefaultLanguageError = ErrorResult & { - channelCode: Scalars['String']; - errorCode: ErrorCode; - language: Scalars['String']; - message: Scalars['String']; + channelCode: Scalars['String']; + errorCode: ErrorCode; + language: Scalars['String']; + message: Scalars['String']; }; export type Collection = Node & { - assets: Array; - breadcrumbs: Array; - children?: Maybe>; - createdAt: Scalars['DateTime']; - customFields?: Maybe; - description: Scalars['String']; - featuredAsset?: Maybe; - filters: Array; - id: Scalars['ID']; - inheritFilters: Scalars['Boolean']; - isPrivate: Scalars['Boolean']; - languageCode?: Maybe; - name: Scalars['String']; - parent?: Maybe; - position: Scalars['Int']; - productVariants: ProductVariantList; - slug: Scalars['String']; - translations: Array; - updatedAt: Scalars['DateTime']; + assets: Array; + breadcrumbs: Array; + children?: Maybe>; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + description: Scalars['String']; + featuredAsset?: Maybe; + filters: Array; + id: Scalars['ID']; + inheritFilters: Scalars['Boolean']; + isPrivate: Scalars['Boolean']; + languageCode?: Maybe; + name: Scalars['String']; + parent?: Maybe; + position: Scalars['Int']; + productVariants: ProductVariantList; + slug: Scalars['String']; + translations: Array; + updatedAt: Scalars['DateTime']; }; - export type CollectionProductVariantsArgs = { - options?: InputMaybe; + options?: InputMaybe; }; export type CollectionBreadcrumb = { - id: Scalars['ID']; - name: Scalars['String']; - slug: Scalars['String']; + id: Scalars['ID']; + name: Scalars['String']; + slug: Scalars['String']; }; export type CollectionFilterParameter = { - createdAt?: InputMaybe; - description?: InputMaybe; - id?: InputMaybe; - inheritFilters?: InputMaybe; - isPrivate?: InputMaybe; - languageCode?: InputMaybe; - name?: InputMaybe; - position?: InputMaybe; - slug?: InputMaybe; - updatedAt?: InputMaybe; + createdAt?: InputMaybe; + description?: InputMaybe; + id?: InputMaybe; + inheritFilters?: InputMaybe; + isPrivate?: InputMaybe; + languageCode?: InputMaybe; + name?: InputMaybe; + position?: InputMaybe; + slug?: InputMaybe; + updatedAt?: InputMaybe; }; export type CollectionList = PaginatedList & { - items: Array; - totalItems: Scalars['Int']; + items: Array; + totalItems: Scalars['Int']; }; export type CollectionListOptions = { - /** Allows the results to be filtered */ - filter?: InputMaybe; - /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ - filterOperator?: InputMaybe; - /** Skips the first n results, for use in pagination */ - skip?: InputMaybe; - /** Specifies which properties to sort the results by */ - sort?: InputMaybe; - /** Takes n results, for use in pagination */ - take?: InputMaybe; + /** Allows the results to be filtered */ + filter?: InputMaybe; + /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ + filterOperator?: InputMaybe; + /** Skips the first n results, for use in pagination */ + skip?: InputMaybe; + /** Specifies which properties to sort the results by */ + sort?: InputMaybe; + /** Takes n results, for use in pagination */ + take?: InputMaybe; }; /** @@ -433,407 +451,407 @@ export type CollectionListOptions = { * by the search, and in what quantity. */ export type CollectionResult = { - collection: Collection; - count: Scalars['Int']; + collection: Collection; + count: Scalars['Int']; }; export type CollectionSortParameter = { - createdAt?: InputMaybe; - description?: InputMaybe; - id?: InputMaybe; - name?: InputMaybe; - position?: InputMaybe; - slug?: InputMaybe; - updatedAt?: InputMaybe; + createdAt?: InputMaybe; + description?: InputMaybe; + id?: InputMaybe; + name?: InputMaybe; + position?: InputMaybe; + slug?: InputMaybe; + updatedAt?: InputMaybe; }; export type CollectionTranslation = { - createdAt: Scalars['DateTime']; - description: Scalars['String']; - id: Scalars['ID']; - languageCode: LanguageCode; - name: Scalars['String']; - slug: Scalars['String']; - updatedAt: Scalars['DateTime']; + createdAt: Scalars['DateTime']; + description: Scalars['String']; + id: Scalars['ID']; + languageCode: LanguageCode; + name: Scalars['String']; + slug: Scalars['String']; + updatedAt: Scalars['DateTime']; }; export type ConfigArg = { - name: Scalars['String']; - value: Scalars['String']; + name: Scalars['String']; + value: Scalars['String']; }; export type ConfigArgDefinition = { - defaultValue?: Maybe; - description?: Maybe; - label?: Maybe; - list: Scalars['Boolean']; - name: Scalars['String']; - required: Scalars['Boolean']; - type: Scalars['String']; - ui?: Maybe; + defaultValue?: Maybe; + description?: Maybe; + label?: Maybe; + list: Scalars['Boolean']; + name: Scalars['String']; + required: Scalars['Boolean']; + type: Scalars['String']; + ui?: Maybe; }; export type ConfigArgInput = { - name: Scalars['String']; - /** A JSON stringified representation of the actual value */ - value: Scalars['String']; + name: Scalars['String']; + /** A JSON stringified representation of the actual value */ + value: Scalars['String']; }; export type ConfigurableOperation = { - args: Array; - code: Scalars['String']; + args: Array; + code: Scalars['String']; }; export type ConfigurableOperationDefinition = { - args: Array; - code: Scalars['String']; - description: Scalars['String']; + args: Array; + code: Scalars['String']; + description: Scalars['String']; }; export type ConfigurableOperationInput = { - arguments: Array; - code: Scalars['String']; + arguments: Array; + code: Scalars['String']; }; export type Coordinate = { - x: Scalars['Float']; - y: Scalars['Float']; + x: Scalars['Float']; + y: Scalars['Float']; }; export type CoordinateInput = { - x: Scalars['Float']; - y: Scalars['Float']; + x: Scalars['Float']; + y: Scalars['Float']; }; export type Country = Node & { - code: Scalars['String']; - createdAt: Scalars['DateTime']; - customFields?: Maybe; - enabled: Scalars['Boolean']; - id: Scalars['ID']; - languageCode: LanguageCode; - name: Scalars['String']; - translations: Array; - updatedAt: Scalars['DateTime']; + code: Scalars['String']; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + enabled: Scalars['Boolean']; + id: Scalars['ID']; + languageCode: LanguageCode; + name: Scalars['String']; + translations: Array; + updatedAt: Scalars['DateTime']; }; export type CountryFilterParameter = { - code?: InputMaybe; - createdAt?: InputMaybe; - enabled?: InputMaybe; - id?: InputMaybe; - languageCode?: InputMaybe; - name?: InputMaybe; - updatedAt?: InputMaybe; + code?: InputMaybe; + createdAt?: InputMaybe; + enabled?: InputMaybe; + id?: InputMaybe; + languageCode?: InputMaybe; + name?: InputMaybe; + updatedAt?: InputMaybe; }; export type CountryList = PaginatedList & { - items: Array; - totalItems: Scalars['Int']; + items: Array; + totalItems: Scalars['Int']; }; export type CountryListOptions = { - /** Allows the results to be filtered */ - filter?: InputMaybe; - /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ - filterOperator?: InputMaybe; - /** Skips the first n results, for use in pagination */ - skip?: InputMaybe; - /** Specifies which properties to sort the results by */ - sort?: InputMaybe; - /** Takes n results, for use in pagination */ - take?: InputMaybe; + /** Allows the results to be filtered */ + filter?: InputMaybe; + /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ + filterOperator?: InputMaybe; + /** Skips the first n results, for use in pagination */ + skip?: InputMaybe; + /** Specifies which properties to sort the results by */ + sort?: InputMaybe; + /** Takes n results, for use in pagination */ + take?: InputMaybe; }; export type CountrySortParameter = { - code?: InputMaybe; - createdAt?: InputMaybe; - id?: InputMaybe; - name?: InputMaybe; - updatedAt?: InputMaybe; + code?: InputMaybe; + createdAt?: InputMaybe; + id?: InputMaybe; + name?: InputMaybe; + updatedAt?: InputMaybe; }; export type CountryTranslation = { - createdAt: Scalars['DateTime']; - id: Scalars['ID']; - languageCode: LanguageCode; - name: Scalars['String']; - updatedAt: Scalars['DateTime']; + createdAt: Scalars['DateTime']; + id: Scalars['ID']; + languageCode: LanguageCode; + name: Scalars['String']; + updatedAt: Scalars['DateTime']; }; export type CountryTranslationInput = { - customFields?: InputMaybe; - id?: InputMaybe; - languageCode: LanguageCode; - name?: InputMaybe; + customFields?: InputMaybe; + id?: InputMaybe; + languageCode: LanguageCode; + name?: InputMaybe; }; /** Returned if the provided coupon code is invalid */ export type CouponCodeExpiredError = ErrorResult & { - couponCode: Scalars['String']; - errorCode: ErrorCode; - message: Scalars['String']; + couponCode: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; }; /** Returned if the provided coupon code is invalid */ export type CouponCodeInvalidError = ErrorResult & { - couponCode: Scalars['String']; - errorCode: ErrorCode; - message: Scalars['String']; + couponCode: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; }; /** Returned if the provided coupon code is invalid */ export type CouponCodeLimitError = ErrorResult & { - couponCode: Scalars['String']; - errorCode: ErrorCode; - limit: Scalars['Int']; - message: Scalars['String']; + couponCode: Scalars['String']; + errorCode: ErrorCode; + limit: Scalars['Int']; + message: Scalars['String']; }; export type CreateAddressInput = { - city?: InputMaybe; - company?: InputMaybe; - countryCode: Scalars['String']; - customFields?: InputMaybe; - defaultBillingAddress?: InputMaybe; - defaultShippingAddress?: InputMaybe; - fullName?: InputMaybe; - phoneNumber?: InputMaybe; - postalCode?: InputMaybe; - province?: InputMaybe; - streetLine1: Scalars['String']; - streetLine2?: InputMaybe; + city?: InputMaybe; + company?: InputMaybe; + countryCode: Scalars['String']; + customFields?: InputMaybe; + defaultBillingAddress?: InputMaybe; + defaultShippingAddress?: InputMaybe; + fullName?: InputMaybe; + phoneNumber?: InputMaybe; + postalCode?: InputMaybe; + province?: InputMaybe; + streetLine1: Scalars['String']; + streetLine2?: InputMaybe; }; export type CreateAdministratorInput = { - customFields?: InputMaybe; - emailAddress: Scalars['String']; - firstName: Scalars['String']; - lastName: Scalars['String']; - password: Scalars['String']; - roleIds: Array; + customFields?: InputMaybe; + emailAddress: Scalars['String']; + firstName: Scalars['String']; + lastName: Scalars['String']; + password: Scalars['String']; + roleIds: Array; }; export type CreateAssetInput = { - customFields?: InputMaybe; - file: Scalars['Upload']; - tags?: InputMaybe>; + customFields?: InputMaybe; + file: Scalars['Upload']; + tags?: InputMaybe>; }; export type CreateAssetResult = Asset | MimeTypeError; export type CreateChannelInput = { - code: Scalars['String']; - currencyCode: CurrencyCode; - customFields?: InputMaybe; - defaultLanguageCode: LanguageCode; - defaultShippingZoneId: Scalars['ID']; - defaultTaxZoneId: Scalars['ID']; - pricesIncludeTax: Scalars['Boolean']; - 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; - description?: InputMaybe; - enabled: Scalars['Boolean']; - handler: ConfigurableOperationInput; - name: Scalars['String']; + checker?: InputMaybe; + code: Scalars['String']; + customFields?: InputMaybe; + description?: InputMaybe; + enabled: Scalars['Boolean']; + handler: ConfigurableOperationInput; + name: Scalars['String']; }; export type CreateProductInput = { - assetIds?: InputMaybe>; - customFields?: InputMaybe; - enabled?: InputMaybe; - facetValueIds?: InputMaybe>; - featuredAssetId?: InputMaybe; - translations: Array; + assetIds?: InputMaybe>; + customFields?: InputMaybe; + enabled?: InputMaybe; + facetValueIds?: InputMaybe>; + featuredAssetId?: InputMaybe; + translations: Array; }; export type CreateProductOptionGroupInput = { - code: Scalars['String']; - customFields?: InputMaybe; - options: Array; - translations: Array; + code: Scalars['String']; + customFields?: InputMaybe; + options: Array; + translations: Array; }; export type CreateProductOptionInput = { - code: Scalars['String']; - customFields?: InputMaybe; - productOptionGroupId: Scalars['ID']; - translations: Array; + code: Scalars['String']; + customFields?: InputMaybe; + productOptionGroupId: Scalars['ID']; + translations: Array; }; export type CreateProductVariantInput = { - assetIds?: InputMaybe>; - customFields?: InputMaybe; - facetValueIds?: InputMaybe>; - featuredAssetId?: InputMaybe; - optionIds?: InputMaybe>; - outOfStockThreshold?: InputMaybe; - price?: InputMaybe; - productId: Scalars['ID']; - sku: Scalars['String']; - stockOnHand?: InputMaybe; - taxCategoryId?: InputMaybe; - trackInventory?: InputMaybe; - translations: Array; - useGlobalOutOfStockThreshold?: InputMaybe; + assetIds?: InputMaybe>; + customFields?: InputMaybe; + facetValueIds?: InputMaybe>; + featuredAssetId?: InputMaybe; + optionIds?: InputMaybe>; + outOfStockThreshold?: InputMaybe; + price?: InputMaybe; + productId: Scalars['ID']; + sku: Scalars['String']; + stockOnHand?: InputMaybe; + taxCategoryId?: InputMaybe; + trackInventory?: InputMaybe; + translations: Array; + useGlobalOutOfStockThreshold?: InputMaybe; }; export type CreateProductVariantOptionInput = { - code: Scalars['String']; - optionGroupId: Scalars['ID']; - translations: Array; + code: Scalars['String']; + optionGroupId: Scalars['ID']; + translations: Array; }; export type CreatePromotionInput = { - actions: Array; - conditions: Array; - couponCode?: InputMaybe; - customFields?: InputMaybe; - enabled: Scalars['Boolean']; - endsAt?: InputMaybe; - name: Scalars['String']; - perCustomerUsageLimit?: InputMaybe; - startsAt?: InputMaybe; + actions: Array; + conditions: Array; + couponCode?: InputMaybe; + customFields?: InputMaybe; + enabled: Scalars['Boolean']; + endsAt?: InputMaybe; + name: Scalars['String']; + perCustomerUsageLimit?: InputMaybe; + startsAt?: InputMaybe; }; export type CreatePromotionResult = MissingConditionsError | Promotion; export type CreateRoleInput = { - channelIds?: InputMaybe>; - code: Scalars['String']; - description: Scalars['String']; - permissions: Array; + channelIds?: InputMaybe>; + code: Scalars['String']; + description: Scalars['String']; + permissions: Array; }; export type CreateSellerCustomFieldsInput = { - connectedAccountId?: InputMaybe; + connectedAccountId?: InputMaybe; }; 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 CreateTagInput = { - value: Scalars['String']; + value: Scalars['String']; }; export type CreateTaxCategoryInput = { - customFields?: InputMaybe; - isDefault?: InputMaybe; - name: Scalars['String']; + customFields?: InputMaybe; + isDefault?: InputMaybe; + name: Scalars['String']; }; export type CreateTaxRateInput = { - categoryId: Scalars['ID']; - customFields?: InputMaybe; - customerGroupId?: InputMaybe; - enabled: Scalars['Boolean']; - name: Scalars['String']; - value: Scalars['Float']; - zoneId: Scalars['ID']; + categoryId: Scalars['ID']; + customFields?: InputMaybe; + customerGroupId?: InputMaybe; + enabled: Scalars['Boolean']; + name: Scalars['String']; + value: Scalars['Float']; + zoneId: Scalars['ID']; }; export type CreateVendorInput = { - name: Scalars['String']; + name: Scalars['String']; }; export type CreateZoneInput = { - customFields?: InputMaybe; - memberIds?: InputMaybe>; - name: Scalars['String']; + customFields?: InputMaybe; + memberIds?: InputMaybe>; + name: Scalars['String']; }; /** @@ -843,509 +861,514 @@ export type CreateZoneInput = { * @docsCategory common */ export enum CurrencyCode { - /** United Arab Emirates dirham */ - AED = 'AED', - /** Afghan afghani */ - AFN = 'AFN', - /** Albanian lek */ - ALL = 'ALL', - /** Armenian dram */ - AMD = 'AMD', - /** Netherlands Antillean guilder */ - ANG = 'ANG', - /** Angolan kwanza */ - AOA = 'AOA', - /** Argentine peso */ - ARS = 'ARS', - /** Australian dollar */ - AUD = 'AUD', - /** Aruban florin */ - AWG = 'AWG', - /** Azerbaijani manat */ - AZN = 'AZN', - /** Bosnia and Herzegovina convertible mark */ - BAM = 'BAM', - /** Barbados dollar */ - BBD = 'BBD', - /** Bangladeshi taka */ - BDT = 'BDT', - /** Bulgarian lev */ - BGN = 'BGN', - /** Bahraini dinar */ - BHD = 'BHD', - /** Burundian franc */ - BIF = 'BIF', - /** Bermudian dollar */ - BMD = 'BMD', - /** Brunei dollar */ - BND = 'BND', - /** Boliviano */ - BOB = 'BOB', - /** Brazilian real */ - BRL = 'BRL', - /** Bahamian dollar */ - BSD = 'BSD', - /** Bhutanese ngultrum */ - BTN = 'BTN', - /** Botswana pula */ - BWP = 'BWP', - /** Belarusian ruble */ - BYN = 'BYN', - /** Belize dollar */ - BZD = 'BZD', - /** Canadian dollar */ - CAD = 'CAD', - /** Congolese franc */ - CDF = 'CDF', - /** Swiss franc */ - CHF = 'CHF', - /** Chilean peso */ - CLP = 'CLP', - /** Renminbi (Chinese) yuan */ - CNY = 'CNY', - /** Colombian peso */ - COP = 'COP', - /** Costa Rican colon */ - CRC = 'CRC', - /** Cuban convertible peso */ - CUC = 'CUC', - /** Cuban peso */ - CUP = 'CUP', - /** Cape Verde escudo */ - CVE = 'CVE', - /** Czech koruna */ - CZK = 'CZK', - /** Djiboutian franc */ - DJF = 'DJF', - /** Danish krone */ - DKK = 'DKK', - /** Dominican peso */ - DOP = 'DOP', - /** Algerian dinar */ - DZD = 'DZD', - /** Egyptian pound */ - EGP = 'EGP', - /** Eritrean nakfa */ - ERN = 'ERN', - /** Ethiopian birr */ - ETB = 'ETB', - /** Euro */ - EUR = 'EUR', - /** Fiji dollar */ - FJD = 'FJD', - /** Falkland Islands pound */ - FKP = 'FKP', - /** Pound sterling */ - GBP = 'GBP', - /** Georgian lari */ - GEL = 'GEL', - /** Ghanaian cedi */ - GHS = 'GHS', - /** Gibraltar pound */ - GIP = 'GIP', - /** Gambian dalasi */ - GMD = 'GMD', - /** Guinean franc */ - GNF = 'GNF', - /** Guatemalan quetzal */ - GTQ = 'GTQ', - /** Guyanese dollar */ - GYD = 'GYD', - /** Hong Kong dollar */ - HKD = 'HKD', - /** Honduran lempira */ - HNL = 'HNL', - /** Croatian kuna */ - HRK = 'HRK', - /** Haitian gourde */ - HTG = 'HTG', - /** Hungarian forint */ - HUF = 'HUF', - /** Indonesian rupiah */ - IDR = 'IDR', - /** Israeli new shekel */ - ILS = 'ILS', - /** Indian rupee */ - INR = 'INR', - /** Iraqi dinar */ - IQD = 'IQD', - /** Iranian rial */ - IRR = 'IRR', - /** Icelandic króna */ - ISK = 'ISK', - /** Jamaican dollar */ - JMD = 'JMD', - /** Jordanian dinar */ - JOD = 'JOD', - /** Japanese yen */ - JPY = 'JPY', - /** Kenyan shilling */ - KES = 'KES', - /** Kyrgyzstani som */ - KGS = 'KGS', - /** Cambodian riel */ - KHR = 'KHR', - /** Comoro franc */ - KMF = 'KMF', - /** North Korean won */ - KPW = 'KPW', - /** South Korean won */ - KRW = 'KRW', - /** Kuwaiti dinar */ - KWD = 'KWD', - /** Cayman Islands dollar */ - KYD = 'KYD', - /** Kazakhstani tenge */ - KZT = 'KZT', - /** Lao kip */ - LAK = 'LAK', - /** Lebanese pound */ - LBP = 'LBP', - /** Sri Lankan rupee */ - LKR = 'LKR', - /** Liberian dollar */ - LRD = 'LRD', - /** Lesotho loti */ - LSL = 'LSL', - /** Libyan dinar */ - LYD = 'LYD', - /** Moroccan dirham */ - MAD = 'MAD', - /** Moldovan leu */ - MDL = 'MDL', - /** Malagasy ariary */ - MGA = 'MGA', - /** Macedonian denar */ - MKD = 'MKD', - /** Myanmar kyat */ - MMK = 'MMK', - /** Mongolian tögrög */ - MNT = 'MNT', - /** Macanese pataca */ - MOP = 'MOP', - /** Mauritanian ouguiya */ - MRU = 'MRU', - /** Mauritian rupee */ - MUR = 'MUR', - /** Maldivian rufiyaa */ - MVR = 'MVR', - /** Malawian kwacha */ - MWK = 'MWK', - /** Mexican peso */ - MXN = 'MXN', - /** Malaysian ringgit */ - MYR = 'MYR', - /** Mozambican metical */ - MZN = 'MZN', - /** Namibian dollar */ - NAD = 'NAD', - /** Nigerian naira */ - NGN = 'NGN', - /** Nicaraguan córdoba */ - NIO = 'NIO', - /** Norwegian krone */ - NOK = 'NOK', - /** Nepalese rupee */ - NPR = 'NPR', - /** New Zealand dollar */ - NZD = 'NZD', - /** Omani rial */ - OMR = 'OMR', - /** Panamanian balboa */ - PAB = 'PAB', - /** Peruvian sol */ - PEN = 'PEN', - /** Papua New Guinean kina */ - PGK = 'PGK', - /** Philippine peso */ - PHP = 'PHP', - /** Pakistani rupee */ - PKR = 'PKR', - /** Polish złoty */ - PLN = 'PLN', - /** Paraguayan guaraní */ - PYG = 'PYG', - /** Qatari riyal */ - QAR = 'QAR', - /** Romanian leu */ - RON = 'RON', - /** Serbian dinar */ - RSD = 'RSD', - /** Russian ruble */ - RUB = 'RUB', - /** Rwandan franc */ - RWF = 'RWF', - /** Saudi riyal */ - SAR = 'SAR', - /** Solomon Islands dollar */ - SBD = 'SBD', - /** Seychelles rupee */ - SCR = 'SCR', - /** Sudanese pound */ - SDG = 'SDG', - /** Swedish krona/kronor */ - SEK = 'SEK', - /** Singapore dollar */ - SGD = 'SGD', - /** Saint Helena pound */ - SHP = 'SHP', - /** Sierra Leonean leone */ - SLL = 'SLL', - /** Somali shilling */ - SOS = 'SOS', - /** Surinamese dollar */ - SRD = 'SRD', - /** South Sudanese pound */ - SSP = 'SSP', - /** São Tomé and Príncipe dobra */ - STN = 'STN', - /** Salvadoran colón */ - SVC = 'SVC', - /** Syrian pound */ - SYP = 'SYP', - /** Swazi lilangeni */ - SZL = 'SZL', - /** Thai baht */ - THB = 'THB', - /** Tajikistani somoni */ - TJS = 'TJS', - /** Turkmenistan manat */ - TMT = 'TMT', - /** Tunisian dinar */ - TND = 'TND', - /** Tongan paʻanga */ - TOP = 'TOP', - /** Turkish lira */ - TRY = 'TRY', - /** Trinidad and Tobago dollar */ - TTD = 'TTD', - /** New Taiwan dollar */ - TWD = 'TWD', - /** Tanzanian shilling */ - TZS = 'TZS', - /** Ukrainian hryvnia */ - UAH = 'UAH', - /** Ugandan shilling */ - UGX = 'UGX', - /** United States dollar */ - USD = 'USD', - /** Uruguayan peso */ - UYU = 'UYU', - /** Uzbekistan som */ - UZS = 'UZS', - /** Venezuelan bolívar soberano */ - VES = 'VES', - /** Vietnamese đồng */ - VND = 'VND', - /** Vanuatu vatu */ - VUV = 'VUV', - /** Samoan tala */ - WST = 'WST', - /** CFA franc BEAC */ - XAF = 'XAF', - /** East Caribbean dollar */ - XCD = 'XCD', - /** CFA franc BCEAO */ - XOF = 'XOF', - /** CFP franc (franc Pacifique) */ - XPF = 'XPF', - /** Yemeni rial */ - YER = 'YER', - /** South African rand */ - ZAR = 'ZAR', - /** Zambian kwacha */ - ZMW = 'ZMW', - /** Zimbabwean dollar */ - ZWL = 'ZWL' + /** United Arab Emirates dirham */ + AED = 'AED', + /** Afghan afghani */ + AFN = 'AFN', + /** Albanian lek */ + ALL = 'ALL', + /** Armenian dram */ + AMD = 'AMD', + /** Netherlands Antillean guilder */ + ANG = 'ANG', + /** Angolan kwanza */ + AOA = 'AOA', + /** Argentine peso */ + ARS = 'ARS', + /** Australian dollar */ + AUD = 'AUD', + /** Aruban florin */ + AWG = 'AWG', + /** Azerbaijani manat */ + AZN = 'AZN', + /** Bosnia and Herzegovina convertible mark */ + BAM = 'BAM', + /** Barbados dollar */ + BBD = 'BBD', + /** Bangladeshi taka */ + BDT = 'BDT', + /** Bulgarian lev */ + BGN = 'BGN', + /** Bahraini dinar */ + BHD = 'BHD', + /** Burundian franc */ + BIF = 'BIF', + /** Bermudian dollar */ + BMD = 'BMD', + /** Brunei dollar */ + BND = 'BND', + /** Boliviano */ + BOB = 'BOB', + /** Brazilian real */ + BRL = 'BRL', + /** Bahamian dollar */ + BSD = 'BSD', + /** Bhutanese ngultrum */ + BTN = 'BTN', + /** Botswana pula */ + BWP = 'BWP', + /** Belarusian ruble */ + BYN = 'BYN', + /** Belize dollar */ + BZD = 'BZD', + /** Canadian dollar */ + CAD = 'CAD', + /** Congolese franc */ + CDF = 'CDF', + /** Swiss franc */ + CHF = 'CHF', + /** Chilean peso */ + CLP = 'CLP', + /** Renminbi (Chinese) yuan */ + CNY = 'CNY', + /** Colombian peso */ + COP = 'COP', + /** Costa Rican colon */ + CRC = 'CRC', + /** Cuban convertible peso */ + CUC = 'CUC', + /** Cuban peso */ + CUP = 'CUP', + /** Cape Verde escudo */ + CVE = 'CVE', + /** Czech koruna */ + CZK = 'CZK', + /** Djiboutian franc */ + DJF = 'DJF', + /** Danish krone */ + DKK = 'DKK', + /** Dominican peso */ + DOP = 'DOP', + /** Algerian dinar */ + DZD = 'DZD', + /** Egyptian pound */ + EGP = 'EGP', + /** Eritrean nakfa */ + ERN = 'ERN', + /** Ethiopian birr */ + ETB = 'ETB', + /** Euro */ + EUR = 'EUR', + /** Fiji dollar */ + FJD = 'FJD', + /** Falkland Islands pound */ + FKP = 'FKP', + /** Pound sterling */ + GBP = 'GBP', + /** Georgian lari */ + GEL = 'GEL', + /** Ghanaian cedi */ + GHS = 'GHS', + /** Gibraltar pound */ + GIP = 'GIP', + /** Gambian dalasi */ + GMD = 'GMD', + /** Guinean franc */ + GNF = 'GNF', + /** Guatemalan quetzal */ + GTQ = 'GTQ', + /** Guyanese dollar */ + GYD = 'GYD', + /** Hong Kong dollar */ + HKD = 'HKD', + /** Honduran lempira */ + HNL = 'HNL', + /** Croatian kuna */ + HRK = 'HRK', + /** Haitian gourde */ + HTG = 'HTG', + /** Hungarian forint */ + HUF = 'HUF', + /** Indonesian rupiah */ + IDR = 'IDR', + /** Israeli new shekel */ + ILS = 'ILS', + /** Indian rupee */ + INR = 'INR', + /** Iraqi dinar */ + IQD = 'IQD', + /** Iranian rial */ + IRR = 'IRR', + /** Icelandic króna */ + ISK = 'ISK', + /** Jamaican dollar */ + JMD = 'JMD', + /** Jordanian dinar */ + JOD = 'JOD', + /** Japanese yen */ + JPY = 'JPY', + /** Kenyan shilling */ + KES = 'KES', + /** Kyrgyzstani som */ + KGS = 'KGS', + /** Cambodian riel */ + KHR = 'KHR', + /** Comoro franc */ + KMF = 'KMF', + /** North Korean won */ + KPW = 'KPW', + /** South Korean won */ + KRW = 'KRW', + /** Kuwaiti dinar */ + KWD = 'KWD', + /** Cayman Islands dollar */ + KYD = 'KYD', + /** Kazakhstani tenge */ + KZT = 'KZT', + /** Lao kip */ + LAK = 'LAK', + /** Lebanese pound */ + LBP = 'LBP', + /** Sri Lankan rupee */ + LKR = 'LKR', + /** Liberian dollar */ + LRD = 'LRD', + /** Lesotho loti */ + LSL = 'LSL', + /** Libyan dinar */ + LYD = 'LYD', + /** Moroccan dirham */ + MAD = 'MAD', + /** Moldovan leu */ + MDL = 'MDL', + /** Malagasy ariary */ + MGA = 'MGA', + /** Macedonian denar */ + MKD = 'MKD', + /** Myanmar kyat */ + MMK = 'MMK', + /** Mongolian tögrög */ + MNT = 'MNT', + /** Macanese pataca */ + MOP = 'MOP', + /** Mauritanian ouguiya */ + MRU = 'MRU', + /** Mauritian rupee */ + MUR = 'MUR', + /** Maldivian rufiyaa */ + MVR = 'MVR', + /** Malawian kwacha */ + MWK = 'MWK', + /** Mexican peso */ + MXN = 'MXN', + /** Malaysian ringgit */ + MYR = 'MYR', + /** Mozambican metical */ + MZN = 'MZN', + /** Namibian dollar */ + NAD = 'NAD', + /** Nigerian naira */ + NGN = 'NGN', + /** Nicaraguan córdoba */ + NIO = 'NIO', + /** Norwegian krone */ + NOK = 'NOK', + /** Nepalese rupee */ + NPR = 'NPR', + /** New Zealand dollar */ + NZD = 'NZD', + /** Omani rial */ + OMR = 'OMR', + /** Panamanian balboa */ + PAB = 'PAB', + /** Peruvian sol */ + PEN = 'PEN', + /** Papua New Guinean kina */ + PGK = 'PGK', + /** Philippine peso */ + PHP = 'PHP', + /** Pakistani rupee */ + PKR = 'PKR', + /** Polish złoty */ + PLN = 'PLN', + /** Paraguayan guaraní */ + PYG = 'PYG', + /** Qatari riyal */ + QAR = 'QAR', + /** Romanian leu */ + RON = 'RON', + /** Serbian dinar */ + RSD = 'RSD', + /** Russian ruble */ + RUB = 'RUB', + /** Rwandan franc */ + RWF = 'RWF', + /** Saudi riyal */ + SAR = 'SAR', + /** Solomon Islands dollar */ + SBD = 'SBD', + /** Seychelles rupee */ + SCR = 'SCR', + /** Sudanese pound */ + SDG = 'SDG', + /** Swedish krona/kronor */ + SEK = 'SEK', + /** Singapore dollar */ + SGD = 'SGD', + /** Saint Helena pound */ + SHP = 'SHP', + /** Sierra Leonean leone */ + SLL = 'SLL', + /** Somali shilling */ + SOS = 'SOS', + /** Surinamese dollar */ + SRD = 'SRD', + /** South Sudanese pound */ + SSP = 'SSP', + /** São Tomé and Príncipe dobra */ + STN = 'STN', + /** Salvadoran colón */ + SVC = 'SVC', + /** Syrian pound */ + SYP = 'SYP', + /** Swazi lilangeni */ + SZL = 'SZL', + /** Thai baht */ + THB = 'THB', + /** Tajikistani somoni */ + TJS = 'TJS', + /** Turkmenistan manat */ + TMT = 'TMT', + /** Tunisian dinar */ + TND = 'TND', + /** Tongan paʻanga */ + TOP = 'TOP', + /** Turkish lira */ + TRY = 'TRY', + /** Trinidad and Tobago dollar */ + TTD = 'TTD', + /** New Taiwan dollar */ + TWD = 'TWD', + /** Tanzanian shilling */ + TZS = 'TZS', + /** Ukrainian hryvnia */ + UAH = 'UAH', + /** Ugandan shilling */ + UGX = 'UGX', + /** United States dollar */ + USD = 'USD', + /** Uruguayan peso */ + UYU = 'UYU', + /** Uzbekistan som */ + UZS = 'UZS', + /** Venezuelan bolívar soberano */ + VES = 'VES', + /** Vietnamese đồng */ + VND = 'VND', + /** Vanuatu vatu */ + VUV = 'VUV', + /** Samoan tala */ + WST = 'WST', + /** CFA franc BEAC */ + XAF = 'XAF', + /** East Caribbean dollar */ + XCD = 'XCD', + /** CFA franc BCEAO */ + XOF = 'XOF', + /** CFP franc (franc Pacifique) */ + XPF = 'XPF', + /** Yemeni rial */ + YER = 'YER', + /** South African rand */ + ZAR = 'ZAR', + /** Zambian kwacha */ + ZMW = 'ZMW', + /** Zimbabwean dollar */ + ZWL = 'ZWL', } export type CurrentUser = { - channels: Array; - id: Scalars['ID']; - identifier: Scalars['String']; + channels: Array; + id: Scalars['ID']; + identifier: Scalars['String']; }; export type CurrentUserChannel = { - code: Scalars['String']; - id: Scalars['ID']; - permissions: Array; - token: Scalars['String']; + code: Scalars['String']; + id: Scalars['ID']; + permissions: Array; + token: Scalars['String']; }; export type CustomField = { - description?: Maybe>; - internal?: Maybe; - label?: Maybe>; - list: Scalars['Boolean']; - name: Scalars['String']; - nullable?: Maybe; - readonly?: Maybe; - type: Scalars['String']; - ui?: Maybe; -}; - -export type CustomFieldConfig = BooleanCustomFieldConfig | DateTimeCustomFieldConfig | FloatCustomFieldConfig | IntCustomFieldConfig | LocaleStringCustomFieldConfig | RelationCustomFieldConfig | StringCustomFieldConfig | TextCustomFieldConfig; + description?: Maybe>; + internal?: Maybe; + label?: Maybe>; + list: Scalars['Boolean']; + name: Scalars['String']; + nullable?: Maybe; + readonly?: Maybe; + type: Scalars['String']; + ui?: Maybe; +}; + +export type CustomFieldConfig = + | BooleanCustomFieldConfig + | DateTimeCustomFieldConfig + | FloatCustomFieldConfig + | IntCustomFieldConfig + | LocaleStringCustomFieldConfig + | RelationCustomFieldConfig + | StringCustomFieldConfig + | TextCustomFieldConfig; export type CustomFields = { - Address: Array; - Administrator: Array; - Asset: Array; - Channel: Array; - Collection: Array; - Country: Array; - Customer: Array; - CustomerGroup: Array; - Facet: Array; - FacetValue: Array; - Fulfillment: Array; - GlobalSettings: Array; - Order: Array; - OrderLine: Array; - PaymentMethod: Array; - Product: Array; - ProductOption: Array; - ProductOptionGroup: Array; - ProductVariant: Array; - Promotion: Array; - Seller: Array; - ShippingMethod: Array; - TaxCategory: Array; - TaxRate: Array; - User: Array; - Zone: Array; + Address: Array; + Administrator: Array; + Asset: Array; + Channel: Array; + Collection: Array; + Country: Array; + Customer: Array; + CustomerGroup: Array; + Facet: Array; + FacetValue: Array; + Fulfillment: Array; + GlobalSettings: Array; + Order: Array; + OrderLine: Array; + PaymentMethod: Array; + Product: Array; + ProductOption: Array; + ProductOptionGroup: Array; + ProductVariant: Array; + Promotion: Array; + Seller: Array; + ShippingMethod: Array; + TaxCategory: Array; + TaxRate: Array; + User: Array; + Zone: Array; }; export type Customer = Node & { - addresses?: Maybe>; - createdAt: Scalars['DateTime']; - customFields?: Maybe; - emailAddress: Scalars['String']; - firstName: Scalars['String']; - groups: Array; - history: HistoryEntryList; - id: Scalars['ID']; - lastName: Scalars['String']; - orders: OrderList; - phoneNumber?: Maybe; - title?: Maybe; - updatedAt: Scalars['DateTime']; - user?: Maybe; + addresses?: Maybe>; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + emailAddress: Scalars['String']; + firstName: Scalars['String']; + groups: Array; + history: HistoryEntryList; + id: Scalars['ID']; + lastName: Scalars['String']; + orders: OrderList; + phoneNumber?: Maybe; + title?: Maybe; + updatedAt: Scalars['DateTime']; + user?: Maybe; }; - export type CustomerHistoryArgs = { - options?: InputMaybe; + options?: InputMaybe; }; - export type CustomerOrdersArgs = { - options?: InputMaybe; + options?: InputMaybe; }; export type CustomerFilterParameter = { - createdAt?: InputMaybe; - emailAddress?: InputMaybe; - firstName?: InputMaybe; - id?: InputMaybe; - lastName?: InputMaybe; - phoneNumber?: InputMaybe; - postalCode?: InputMaybe; - title?: InputMaybe; - updatedAt?: InputMaybe; + createdAt?: InputMaybe; + emailAddress?: InputMaybe; + firstName?: InputMaybe; + id?: InputMaybe; + lastName?: InputMaybe; + phoneNumber?: InputMaybe; + postalCode?: InputMaybe; + title?: InputMaybe; + updatedAt?: InputMaybe; }; export type CustomerGroup = Node & { - createdAt: Scalars['DateTime']; - customFields?: Maybe; - customers: CustomerList; - id: Scalars['ID']; - name: Scalars['String']; - updatedAt: Scalars['DateTime']; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + customers: CustomerList; + id: Scalars['ID']; + name: Scalars['String']; + updatedAt: Scalars['DateTime']; }; - export type CustomerGroupCustomersArgs = { - options?: InputMaybe; + options?: InputMaybe; }; export type CustomerGroupFilterParameter = { - createdAt?: InputMaybe; - id?: InputMaybe; - name?: InputMaybe; - updatedAt?: InputMaybe; + createdAt?: InputMaybe; + id?: InputMaybe; + name?: InputMaybe; + updatedAt?: InputMaybe; }; export type CustomerGroupList = PaginatedList & { - items: Array; - totalItems: Scalars['Int']; + items: Array; + totalItems: Scalars['Int']; }; export type CustomerGroupListOptions = { - /** Allows the results to be filtered */ - filter?: InputMaybe; - /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ - filterOperator?: InputMaybe; - /** Skips the first n results, for use in pagination */ - skip?: InputMaybe; - /** Specifies which properties to sort the results by */ - sort?: InputMaybe; - /** Takes n results, for use in pagination */ - take?: InputMaybe; + /** Allows the results to be filtered */ + filter?: InputMaybe; + /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ + filterOperator?: InputMaybe; + /** Skips the first n results, for use in pagination */ + skip?: InputMaybe; + /** Specifies which properties to sort the results by */ + sort?: InputMaybe; + /** Takes n results, for use in pagination */ + take?: InputMaybe; }; export type CustomerGroupSortParameter = { - createdAt?: InputMaybe; - id?: InputMaybe; - name?: InputMaybe; - updatedAt?: InputMaybe; + createdAt?: InputMaybe; + id?: InputMaybe; + name?: InputMaybe; + updatedAt?: InputMaybe; }; export type CustomerList = PaginatedList & { - items: Array; - totalItems: Scalars['Int']; + items: Array; + totalItems: Scalars['Int']; }; export type CustomerListOptions = { - /** Allows the results to be filtered */ - filter?: InputMaybe; - /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ - filterOperator?: InputMaybe; - /** Skips the first n results, for use in pagination */ - skip?: InputMaybe; - /** Specifies which properties to sort the results by */ - sort?: InputMaybe; - /** Takes n results, for use in pagination */ - take?: InputMaybe; + /** Allows the results to be filtered */ + filter?: InputMaybe; + /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ + filterOperator?: InputMaybe; + /** Skips the first n results, for use in pagination */ + skip?: InputMaybe; + /** Specifies which properties to sort the results by */ + sort?: InputMaybe; + /** Takes n results, for use in pagination */ + take?: InputMaybe; }; export type CustomerSortParameter = { - createdAt?: InputMaybe; - emailAddress?: InputMaybe; - firstName?: InputMaybe; - id?: InputMaybe; - lastName?: InputMaybe; - phoneNumber?: InputMaybe; - title?: InputMaybe; - updatedAt?: InputMaybe; + createdAt?: InputMaybe; + emailAddress?: InputMaybe; + firstName?: InputMaybe; + id?: InputMaybe; + lastName?: InputMaybe; + phoneNumber?: InputMaybe; + title?: InputMaybe; + updatedAt?: InputMaybe; }; /** Operators for filtering on a list of Date fields */ export type DateListOperators = { - inList: Scalars['DateTime']; + inList: Scalars['DateTime']; }; /** Operators for filtering on a DateTime field */ export type DateOperators = { - after?: InputMaybe; - before?: InputMaybe; - between?: InputMaybe; - eq?: InputMaybe; - isNull?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; + between?: InputMaybe; + eq?: InputMaybe; + isNull?: InputMaybe; }; export type DateRange = { - end: Scalars['DateTime']; - start: Scalars['DateTime']; + end: Scalars['DateTime']; + start: Scalars['DateTime']; }; /** @@ -1353,196 +1376,196 @@ export type DateRange = { * See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/datetime-local#Additional_attributes */ export type DateTimeCustomFieldConfig = CustomField & { - description?: Maybe>; - internal?: Maybe; - label?: Maybe>; - list: Scalars['Boolean']; - max?: Maybe; - min?: Maybe; - name: Scalars['String']; - nullable?: Maybe; - readonly?: Maybe; - step?: Maybe; - type: Scalars['String']; - ui?: Maybe; + description?: Maybe>; + internal?: Maybe; + label?: Maybe>; + list: Scalars['Boolean']; + max?: Maybe; + min?: Maybe; + name: Scalars['String']; + nullable?: Maybe; + readonly?: Maybe; + step?: Maybe; + type: Scalars['String']; + ui?: Maybe; }; export type DeleteAssetInput = { - assetId: Scalars['ID']; - deleteFromAllChannels?: InputMaybe; - force?: InputMaybe; + assetId: Scalars['ID']; + deleteFromAllChannels?: InputMaybe; + force?: InputMaybe; }; export type DeleteAssetsInput = { - assetIds: Array; - deleteFromAllChannels?: InputMaybe; - force?: InputMaybe; + assetIds: Array; + deleteFromAllChannels?: InputMaybe; + force?: InputMaybe; }; export type DeletionResponse = { - message?: Maybe; - result: DeletionResult; + message?: Maybe; + result: DeletionResult; }; export enum DeletionResult { - /** The entity was successfully deleted */ - DELETED = 'DELETED', - /** Deletion did not take place, reason given in message */ - NOT_DELETED = 'NOT_DELETED' + /** The entity was successfully deleted */ + DELETED = 'DELETED', + /** Deletion did not take place, reason given in message */ + NOT_DELETED = 'NOT_DELETED', } export type Discount = { - adjustmentSource: Scalars['String']; - amount: Scalars['Int']; - amountWithTax: Scalars['Int']; - description: Scalars['String']; - type: AdjustmentType; + adjustmentSource: Scalars['String']; + amount: Scalars['Int']; + amountWithTax: Scalars['Int']; + description: Scalars['String']; + type: AdjustmentType; }; /** Returned when attempting to create a Customer with an email address already registered to an existing User. */ export type EmailAddressConflictError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; }; /** Returned if no OrderLines have been specified for the operation */ export type EmptyOrderLineSelectionError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; }; export enum ErrorCode { - ALREADY_REFUNDED_ERROR = 'ALREADY_REFUNDED_ERROR', - CANCEL_ACTIVE_ORDER_ERROR = 'CANCEL_ACTIVE_ORDER_ERROR', - CANCEL_PAYMENT_ERROR = 'CANCEL_PAYMENT_ERROR', - CHANNEL_DEFAULT_LANGUAGE_ERROR = 'CHANNEL_DEFAULT_LANGUAGE_ERROR', - COUPON_CODE_EXPIRED_ERROR = 'COUPON_CODE_EXPIRED_ERROR', - COUPON_CODE_INVALID_ERROR = 'COUPON_CODE_INVALID_ERROR', - COUPON_CODE_LIMIT_ERROR = 'COUPON_CODE_LIMIT_ERROR', - CREATE_FULFILLMENT_ERROR = 'CREATE_FULFILLMENT_ERROR', - EMAIL_ADDRESS_CONFLICT_ERROR = 'EMAIL_ADDRESS_CONFLICT_ERROR', - EMPTY_ORDER_LINE_SELECTION_ERROR = 'EMPTY_ORDER_LINE_SELECTION_ERROR', - FACET_IN_USE_ERROR = 'FACET_IN_USE_ERROR', - FULFILLMENT_STATE_TRANSITION_ERROR = 'FULFILLMENT_STATE_TRANSITION_ERROR', - INELIGIBLE_SHIPPING_METHOD_ERROR = 'INELIGIBLE_SHIPPING_METHOD_ERROR', - INSUFFICIENT_STOCK_ERROR = 'INSUFFICIENT_STOCK_ERROR', - INSUFFICIENT_STOCK_ON_HAND_ERROR = 'INSUFFICIENT_STOCK_ON_HAND_ERROR', - INVALID_CREDENTIALS_ERROR = 'INVALID_CREDENTIALS_ERROR', - INVALID_FULFILLMENT_HANDLER_ERROR = 'INVALID_FULFILLMENT_HANDLER_ERROR', - ITEMS_ALREADY_FULFILLED_ERROR = 'ITEMS_ALREADY_FULFILLED_ERROR', - LANGUAGE_NOT_AVAILABLE_ERROR = 'LANGUAGE_NOT_AVAILABLE_ERROR', - MANUAL_PAYMENT_STATE_ERROR = 'MANUAL_PAYMENT_STATE_ERROR', - MIME_TYPE_ERROR = 'MIME_TYPE_ERROR', - MISSING_CONDITIONS_ERROR = 'MISSING_CONDITIONS_ERROR', - MULTIPLE_ORDER_ERROR = 'MULTIPLE_ORDER_ERROR', - NATIVE_AUTH_STRATEGY_ERROR = 'NATIVE_AUTH_STRATEGY_ERROR', - NEGATIVE_QUANTITY_ERROR = 'NEGATIVE_QUANTITY_ERROR', - NOTHING_TO_REFUND_ERROR = 'NOTHING_TO_REFUND_ERROR', - NO_ACTIVE_ORDER_ERROR = 'NO_ACTIVE_ORDER_ERROR', - NO_CHANGES_SPECIFIED_ERROR = 'NO_CHANGES_SPECIFIED_ERROR', - ORDER_LIMIT_ERROR = 'ORDER_LIMIT_ERROR', - ORDER_MODIFICATION_ERROR = 'ORDER_MODIFICATION_ERROR', - ORDER_MODIFICATION_STATE_ERROR = 'ORDER_MODIFICATION_STATE_ERROR', - ORDER_STATE_TRANSITION_ERROR = 'ORDER_STATE_TRANSITION_ERROR', - PAYMENT_METHOD_MISSING_ERROR = 'PAYMENT_METHOD_MISSING_ERROR', - PAYMENT_ORDER_MISMATCH_ERROR = 'PAYMENT_ORDER_MISMATCH_ERROR', - PAYMENT_STATE_TRANSITION_ERROR = 'PAYMENT_STATE_TRANSITION_ERROR', - PRODUCT_OPTION_IN_USE_ERROR = 'PRODUCT_OPTION_IN_USE_ERROR', - QUANTITY_TOO_GREAT_ERROR = 'QUANTITY_TOO_GREAT_ERROR', - REFUND_ORDER_STATE_ERROR = 'REFUND_ORDER_STATE_ERROR', - REFUND_PAYMENT_ID_MISSING_ERROR = 'REFUND_PAYMENT_ID_MISSING_ERROR', - REFUND_STATE_TRANSITION_ERROR = 'REFUND_STATE_TRANSITION_ERROR', - SETTLE_PAYMENT_ERROR = 'SETTLE_PAYMENT_ERROR', - UNKNOWN_ERROR = 'UNKNOWN_ERROR' + ALREADY_REFUNDED_ERROR = 'ALREADY_REFUNDED_ERROR', + CANCEL_ACTIVE_ORDER_ERROR = 'CANCEL_ACTIVE_ORDER_ERROR', + CANCEL_PAYMENT_ERROR = 'CANCEL_PAYMENT_ERROR', + CHANNEL_DEFAULT_LANGUAGE_ERROR = 'CHANNEL_DEFAULT_LANGUAGE_ERROR', + COUPON_CODE_EXPIRED_ERROR = 'COUPON_CODE_EXPIRED_ERROR', + COUPON_CODE_INVALID_ERROR = 'COUPON_CODE_INVALID_ERROR', + COUPON_CODE_LIMIT_ERROR = 'COUPON_CODE_LIMIT_ERROR', + CREATE_FULFILLMENT_ERROR = 'CREATE_FULFILLMENT_ERROR', + EMAIL_ADDRESS_CONFLICT_ERROR = 'EMAIL_ADDRESS_CONFLICT_ERROR', + EMPTY_ORDER_LINE_SELECTION_ERROR = 'EMPTY_ORDER_LINE_SELECTION_ERROR', + FACET_IN_USE_ERROR = 'FACET_IN_USE_ERROR', + FULFILLMENT_STATE_TRANSITION_ERROR = 'FULFILLMENT_STATE_TRANSITION_ERROR', + INELIGIBLE_SHIPPING_METHOD_ERROR = 'INELIGIBLE_SHIPPING_METHOD_ERROR', + INSUFFICIENT_STOCK_ERROR = 'INSUFFICIENT_STOCK_ERROR', + INSUFFICIENT_STOCK_ON_HAND_ERROR = 'INSUFFICIENT_STOCK_ON_HAND_ERROR', + INVALID_CREDENTIALS_ERROR = 'INVALID_CREDENTIALS_ERROR', + INVALID_FULFILLMENT_HANDLER_ERROR = 'INVALID_FULFILLMENT_HANDLER_ERROR', + ITEMS_ALREADY_FULFILLED_ERROR = 'ITEMS_ALREADY_FULFILLED_ERROR', + LANGUAGE_NOT_AVAILABLE_ERROR = 'LANGUAGE_NOT_AVAILABLE_ERROR', + MANUAL_PAYMENT_STATE_ERROR = 'MANUAL_PAYMENT_STATE_ERROR', + MIME_TYPE_ERROR = 'MIME_TYPE_ERROR', + MISSING_CONDITIONS_ERROR = 'MISSING_CONDITIONS_ERROR', + MULTIPLE_ORDER_ERROR = 'MULTIPLE_ORDER_ERROR', + NATIVE_AUTH_STRATEGY_ERROR = 'NATIVE_AUTH_STRATEGY_ERROR', + NEGATIVE_QUANTITY_ERROR = 'NEGATIVE_QUANTITY_ERROR', + NOTHING_TO_REFUND_ERROR = 'NOTHING_TO_REFUND_ERROR', + NO_ACTIVE_ORDER_ERROR = 'NO_ACTIVE_ORDER_ERROR', + NO_CHANGES_SPECIFIED_ERROR = 'NO_CHANGES_SPECIFIED_ERROR', + ORDER_LIMIT_ERROR = 'ORDER_LIMIT_ERROR', + ORDER_MODIFICATION_ERROR = 'ORDER_MODIFICATION_ERROR', + ORDER_MODIFICATION_STATE_ERROR = 'ORDER_MODIFICATION_STATE_ERROR', + ORDER_STATE_TRANSITION_ERROR = 'ORDER_STATE_TRANSITION_ERROR', + PAYMENT_METHOD_MISSING_ERROR = 'PAYMENT_METHOD_MISSING_ERROR', + PAYMENT_ORDER_MISMATCH_ERROR = 'PAYMENT_ORDER_MISMATCH_ERROR', + PAYMENT_STATE_TRANSITION_ERROR = 'PAYMENT_STATE_TRANSITION_ERROR', + PRODUCT_OPTION_IN_USE_ERROR = 'PRODUCT_OPTION_IN_USE_ERROR', + QUANTITY_TOO_GREAT_ERROR = 'QUANTITY_TOO_GREAT_ERROR', + REFUND_ORDER_STATE_ERROR = 'REFUND_ORDER_STATE_ERROR', + REFUND_PAYMENT_ID_MISSING_ERROR = 'REFUND_PAYMENT_ID_MISSING_ERROR', + REFUND_STATE_TRANSITION_ERROR = 'REFUND_STATE_TRANSITION_ERROR', + SETTLE_PAYMENT_ERROR = 'SETTLE_PAYMENT_ERROR', + UNKNOWN_ERROR = 'UNKNOWN_ERROR', } export type ErrorResult = { - errorCode: ErrorCode; - message: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; }; export type Facet = Node & { - code: Scalars['String']; - createdAt: Scalars['DateTime']; - customFields?: Maybe; - id: Scalars['ID']; - isPrivate: Scalars['Boolean']; - languageCode: LanguageCode; - name: Scalars['String']; - translations: Array; - updatedAt: Scalars['DateTime']; - values: Array; + code: Scalars['String']; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + id: Scalars['ID']; + isPrivate: Scalars['Boolean']; + languageCode: LanguageCode; + name: Scalars['String']; + translations: Array; + updatedAt: Scalars['DateTime']; + values: Array; }; export type FacetFilterParameter = { - code?: InputMaybe; - createdAt?: InputMaybe; - id?: InputMaybe; - isPrivate?: InputMaybe; - languageCode?: InputMaybe; - name?: InputMaybe; - updatedAt?: InputMaybe; + code?: InputMaybe; + createdAt?: InputMaybe; + id?: InputMaybe; + isPrivate?: InputMaybe; + languageCode?: InputMaybe; + name?: InputMaybe; + updatedAt?: InputMaybe; }; export type FacetInUseError = ErrorResult & { - errorCode: ErrorCode; - facetCode: Scalars['String']; - message: Scalars['String']; - productCount: Scalars['Int']; - variantCount: Scalars['Int']; + errorCode: ErrorCode; + facetCode: Scalars['String']; + message: Scalars['String']; + productCount: Scalars['Int']; + variantCount: Scalars['Int']; }; export type FacetList = PaginatedList & { - items: Array; - totalItems: Scalars['Int']; + items: Array; + totalItems: Scalars['Int']; }; export type FacetListOptions = { - /** Allows the results to be filtered */ - filter?: InputMaybe; - /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ - filterOperator?: InputMaybe; - /** Skips the first n results, for use in pagination */ - skip?: InputMaybe; - /** Specifies which properties to sort the results by */ - sort?: InputMaybe; - /** Takes n results, for use in pagination */ - take?: InputMaybe; + /** Allows the results to be filtered */ + filter?: InputMaybe; + /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ + filterOperator?: InputMaybe; + /** Skips the first n results, for use in pagination */ + skip?: InputMaybe; + /** Specifies which properties to sort the results by */ + sort?: InputMaybe; + /** Takes n results, for use in pagination */ + take?: InputMaybe; }; export type FacetSortParameter = { - code?: InputMaybe; - createdAt?: InputMaybe; - id?: InputMaybe; - name?: InputMaybe; - updatedAt?: InputMaybe; + code?: InputMaybe; + createdAt?: InputMaybe; + id?: InputMaybe; + name?: InputMaybe; + updatedAt?: InputMaybe; }; export type FacetTranslation = { - createdAt: Scalars['DateTime']; - id: Scalars['ID']; - languageCode: LanguageCode; - name: Scalars['String']; - updatedAt: Scalars['DateTime']; + createdAt: Scalars['DateTime']; + id: Scalars['ID']; + languageCode: LanguageCode; + name: Scalars['String']; + updatedAt: Scalars['DateTime']; }; export type FacetTranslationInput = { - customFields?: InputMaybe; - id?: InputMaybe; - languageCode: LanguageCode; - name?: InputMaybe; + customFields?: InputMaybe; + id?: InputMaybe; + languageCode: LanguageCode; + name?: InputMaybe; }; export type FacetValue = Node & { - code: Scalars['String']; - createdAt: Scalars['DateTime']; - customFields?: Maybe; - facet: Facet; - id: Scalars['ID']; - languageCode: LanguageCode; - name: Scalars['String']; - translations: Array; - updatedAt: Scalars['DateTime']; + code: Scalars['String']; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + facet: Facet; + id: Scalars['ID']; + languageCode: LanguageCode; + name: Scalars['String']; + translations: Array; + updatedAt: Scalars['DateTime']; }; /** @@ -1554,35 +1577,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; }; /** @@ -1590,198 +1613,198 @@ export type FacetValueListOptions = { * by the search, and in what quantity. */ export type FacetValueResult = { - count: Scalars['Int']; - facetValue: FacetValue; + count: Scalars['Int']; + facetValue: FacetValue; }; export type FacetValueSortParameter = { - code?: InputMaybe; - createdAt?: InputMaybe; - id?: InputMaybe; - name?: InputMaybe; - updatedAt?: InputMaybe; + code?: InputMaybe; + createdAt?: InputMaybe; + id?: InputMaybe; + name?: InputMaybe; + updatedAt?: InputMaybe; }; export type FacetValueTranslation = { - createdAt: Scalars['DateTime']; - id: Scalars['ID']; - languageCode: LanguageCode; - name: Scalars['String']; - updatedAt: Scalars['DateTime']; + createdAt: Scalars['DateTime']; + id: Scalars['ID']; + languageCode: LanguageCode; + name: Scalars['String']; + updatedAt: Scalars['DateTime']; }; export type FacetValueTranslationInput = { - customFields?: InputMaybe; - id?: InputMaybe; - languageCode: LanguageCode; - name?: InputMaybe; + customFields?: InputMaybe; + id?: InputMaybe; + languageCode: LanguageCode; + name?: InputMaybe; }; export type FloatCustomFieldConfig = CustomField & { - description?: Maybe>; - internal?: Maybe; - label?: Maybe>; - list: Scalars['Boolean']; - max?: Maybe; - min?: Maybe; - name: Scalars['String']; - nullable?: Maybe; - readonly?: Maybe; - step?: Maybe; - type: Scalars['String']; - ui?: Maybe; + description?: Maybe>; + internal?: Maybe; + label?: Maybe>; + list: Scalars['Boolean']; + max?: Maybe; + min?: Maybe; + name: Scalars['String']; + nullable?: Maybe; + readonly?: Maybe; + step?: Maybe; + type: Scalars['String']; + ui?: Maybe; }; export type FulfillOrderInput = { - handler: ConfigurableOperationInput; - lines: Array; + handler: ConfigurableOperationInput; + lines: Array; }; export type Fulfillment = Node & { - createdAt: Scalars['DateTime']; - customFields?: Maybe; - id: Scalars['ID']; - method: Scalars['String']; - nextStates: Array; - orderItems: Array; - state: Scalars['String']; - summary: Array; - trackingCode?: Maybe; - updatedAt: Scalars['DateTime']; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + id: Scalars['ID']; + method: Scalars['String']; + nextStates: Array; + orderItems: Array; + state: Scalars['String']; + summary: Array; + trackingCode?: Maybe; + updatedAt: Scalars['DateTime']; }; export type FulfillmentLineSummary = { - orderLine: OrderLine; - quantity: Scalars['Int']; + orderLine: OrderLine; + quantity: Scalars['Int']; }; /** Returned when there is an error in transitioning the Fulfillment state */ export type FulfillmentStateTransitionError = ErrorResult & { - errorCode: ErrorCode; - fromState: Scalars['String']; - message: Scalars['String']; - toState: Scalars['String']; - transitionError: Scalars['String']; + errorCode: ErrorCode; + fromState: Scalars['String']; + message: Scalars['String']; + toState: Scalars['String']; + transitionError: Scalars['String']; }; export enum GlobalFlag { - FALSE = 'FALSE', - INHERIT = 'INHERIT', - TRUE = 'TRUE' + FALSE = 'FALSE', + INHERIT = 'INHERIT', + TRUE = 'TRUE', } export type GlobalSettings = { - availableLanguages: Array; - createdAt: Scalars['DateTime']; - customFields?: Maybe; - id: Scalars['ID']; - outOfStockThreshold: Scalars['Int']; - serverConfig: ServerConfig; - trackInventory: Scalars['Boolean']; - updatedAt: Scalars['DateTime']; + availableLanguages: Array; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + id: Scalars['ID']; + outOfStockThreshold: Scalars['Int']; + serverConfig: ServerConfig; + trackInventory: Scalars['Boolean']; + updatedAt: Scalars['DateTime']; }; export type HistoryEntry = Node & { - administrator?: Maybe; - createdAt: Scalars['DateTime']; - data: Scalars['JSON']; - id: Scalars['ID']; - isPublic: Scalars['Boolean']; - type: HistoryEntryType; - updatedAt: Scalars['DateTime']; + administrator?: Maybe; + createdAt: Scalars['DateTime']; + data: Scalars['JSON']; + id: Scalars['ID']; + isPublic: Scalars['Boolean']; + type: HistoryEntryType; + updatedAt: Scalars['DateTime']; }; export type HistoryEntryFilterParameter = { - createdAt?: InputMaybe; - id?: InputMaybe; - isPublic?: InputMaybe; - type?: InputMaybe; - updatedAt?: InputMaybe; + createdAt?: InputMaybe; + id?: InputMaybe; + isPublic?: InputMaybe; + type?: InputMaybe; + updatedAt?: InputMaybe; }; export type HistoryEntryList = PaginatedList & { - items: Array; - totalItems: Scalars['Int']; + items: Array; + totalItems: Scalars['Int']; }; export type HistoryEntryListOptions = { - /** Allows the results to be filtered */ - filter?: InputMaybe; - /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ - filterOperator?: InputMaybe; - /** Skips the first n results, for use in pagination */ - skip?: InputMaybe; - /** Specifies which properties to sort the results by */ - sort?: InputMaybe; - /** Takes n results, for use in pagination */ - take?: InputMaybe; + /** Allows the results to be filtered */ + filter?: InputMaybe; + /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ + filterOperator?: InputMaybe; + /** Skips the first n results, for use in pagination */ + skip?: InputMaybe; + /** Specifies which properties to sort the results by */ + sort?: InputMaybe; + /** Takes n results, for use in pagination */ + take?: InputMaybe; }; export type HistoryEntrySortParameter = { - createdAt?: InputMaybe; - id?: InputMaybe; - updatedAt?: InputMaybe; + createdAt?: InputMaybe; + id?: InputMaybe; + updatedAt?: InputMaybe; }; export enum HistoryEntryType { - CUSTOMER_ADDED_TO_GROUP = 'CUSTOMER_ADDED_TO_GROUP', - CUSTOMER_ADDRESS_CREATED = 'CUSTOMER_ADDRESS_CREATED', - CUSTOMER_ADDRESS_DELETED = 'CUSTOMER_ADDRESS_DELETED', - CUSTOMER_ADDRESS_UPDATED = 'CUSTOMER_ADDRESS_UPDATED', - CUSTOMER_DETAIL_UPDATED = 'CUSTOMER_DETAIL_UPDATED', - CUSTOMER_EMAIL_UPDATE_REQUESTED = 'CUSTOMER_EMAIL_UPDATE_REQUESTED', - CUSTOMER_EMAIL_UPDATE_VERIFIED = 'CUSTOMER_EMAIL_UPDATE_VERIFIED', - CUSTOMER_NOTE = 'CUSTOMER_NOTE', - CUSTOMER_PASSWORD_RESET_REQUESTED = 'CUSTOMER_PASSWORD_RESET_REQUESTED', - CUSTOMER_PASSWORD_RESET_VERIFIED = 'CUSTOMER_PASSWORD_RESET_VERIFIED', - CUSTOMER_PASSWORD_UPDATED = 'CUSTOMER_PASSWORD_UPDATED', - CUSTOMER_REGISTERED = 'CUSTOMER_REGISTERED', - CUSTOMER_REMOVED_FROM_GROUP = 'CUSTOMER_REMOVED_FROM_GROUP', - CUSTOMER_VERIFIED = 'CUSTOMER_VERIFIED', - ORDER_CANCELLATION = 'ORDER_CANCELLATION', - ORDER_COUPON_APPLIED = 'ORDER_COUPON_APPLIED', - ORDER_COUPON_REMOVED = 'ORDER_COUPON_REMOVED', - ORDER_FULFILLMENT = 'ORDER_FULFILLMENT', - ORDER_FULFILLMENT_TRANSITION = 'ORDER_FULFILLMENT_TRANSITION', - ORDER_MODIFIED = 'ORDER_MODIFIED', - ORDER_NOTE = 'ORDER_NOTE', - ORDER_PAYMENT_TRANSITION = 'ORDER_PAYMENT_TRANSITION', - ORDER_REFUND_TRANSITION = 'ORDER_REFUND_TRANSITION', - ORDER_STATE_TRANSITION = 'ORDER_STATE_TRANSITION' + CUSTOMER_ADDED_TO_GROUP = 'CUSTOMER_ADDED_TO_GROUP', + CUSTOMER_ADDRESS_CREATED = 'CUSTOMER_ADDRESS_CREATED', + CUSTOMER_ADDRESS_DELETED = 'CUSTOMER_ADDRESS_DELETED', + CUSTOMER_ADDRESS_UPDATED = 'CUSTOMER_ADDRESS_UPDATED', + CUSTOMER_DETAIL_UPDATED = 'CUSTOMER_DETAIL_UPDATED', + CUSTOMER_EMAIL_UPDATE_REQUESTED = 'CUSTOMER_EMAIL_UPDATE_REQUESTED', + CUSTOMER_EMAIL_UPDATE_VERIFIED = 'CUSTOMER_EMAIL_UPDATE_VERIFIED', + CUSTOMER_NOTE = 'CUSTOMER_NOTE', + CUSTOMER_PASSWORD_RESET_REQUESTED = 'CUSTOMER_PASSWORD_RESET_REQUESTED', + CUSTOMER_PASSWORD_RESET_VERIFIED = 'CUSTOMER_PASSWORD_RESET_VERIFIED', + CUSTOMER_PASSWORD_UPDATED = 'CUSTOMER_PASSWORD_UPDATED', + CUSTOMER_REGISTERED = 'CUSTOMER_REGISTERED', + CUSTOMER_REMOVED_FROM_GROUP = 'CUSTOMER_REMOVED_FROM_GROUP', + CUSTOMER_VERIFIED = 'CUSTOMER_VERIFIED', + ORDER_CANCELLATION = 'ORDER_CANCELLATION', + ORDER_COUPON_APPLIED = 'ORDER_COUPON_APPLIED', + ORDER_COUPON_REMOVED = 'ORDER_COUPON_REMOVED', + ORDER_FULFILLMENT = 'ORDER_FULFILLMENT', + ORDER_FULFILLMENT_TRANSITION = 'ORDER_FULFILLMENT_TRANSITION', + ORDER_MODIFIED = 'ORDER_MODIFIED', + ORDER_NOTE = 'ORDER_NOTE', + ORDER_PAYMENT_TRANSITION = 'ORDER_PAYMENT_TRANSITION', + ORDER_REFUND_TRANSITION = 'ORDER_REFUND_TRANSITION', + ORDER_STATE_TRANSITION = 'ORDER_STATE_TRANSITION', } /** Operators for filtering on a list of ID fields */ export type IdListOperators = { - inList: Scalars['ID']; + inList: Scalars['ID']; }; /** Operators for filtering on an ID field */ export type IdOperators = { - eq?: InputMaybe; - in?: InputMaybe>; - isNull?: InputMaybe; - notEq?: InputMaybe; - notIn?: InputMaybe>; + eq?: InputMaybe; + in?: InputMaybe>; + isNull?: InputMaybe; + notEq?: InputMaybe; + notIn?: InputMaybe>; }; export type ImportInfo = { - errors?: Maybe>; - imported: Scalars['Int']; - processed: Scalars['Int']; + errors?: Maybe>; + imported: Scalars['Int']; + processed: Scalars['Int']; }; /** Returned when attempting to set a ShippingMethod for which the Order is not eligible */ export type IneligibleShippingMethodError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; }; /** Returned when attempting to add more items to the Order than are available */ export type InsufficientStockError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; - order: Order; - quantityAvailable: Scalars['Int']; + errorCode: ErrorCode; + message: Scalars['String']; + order: Order; + quantityAvailable: Scalars['Int']; }; /** @@ -1789,116 +1812,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; }; /** @@ -1908,12 +1931,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', } /** @@ -1926,358 +1949,358 @@ export enum JobState { * @docsCategory common */ export enum LanguageCode { - /** Afrikaans */ - af = 'af', - /** Akan */ - ak = 'ak', - /** Amharic */ - am = 'am', - /** Arabic */ - ar = 'ar', - /** Assamese */ - as = 'as', - /** Azerbaijani */ - az = 'az', - /** Belarusian */ - be = 'be', - /** Bulgarian */ - bg = 'bg', - /** Bambara */ - bm = 'bm', - /** Bangla */ - bn = 'bn', - /** Tibetan */ - bo = 'bo', - /** Breton */ - br = 'br', - /** Bosnian */ - bs = 'bs', - /** Catalan */ - ca = 'ca', - /** Chechen */ - ce = 'ce', - /** Corsican */ - co = 'co', - /** Czech */ - cs = 'cs', - /** Church Slavic */ - cu = 'cu', - /** Welsh */ - cy = 'cy', - /** Danish */ - da = 'da', - /** German */ - de = 'de', - /** Austrian German */ - de_AT = 'de_AT', - /** Swiss High German */ - de_CH = 'de_CH', - /** Dzongkha */ - dz = 'dz', - /** Ewe */ - ee = 'ee', - /** Greek */ - el = 'el', - /** English */ - en = 'en', - /** Australian English */ - en_AU = 'en_AU', - /** Canadian English */ - en_CA = 'en_CA', - /** British English */ - en_GB = 'en_GB', - /** American English */ - en_US = 'en_US', - /** Esperanto */ - eo = 'eo', - /** Spanish */ - es = 'es', - /** European Spanish */ - es_ES = 'es_ES', - /** Mexican Spanish */ - es_MX = 'es_MX', - /** Estonian */ - et = 'et', - /** Basque */ - eu = 'eu', - /** Persian */ - fa = 'fa', - /** Dari */ - fa_AF = 'fa_AF', - /** Fulah */ - ff = 'ff', - /** Finnish */ - fi = 'fi', - /** Faroese */ - fo = 'fo', - /** French */ - fr = 'fr', - /** Canadian French */ - fr_CA = 'fr_CA', - /** Swiss French */ - fr_CH = 'fr_CH', - /** Western Frisian */ - fy = 'fy', - /** Irish */ - ga = 'ga', - /** Scottish Gaelic */ - gd = 'gd', - /** Galician */ - gl = 'gl', - /** Gujarati */ - gu = 'gu', - /** Manx */ - gv = 'gv', - /** Hausa */ - ha = 'ha', - /** Hebrew */ - he = 'he', - /** Hindi */ - hi = 'hi', - /** Croatian */ - hr = 'hr', - /** Haitian Creole */ - ht = 'ht', - /** Hungarian */ - hu = 'hu', - /** Armenian */ - hy = 'hy', - /** Interlingua */ - ia = 'ia', - /** Indonesian */ - id = 'id', - /** Igbo */ - ig = 'ig', - /** Sichuan Yi */ - ii = 'ii', - /** Icelandic */ - is = 'is', - /** Italian */ - it = 'it', - /** Japanese */ - ja = 'ja', - /** Javanese */ - jv = 'jv', - /** Georgian */ - ka = 'ka', - /** Kikuyu */ - ki = 'ki', - /** Kazakh */ - kk = 'kk', - /** Kalaallisut */ - kl = 'kl', - /** Khmer */ - km = 'km', - /** Kannada */ - kn = 'kn', - /** Korean */ - ko = 'ko', - /** Kashmiri */ - ks = 'ks', - /** Kurdish */ - ku = 'ku', - /** Cornish */ - kw = 'kw', - /** Kyrgyz */ - ky = 'ky', - /** Latin */ - la = 'la', - /** Luxembourgish */ - lb = 'lb', - /** Ganda */ - lg = 'lg', - /** Lingala */ - ln = 'ln', - /** Lao */ - lo = 'lo', - /** Lithuanian */ - lt = 'lt', - /** Luba-Katanga */ - lu = 'lu', - /** Latvian */ - lv = 'lv', - /** Malagasy */ - mg = 'mg', - /** Maori */ - mi = 'mi', - /** Macedonian */ - mk = 'mk', - /** Malayalam */ - ml = 'ml', - /** Mongolian */ - mn = 'mn', - /** Marathi */ - mr = 'mr', - /** Malay */ - ms = 'ms', - /** Maltese */ - mt = 'mt', - /** Burmese */ - my = 'my', - /** Norwegian Bokmål */ - nb = 'nb', - /** North Ndebele */ - nd = 'nd', - /** Nepali */ - ne = 'ne', - /** Dutch */ - nl = 'nl', - /** Flemish */ - nl_BE = 'nl_BE', - /** Norwegian Nynorsk */ - nn = 'nn', - /** Nyanja */ - ny = 'ny', - /** Oromo */ - om = 'om', - /** Odia */ - or = 'or', - /** Ossetic */ - os = 'os', - /** Punjabi */ - pa = 'pa', - /** Polish */ - pl = 'pl', - /** Pashto */ - ps = 'ps', - /** Portuguese */ - pt = 'pt', - /** Brazilian Portuguese */ - pt_BR = 'pt_BR', - /** European Portuguese */ - pt_PT = 'pt_PT', - /** Quechua */ - qu = 'qu', - /** Romansh */ - rm = 'rm', - /** Rundi */ - rn = 'rn', - /** Romanian */ - ro = 'ro', - /** Moldavian */ - ro_MD = 'ro_MD', - /** Russian */ - ru = 'ru', - /** Kinyarwanda */ - rw = 'rw', - /** Sanskrit */ - sa = 'sa', - /** Sindhi */ - sd = 'sd', - /** Northern Sami */ - se = 'se', - /** Sango */ - sg = 'sg', - /** Sinhala */ - si = 'si', - /** Slovak */ - sk = 'sk', - /** Slovenian */ - sl = 'sl', - /** Samoan */ - sm = 'sm', - /** Shona */ - sn = 'sn', - /** Somali */ - so = 'so', - /** Albanian */ - sq = 'sq', - /** Serbian */ - sr = 'sr', - /** Southern Sotho */ - st = 'st', - /** Sundanese */ - su = 'su', - /** Swedish */ - sv = 'sv', - /** Swahili */ - sw = 'sw', - /** Congo Swahili */ - sw_CD = 'sw_CD', - /** Tamil */ - ta = 'ta', - /** Telugu */ - te = 'te', - /** Tajik */ - tg = 'tg', - /** Thai */ - th = 'th', - /** Tigrinya */ - ti = 'ti', - /** Turkmen */ - tk = 'tk', - /** Tongan */ - to = 'to', - /** Turkish */ - tr = 'tr', - /** Tatar */ - tt = 'tt', - /** Uyghur */ - ug = 'ug', - /** Ukrainian */ - uk = 'uk', - /** Urdu */ - ur = 'ur', - /** Uzbek */ - uz = 'uz', - /** Vietnamese */ - vi = 'vi', - /** Volapük */ - vo = 'vo', - /** Wolof */ - wo = 'wo', - /** Xhosa */ - xh = 'xh', - /** Yiddish */ - yi = 'yi', - /** Yoruba */ - yo = 'yo', - /** Chinese */ - zh = 'zh', - /** Simplified Chinese */ - zh_Hans = 'zh_Hans', - /** Traditional Chinese */ - zh_Hant = 'zh_Hant', - /** Zulu */ - zu = 'zu' + /** Afrikaans */ + af = 'af', + /** Akan */ + ak = 'ak', + /** Amharic */ + am = 'am', + /** Arabic */ + ar = 'ar', + /** Assamese */ + as = 'as', + /** Azerbaijani */ + az = 'az', + /** Belarusian */ + be = 'be', + /** Bulgarian */ + bg = 'bg', + /** Bambara */ + bm = 'bm', + /** Bangla */ + bn = 'bn', + /** Tibetan */ + bo = 'bo', + /** Breton */ + br = 'br', + /** Bosnian */ + bs = 'bs', + /** Catalan */ + ca = 'ca', + /** Chechen */ + ce = 'ce', + /** Corsican */ + co = 'co', + /** Czech */ + cs = 'cs', + /** Church Slavic */ + cu = 'cu', + /** Welsh */ + cy = 'cy', + /** Danish */ + da = 'da', + /** German */ + de = 'de', + /** Austrian German */ + de_AT = 'de_AT', + /** Swiss High German */ + de_CH = 'de_CH', + /** Dzongkha */ + dz = 'dz', + /** Ewe */ + ee = 'ee', + /** Greek */ + el = 'el', + /** English */ + en = 'en', + /** Australian English */ + en_AU = 'en_AU', + /** Canadian English */ + en_CA = 'en_CA', + /** British English */ + en_GB = 'en_GB', + /** American English */ + en_US = 'en_US', + /** Esperanto */ + eo = 'eo', + /** Spanish */ + es = 'es', + /** European Spanish */ + es_ES = 'es_ES', + /** Mexican Spanish */ + es_MX = 'es_MX', + /** Estonian */ + et = 'et', + /** Basque */ + eu = 'eu', + /** Persian */ + fa = 'fa', + /** Dari */ + fa_AF = 'fa_AF', + /** Fulah */ + ff = 'ff', + /** Finnish */ + fi = 'fi', + /** Faroese */ + fo = 'fo', + /** French */ + fr = 'fr', + /** Canadian French */ + fr_CA = 'fr_CA', + /** Swiss French */ + fr_CH = 'fr_CH', + /** Western Frisian */ + fy = 'fy', + /** Irish */ + ga = 'ga', + /** Scottish Gaelic */ + gd = 'gd', + /** Galician */ + gl = 'gl', + /** Gujarati */ + gu = 'gu', + /** Manx */ + gv = 'gv', + /** Hausa */ + ha = 'ha', + /** Hebrew */ + he = 'he', + /** Hindi */ + hi = 'hi', + /** Croatian */ + hr = 'hr', + /** Haitian Creole */ + ht = 'ht', + /** Hungarian */ + hu = 'hu', + /** Armenian */ + hy = 'hy', + /** Interlingua */ + ia = 'ia', + /** Indonesian */ + id = 'id', + /** Igbo */ + ig = 'ig', + /** Sichuan Yi */ + ii = 'ii', + /** Icelandic */ + is = 'is', + /** Italian */ + it = 'it', + /** Japanese */ + ja = 'ja', + /** Javanese */ + jv = 'jv', + /** Georgian */ + ka = 'ka', + /** Kikuyu */ + ki = 'ki', + /** Kazakh */ + kk = 'kk', + /** Kalaallisut */ + kl = 'kl', + /** Khmer */ + km = 'km', + /** Kannada */ + kn = 'kn', + /** Korean */ + ko = 'ko', + /** Kashmiri */ + ks = 'ks', + /** Kurdish */ + ku = 'ku', + /** Cornish */ + kw = 'kw', + /** Kyrgyz */ + ky = 'ky', + /** Latin */ + la = 'la', + /** Luxembourgish */ + lb = 'lb', + /** Ganda */ + lg = 'lg', + /** Lingala */ + ln = 'ln', + /** Lao */ + lo = 'lo', + /** Lithuanian */ + lt = 'lt', + /** Luba-Katanga */ + lu = 'lu', + /** Latvian */ + lv = 'lv', + /** Malagasy */ + mg = 'mg', + /** Maori */ + mi = 'mi', + /** Macedonian */ + mk = 'mk', + /** Malayalam */ + ml = 'ml', + /** Mongolian */ + mn = 'mn', + /** Marathi */ + mr = 'mr', + /** Malay */ + ms = 'ms', + /** Maltese */ + mt = 'mt', + /** Burmese */ + my = 'my', + /** Norwegian Bokmål */ + nb = 'nb', + /** North Ndebele */ + nd = 'nd', + /** Nepali */ + ne = 'ne', + /** Dutch */ + nl = 'nl', + /** Flemish */ + nl_BE = 'nl_BE', + /** Norwegian Nynorsk */ + nn = 'nn', + /** Nyanja */ + ny = 'ny', + /** Oromo */ + om = 'om', + /** Odia */ + or = 'or', + /** Ossetic */ + os = 'os', + /** Punjabi */ + pa = 'pa', + /** Polish */ + pl = 'pl', + /** Pashto */ + ps = 'ps', + /** Portuguese */ + pt = 'pt', + /** Brazilian Portuguese */ + pt_BR = 'pt_BR', + /** European Portuguese */ + pt_PT = 'pt_PT', + /** Quechua */ + qu = 'qu', + /** Romansh */ + rm = 'rm', + /** Rundi */ + rn = 'rn', + /** Romanian */ + ro = 'ro', + /** Moldavian */ + ro_MD = 'ro_MD', + /** Russian */ + ru = 'ru', + /** Kinyarwanda */ + rw = 'rw', + /** Sanskrit */ + sa = 'sa', + /** Sindhi */ + sd = 'sd', + /** Northern Sami */ + se = 'se', + /** Sango */ + sg = 'sg', + /** Sinhala */ + si = 'si', + /** Slovak */ + sk = 'sk', + /** Slovenian */ + sl = 'sl', + /** Samoan */ + sm = 'sm', + /** Shona */ + sn = 'sn', + /** Somali */ + so = 'so', + /** Albanian */ + sq = 'sq', + /** Serbian */ + sr = 'sr', + /** Southern Sotho */ + st = 'st', + /** Sundanese */ + su = 'su', + /** Swedish */ + sv = 'sv', + /** Swahili */ + sw = 'sw', + /** Congo Swahili */ + sw_CD = 'sw_CD', + /** Tamil */ + ta = 'ta', + /** Telugu */ + te = 'te', + /** Tajik */ + tg = 'tg', + /** Thai */ + th = 'th', + /** Tigrinya */ + ti = 'ti', + /** Turkmen */ + tk = 'tk', + /** Tongan */ + to = 'to', + /** Turkish */ + tr = 'tr', + /** Tatar */ + tt = 'tt', + /** Uyghur */ + ug = 'ug', + /** Ukrainian */ + uk = 'uk', + /** Urdu */ + ur = 'ur', + /** Uzbek */ + uz = 'uz', + /** Vietnamese */ + vi = 'vi', + /** Volapük */ + vo = 'vo', + /** Wolof */ + wo = 'wo', + /** Xhosa */ + xh = 'xh', + /** Yiddish */ + yi = 'yi', + /** Yoruba */ + yo = 'yo', + /** Chinese */ + zh = 'zh', + /** Simplified Chinese */ + zh_Hans = 'zh_Hans', + /** Traditional Chinese */ + zh_Hant = 'zh_Hant', + /** Zulu */ + zu = 'zu', } /** Returned if attempting to set a Channel's defaultLanguageCode to a language which is not enabled in GlobalSettings */ export type LanguageNotAvailableError = ErrorResult & { - errorCode: ErrorCode; - languageCode: Scalars['String']; - message: Scalars['String']; + errorCode: ErrorCode; + languageCode: Scalars['String']; + message: Scalars['String']; }; export type LocaleStringCustomFieldConfig = CustomField & { - description?: Maybe>; - internal?: Maybe; - label?: Maybe>; - length?: Maybe; - list: Scalars['Boolean']; - name: Scalars['String']; - nullable?: Maybe; - pattern?: Maybe; - readonly?: Maybe; - type: Scalars['String']; - ui?: Maybe; + description?: Maybe>; + internal?: Maybe; + label?: Maybe>; + length?: Maybe; + list: Scalars['Boolean']; + name: Scalars['String']; + nullable?: Maybe; + pattern?: Maybe; + readonly?: Maybe; + type: Scalars['String']; + ui?: Maybe; }; export type LocalizedString = { - languageCode: LanguageCode; - value: Scalars['String']; + languageCode: LanguageCode; + value: Scalars['String']; }; export enum LogicalOperator { - AND = 'AND', - OR = 'OR' + AND = 'AND', + OR = 'OR', } export type ManualPaymentInput = { - metadata?: InputMaybe; - method: Scalars['String']; - orderId: Scalars['ID']; - transactionId?: InputMaybe; + metadata?: InputMaybe; + method: Scalars['String']; + orderId: Scalars['ID']; + transactionId?: InputMaybe; }; /** @@ -2285,1030 +2308,908 @@ export type ManualPaymentInput = { * is not in the required state. */ export type ManualPaymentStateError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; }; export type MimeTypeError = ErrorResult & { - errorCode: ErrorCode; - fileName: Scalars['String']; - message: Scalars['String']; - mimeType: Scalars['String']; + errorCode: ErrorCode; + fileName: Scalars['String']; + message: Scalars['String']; + mimeType: Scalars['String']; }; /** Returned if a PromotionCondition has neither a couponCode nor any conditions set */ export type MissingConditionsError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; }; export type ModifyOrderInput = { - addItems?: InputMaybe>; - adjustOrderLines?: InputMaybe>; - couponCodes?: InputMaybe>; - dryRun: Scalars['Boolean']; - note?: InputMaybe; - options?: InputMaybe; - orderId: Scalars['ID']; - refund?: InputMaybe; - surcharges?: InputMaybe>; - updateBillingAddress?: InputMaybe; - updateShippingAddress?: InputMaybe; + addItems?: InputMaybe>; + adjustOrderLines?: InputMaybe>; + couponCodes?: InputMaybe>; + dryRun: Scalars['Boolean']; + note?: InputMaybe; + options?: InputMaybe; + orderId: Scalars['ID']; + refund?: InputMaybe; + surcharges?: InputMaybe>; + updateBillingAddress?: InputMaybe; + updateShippingAddress?: InputMaybe; }; export type ModifyOrderOptions = { - freezePromotions?: InputMaybe; - recalculateShipping?: InputMaybe; -}; - -export type ModifyOrderResult = CouponCodeExpiredError | CouponCodeInvalidError | CouponCodeLimitError | InsufficientStockError | NegativeQuantityError | NoChangesSpecifiedError | Order | OrderLimitError | OrderModificationStateError | PaymentMethodMissingError | RefundPaymentIdMissingError; + freezePromotions?: InputMaybe; + recalculateShipping?: InputMaybe; +}; + +export type ModifyOrderResult = + | CouponCodeExpiredError + | CouponCodeInvalidError + | CouponCodeLimitError + | InsufficientStockError + | NegativeQuantityError + | NoChangesSpecifiedError + | Order + | OrderLimitError + | OrderModificationStateError + | PaymentMethodMissingError + | RefundPaymentIdMissingError; export type MoveCollectionInput = { - collectionId: Scalars['ID']; - index: Scalars['Int']; - parentId: Scalars['ID']; + collectionId: Scalars['ID']; + index: Scalars['Int']; + parentId: Scalars['ID']; }; /** Returned if an operation has specified OrderLines from multiple Orders */ export type MultipleOrderError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; }; export type Mutation = { - /** Add Customers to a CustomerGroup */ - addCustomersToGroup: CustomerGroup; - addFulfillmentToOrder: AddFulfillmentToOrderResult; - /** Adds an item to the draft Order. */ - addItemToDraftOrder: UpdateOrderItemsResult; - /** - * Used to manually create a new Payment against an Order. - * This can be used by an Administrator when an Order is in the ArrangingPayment state. - * - * It is also used when a completed Order - * has been modified (using `modifyOrder`) and the price has increased. The extra payment - * can then be manually arranged by the administrator, and the details used to create a new - * Payment. - */ - addManualPaymentToOrder: AddManualPaymentToOrderResult; - /** Add members to a Zone */ - addMembersToZone: Zone; - addNoteToCustomer: Customer; - addNoteToOrder: Order; - /** Add an OptionGroup to a Product */ - addOptionGroupToProduct: Product; - /** Adjusts a draft OrderLine. If custom fields are defined on the OrderLine entity, a third argument 'customFields' of type `OrderLineCustomFieldsInput` will be available. */ - adjustDraftOrderLine: UpdateOrderItemsResult; - /** Applies the given coupon code to the draft Order */ - applyCouponCodeToDraftOrder: ApplyCouponCodeResult; - /** Assign assets to channel */ - assignAssetsToChannel: Array; - /** Assigns Collections to the specified Channel */ - assignCollectionsToChannel: Array; - /** Assigns Facets to the specified Channel */ - assignFacetsToChannel: Array; - /** Assigns ProductVariants to the specified Channel */ - assignProductVariantsToChannel: Array; - /** Assigns all ProductVariants of Product to the specified Channel */ - assignProductsToChannel: Array; - /** Assigns Promotions to the specified Channel */ - assignPromotionsToChannel: Array; - /** Assign a Role to an Administrator */ - assignRoleToAdministrator: Administrator; - /** Authenticates the user using a named authentication strategy */ - authenticate: AuthenticationResult; - cancelJob: Job; - cancelOrder: CancelOrderResult; - cancelPayment: CancelPaymentResult; - /** Create a new Administrator */ - createAdministrator: Administrator; - /** Create a new Asset */ - createAssets: Array; - /** Create a new Channel */ - createChannel: CreateChannelResult; - /** Create a new Collection */ - createCollection: Collection; - /** Create a new Country */ - createCountry: Country; - /** Create a new Customer. If a password is provided, a new User will also be created an linked to the Customer. */ - createCustomer: CreateCustomerResult; - /** Create a new Address and associate it with the Customer specified by customerId */ - createCustomerAddress: Address; - /** Create a new CustomerGroup */ - createCustomerGroup: CustomerGroup; - /** Creates a draft Order */ - createDraftOrder: Order; - /** Create a new Facet */ - createFacet: Facet; - /** Create one or more FacetValues */ - createFacetValues: Array; - /** Create existing PaymentMethod */ - createPaymentMethod: PaymentMethod; - /** Create a new Product */ - createProduct: Product; - /** Create a new ProductOption within a ProductOptionGroup */ - createProductOption: ProductOption; - /** Create a new ProductOptionGroup */ - createProductOptionGroup: ProductOptionGroup; - /** Create a set of ProductVariants based on the OptionGroups assigned to the given Product */ - createProductVariants: Array>; - createPromotion: CreatePromotionResult; - /** Create a new Role */ - createRole: Role; - /** Create a new Seller */ - createSeller: Seller; - /** Create a new ShippingMethod */ - createShippingMethod: ShippingMethod; - /** Create a new Tag */ - createTag: Tag; - /** Create a new TaxCategory */ - createTaxCategory: TaxCategory; - /** Create a new TaxRate */ - createTaxRate: TaxRate; - /** Create a new Vendor */ - createVendor: Vendor; - /** Create a new Zone */ - createZone: Zone; - /** Delete an Administrator */ - deleteAdministrator: DeletionResponse; - /** Delete an Asset */ - deleteAsset: DeletionResponse; - /** Delete multiple Assets */ - deleteAssets: DeletionResponse; - /** Delete a Channel */ - deleteChannel: DeletionResponse; - /** Delete a Collection and all of its descendants */ - deleteCollection: DeletionResponse; - /** Delete multiple Collections and all of their descendants */ - deleteCollections: Array; - /** Delete a Country */ - deleteCountry: DeletionResponse; - /** Delete a Customer */ - deleteCustomer: DeletionResponse; - /** Update an existing Address */ - deleteCustomerAddress: Success; - /** Delete a CustomerGroup */ - deleteCustomerGroup: DeletionResponse; - deleteCustomerNote: DeletionResponse; - /** Deletes a draft Order */ - deleteDraftOrder: DeletionResponse; - /** Delete an existing Facet */ - deleteFacet: DeletionResponse; - /** Delete one or more FacetValues */ - deleteFacetValues: Array; - /** Delete multiple existing Facets */ - deleteFacets: Array; - deleteOrderNote: DeletionResponse; - /** Delete a PaymentMethod */ - deletePaymentMethod: DeletionResponse; - /** Delete a Product */ - deleteProduct: DeletionResponse; - /** Delete a ProductOption */ - deleteProductOption: DeletionResponse; - /** Delete a ProductVariant */ - deleteProductVariant: DeletionResponse; - /** Delete multiple ProductVariants */ - deleteProductVariants: Array; - /** Delete multiple Products */ - deleteProducts: Array; - deletePromotion: DeletionResponse; - /** Delete an existing Role */ - deleteRole: DeletionResponse; - /** Delete a Seller */ - deleteSeller: DeletionResponse; - /** Delete a ShippingMethod */ - deleteShippingMethod: DeletionResponse; - /** Delete an existing Tag */ - deleteTag: DeletionResponse; - /** Deletes a TaxCategory */ - deleteTaxCategory: DeletionResponse; - /** Delete a TaxRate */ - deleteTaxRate: DeletionResponse; - /** Delete a Vendor */ - deleteVendor: DeletionResponse; - /** Delete a Zone */ - deleteZone: DeletionResponse; - flushBufferedJobs: Success; - importProducts?: Maybe; - /** Authenticates the user using the native authentication strategy. This mutation is an alias for `authenticate({ native: { ... }})` */ - login: NativeAuthenticationResult; - logout: Success; - /** - * Allows an Order to be modified after it has been completed by the Customer. The Order must first - * be in the `Modifying` state. - */ - modifyOrder: ModifyOrderResult; - /** Move a Collection to a different parent or index */ - moveCollection: Collection; - refundOrder: RefundOrderResult; - reindex: Job; - /** Removes Collections from the specified Channel */ - removeCollectionsFromChannel: Array; - /** Removes the given coupon code from the draft Order */ - removeCouponCodeFromDraftOrder?: Maybe; - /** Remove Customers from a CustomerGroup */ - removeCustomersFromGroup: CustomerGroup; - /** Remove an OrderLine from the draft Order */ - removeDraftOrderLine: RemoveOrderItemsResult; - /** Removes Facets from the specified Channel */ - removeFacetsFromChannel: Array; - /** Remove members from a Zone */ - removeMembersFromZone: Zone; - /** Remove an OptionGroup from a Product */ - removeOptionGroupFromProduct: RemoveOptionGroupFromProductResult; - /** Removes ProductVariants from the specified Channel */ - removeProductVariantsFromChannel: Array; - /** Removes all ProductVariants of Product from the specified Channel */ - removeProductsFromChannel: Array; - /** Removes Promotions from the specified Channel */ - removePromotionsFromChannel: Array; - /** Remove all settled jobs in the given queues older than the given date. Returns the number of jobs deleted. */ - removeSettledJobs: Scalars['Int']; - runPendingSearchIndexUpdates: Success; - setCustomerForDraftOrder: SetCustomerForDraftOrderResult; - /** Sets the billing address for a draft Order */ - setDraftOrderBillingAddress: Order; - /** Allows any custom fields to be set for the active order */ - setDraftOrderCustomFields: Order; - /** Sets the shipping address for a draft Order */ - setDraftOrderShippingAddress: Order; - /** Sets the shipping method by id, which can be obtained with the `eligibleShippingMethodsForDraftOrder` query */ - setDraftOrderShippingMethod: SetOrderShippingMethodResult; - setOrderCustomFields?: Maybe; - settlePayment: SettlePaymentResult; - settleRefund: SettleRefundResult; - transitionFulfillmentToState: TransitionFulfillmentToStateResult; - transitionOrderToState?: Maybe; - transitionPaymentToState: TransitionPaymentToStateResult; - /** Update the active (currently logged-in) Administrator */ - updateActiveAdministrator: Administrator; - /** Update an existing Administrator */ - updateAdministrator: Administrator; - /** Update an existing Asset */ - updateAsset: Asset; - /** Update an existing Channel */ - updateChannel: UpdateChannelResult; - /** Update an existing Collection */ - updateCollection: Collection; - /** Update an existing Country */ - updateCountry: Country; - /** Update an existing Customer */ - updateCustomer: UpdateCustomerResult; - /** Update an existing Address */ - updateCustomerAddress: Address; - /** Update an existing CustomerGroup */ - updateCustomerGroup: CustomerGroup; - updateCustomerNote: HistoryEntry; - /** Update an existing Facet */ - updateFacet: Facet; - /** Update one or more FacetValues */ - updateFacetValues: Array; - updateGlobalSettings: UpdateGlobalSettingsResult; - updateOrderNote: HistoryEntry; - /** Update an existing PaymentMethod */ - updatePaymentMethod: PaymentMethod; - /** Update an existing Product */ - updateProduct: Product; - /** Create a new ProductOption within a ProductOptionGroup */ - updateProductOption: ProductOption; - /** Update an existing ProductOptionGroup */ - updateProductOptionGroup: ProductOptionGroup; - /** Update existing ProductVariants */ - updateProductVariants: Array>; - /** Update multiple existing Products */ - updateProducts: Array; - updatePromotion: UpdatePromotionResult; - /** Update an existing Role */ - updateRole: Role; - /** Update an existing Seller */ - updateSeller: Seller; - /** Update an existing ShippingMethod */ - updateShippingMethod: ShippingMethod; - /** Update an existing Tag */ - updateTag: Tag; - /** Update an existing TaxCategory */ - updateTaxCategory: TaxCategory; - /** Update an existing TaxRate */ - updateTaxRate: TaxRate; - /** Update an existing Vendor */ - updateVendor: Vendor; - /** Update an existing Zone */ - updateZone: Zone; + /** Add Customers to a CustomerGroup */ + addCustomersToGroup: CustomerGroup; + addFulfillmentToOrder: AddFulfillmentToOrderResult; + /** Adds an item to the draft Order. */ + addItemToDraftOrder: UpdateOrderItemsResult; + /** + * Used to manually create a new Payment against an Order. + * This can be used by an Administrator when an Order is in the ArrangingPayment state. + * + * It is also used when a completed Order + * has been modified (using `modifyOrder`) and the price has increased. The extra payment + * can then be manually arranged by the administrator, and the details used to create a new + * Payment. + */ + addManualPaymentToOrder: AddManualPaymentToOrderResult; + /** Add members to a Zone */ + addMembersToZone: Zone; + addNoteToCustomer: Customer; + addNoteToOrder: Order; + /** Add an OptionGroup to a Product */ + addOptionGroupToProduct: Product; + /** Adjusts a draft OrderLine. If custom fields are defined on the OrderLine entity, a third argument 'customFields' of type `OrderLineCustomFieldsInput` will be available. */ + adjustDraftOrderLine: UpdateOrderItemsResult; + /** Applies the given coupon code to the draft Order */ + applyCouponCodeToDraftOrder: ApplyCouponCodeResult; + /** Assign assets to channel */ + assignAssetsToChannel: Array; + /** Assigns Collections to the specified Channel */ + assignCollectionsToChannel: Array; + /** Assigns Facets to the specified Channel */ + assignFacetsToChannel: Array; + /** Assigns ProductVariants to the specified Channel */ + assignProductVariantsToChannel: Array; + /** Assigns all ProductVariants of Product to the specified Channel */ + assignProductsToChannel: Array; + /** Assigns Promotions to the specified Channel */ + assignPromotionsToChannel: Array; + /** Assign a Role to an Administrator */ + assignRoleToAdministrator: Administrator; + /** Authenticates the user using a named authentication strategy */ + authenticate: AuthenticationResult; + cancelJob: Job; + cancelOrder: CancelOrderResult; + cancelPayment: CancelPaymentResult; + /** Create a new Administrator */ + createAdministrator: Administrator; + /** Create a new Asset */ + createAssets: Array; + /** Create a new Channel */ + createChannel: CreateChannelResult; + /** Create a new Collection */ + createCollection: Collection; + /** Create a new Country */ + createCountry: Country; + /** Create a new Customer. If a password is provided, a new User will also be created an linked to the Customer. */ + createCustomer: CreateCustomerResult; + /** Create a new Address and associate it with the Customer specified by customerId */ + createCustomerAddress: Address; + /** Create a new CustomerGroup */ + createCustomerGroup: CustomerGroup; + /** Creates a draft Order */ + createDraftOrder: Order; + /** Create a new Facet */ + createFacet: Facet; + /** Create one or more FacetValues */ + createFacetValues: Array; + /** Create existing PaymentMethod */ + createPaymentMethod: PaymentMethod; + /** Create a new Product */ + createProduct: Product; + /** Create a new ProductOption within a ProductOptionGroup */ + createProductOption: ProductOption; + /** Create a new ProductOptionGroup */ + createProductOptionGroup: ProductOptionGroup; + /** Create a set of ProductVariants based on the OptionGroups assigned to the given Product */ + createProductVariants: Array>; + createPromotion: CreatePromotionResult; + /** Create a new Role */ + createRole: Role; + /** Create a new Seller */ + createSeller: Seller; + /** Create a new ShippingMethod */ + createShippingMethod: ShippingMethod; + /** Create a new Tag */ + createTag: Tag; + /** Create a new TaxCategory */ + createTaxCategory: TaxCategory; + /** Create a new TaxRate */ + createTaxRate: TaxRate; + /** Create a new Vendor */ + createVendor: Vendor; + /** Create a new Zone */ + createZone: Zone; + /** Delete an Administrator */ + deleteAdministrator: DeletionResponse; + /** Delete an Asset */ + deleteAsset: DeletionResponse; + /** Delete multiple Assets */ + deleteAssets: DeletionResponse; + /** Delete a Channel */ + deleteChannel: DeletionResponse; + /** Delete a Collection and all of its descendants */ + deleteCollection: DeletionResponse; + /** Delete multiple Collections and all of their descendants */ + deleteCollections: Array; + /** Delete a Country */ + deleteCountry: DeletionResponse; + /** Delete a Customer */ + deleteCustomer: DeletionResponse; + /** Update an existing Address */ + deleteCustomerAddress: Success; + /** Delete a CustomerGroup */ + deleteCustomerGroup: DeletionResponse; + deleteCustomerNote: DeletionResponse; + /** Deletes a draft Order */ + deleteDraftOrder: DeletionResponse; + /** Delete an existing Facet */ + deleteFacet: DeletionResponse; + /** Delete one or more FacetValues */ + deleteFacetValues: Array; + /** Delete multiple existing Facets */ + deleteFacets: Array; + deleteOrderNote: DeletionResponse; + /** Delete a PaymentMethod */ + deletePaymentMethod: DeletionResponse; + /** Delete a Product */ + deleteProduct: DeletionResponse; + /** Delete a ProductOption */ + deleteProductOption: DeletionResponse; + /** Delete a ProductVariant */ + deleteProductVariant: DeletionResponse; + /** Delete multiple ProductVariants */ + deleteProductVariants: Array; + /** Delete multiple Products */ + deleteProducts: Array; + deletePromotion: DeletionResponse; + /** Delete an existing Role */ + deleteRole: DeletionResponse; + /** Delete a Seller */ + deleteSeller: DeletionResponse; + /** Delete a ShippingMethod */ + deleteShippingMethod: DeletionResponse; + /** Delete an existing Tag */ + deleteTag: DeletionResponse; + /** Deletes a TaxCategory */ + deleteTaxCategory: DeletionResponse; + /** Delete a TaxRate */ + deleteTaxRate: DeletionResponse; + /** Delete a Vendor */ + deleteVendor: DeletionResponse; + /** Delete a Zone */ + deleteZone: DeletionResponse; + flushBufferedJobs: Success; + importProducts?: Maybe; + /** Authenticates the user using the native authentication strategy. This mutation is an alias for `authenticate({ native: { ... }})` */ + login: NativeAuthenticationResult; + logout: Success; + /** + * Allows an Order to be modified after it has been completed by the Customer. The Order must first + * be in the `Modifying` state. + */ + modifyOrder: ModifyOrderResult; + /** Move a Collection to a different parent or index */ + moveCollection: Collection; + refundOrder: RefundOrderResult; + reindex: Job; + /** Removes Collections from the specified Channel */ + removeCollectionsFromChannel: Array; + /** Removes the given coupon code from the draft Order */ + removeCouponCodeFromDraftOrder?: Maybe; + /** Remove Customers from a CustomerGroup */ + removeCustomersFromGroup: CustomerGroup; + /** Remove an OrderLine from the draft Order */ + removeDraftOrderLine: RemoveOrderItemsResult; + /** Removes Facets from the specified Channel */ + removeFacetsFromChannel: Array; + /** Remove members from a Zone */ + removeMembersFromZone: Zone; + /** Remove an OptionGroup from a Product */ + removeOptionGroupFromProduct: RemoveOptionGroupFromProductResult; + /** Removes ProductVariants from the specified Channel */ + removeProductVariantsFromChannel: Array; + /** Removes all ProductVariants of Product from the specified Channel */ + removeProductsFromChannel: Array; + /** Removes Promotions from the specified Channel */ + removePromotionsFromChannel: Array; + /** Remove all settled jobs in the given queues older than the given date. Returns the number of jobs deleted. */ + removeSettledJobs: Scalars['Int']; + runPendingSearchIndexUpdates: Success; + setCustomerForDraftOrder: SetCustomerForDraftOrderResult; + /** Sets the billing address for a draft Order */ + setDraftOrderBillingAddress: Order; + /** Allows any custom fields to be set for the active order */ + setDraftOrderCustomFields: Order; + /** Sets the shipping address for a draft Order */ + setDraftOrderShippingAddress: Order; + /** Sets the shipping method by id, which can be obtained with the `eligibleShippingMethodsForDraftOrder` query */ + setDraftOrderShippingMethod: SetOrderShippingMethodResult; + setOrderCustomFields?: Maybe; + settlePayment: SettlePaymentResult; + settleRefund: SettleRefundResult; + transitionFulfillmentToState: TransitionFulfillmentToStateResult; + transitionOrderToState?: Maybe; + transitionPaymentToState: TransitionPaymentToStateResult; + /** Update the active (currently logged-in) Administrator */ + updateActiveAdministrator: Administrator; + /** Update an existing Administrator */ + updateAdministrator: Administrator; + /** Update an existing Asset */ + updateAsset: Asset; + /** Update an existing Channel */ + updateChannel: UpdateChannelResult; + /** Update an existing Collection */ + updateCollection: Collection; + /** Update an existing Country */ + updateCountry: Country; + /** Update an existing Customer */ + updateCustomer: UpdateCustomerResult; + /** Update an existing Address */ + updateCustomerAddress: Address; + /** Update an existing CustomerGroup */ + updateCustomerGroup: CustomerGroup; + updateCustomerNote: HistoryEntry; + /** Update an existing Facet */ + updateFacet: Facet; + /** Update one or more FacetValues */ + updateFacetValues: Array; + updateGlobalSettings: UpdateGlobalSettingsResult; + updateOrderNote: HistoryEntry; + /** Update an existing PaymentMethod */ + updatePaymentMethod: PaymentMethod; + /** Update an existing Product */ + updateProduct: Product; + /** Create a new ProductOption within a ProductOptionGroup */ + updateProductOption: ProductOption; + /** Update an existing ProductOptionGroup */ + updateProductOptionGroup: ProductOptionGroup; + /** Update existing ProductVariants */ + updateProductVariants: Array>; + /** Update multiple existing Products */ + updateProducts: Array; + updatePromotion: UpdatePromotionResult; + /** Update an existing Role */ + updateRole: Role; + /** Update an existing Seller */ + updateSeller: Seller; + /** Update an existing ShippingMethod */ + updateShippingMethod: ShippingMethod; + /** Update an existing Tag */ + updateTag: Tag; + /** Update an existing TaxCategory */ + updateTaxCategory: TaxCategory; + /** Update an existing TaxRate */ + updateTaxRate: TaxRate; + /** Update an existing Vendor */ + updateVendor: Vendor; + /** Update an existing Zone */ + updateZone: Zone; }; - export type MutationAddCustomersToGroupArgs = { - customerGroupId: Scalars['ID']; - customerIds: Array; + customerGroupId: Scalars['ID']; + customerIds: Array; }; - export type MutationAddFulfillmentToOrderArgs = { - input: FulfillOrderInput; + input: FulfillOrderInput; }; - export type MutationAddItemToDraftOrderArgs = { - input: AddItemToDraftOrderInput; - orderId: Scalars['ID']; + input: AddItemToDraftOrderInput; + orderId: Scalars['ID']; }; - export type MutationAddManualPaymentToOrderArgs = { - input: ManualPaymentInput; + input: ManualPaymentInput; }; - export type MutationAddMembersToZoneArgs = { - memberIds: Array; - zoneId: Scalars['ID']; + memberIds: Array; + zoneId: Scalars['ID']; }; - export type MutationAddNoteToCustomerArgs = { - input: AddNoteToCustomerInput; + input: AddNoteToCustomerInput; }; - export type MutationAddNoteToOrderArgs = { - input: AddNoteToOrderInput; + input: AddNoteToOrderInput; }; - export type MutationAddOptionGroupToProductArgs = { - optionGroupId: Scalars['ID']; - productId: Scalars['ID']; + optionGroupId: Scalars['ID']; + productId: Scalars['ID']; }; - export type MutationAdjustDraftOrderLineArgs = { - input: AdjustDraftOrderLineInput; - orderId: Scalars['ID']; + input: AdjustDraftOrderLineInput; + orderId: Scalars['ID']; }; - export type MutationApplyCouponCodeToDraftOrderArgs = { - couponCode: Scalars['String']; - orderId: Scalars['ID']; + couponCode: Scalars['String']; + orderId: Scalars['ID']; }; - export type MutationAssignAssetsToChannelArgs = { - input: AssignAssetsToChannelInput; + input: AssignAssetsToChannelInput; }; - export type MutationAssignCollectionsToChannelArgs = { - input: AssignCollectionsToChannelInput; + input: AssignCollectionsToChannelInput; }; - export type MutationAssignFacetsToChannelArgs = { - input: AssignFacetsToChannelInput; + input: AssignFacetsToChannelInput; }; - export type MutationAssignProductVariantsToChannelArgs = { - input: AssignProductVariantsToChannelInput; + input: AssignProductVariantsToChannelInput; }; - export type MutationAssignProductsToChannelArgs = { - input: AssignProductsToChannelInput; + input: AssignProductsToChannelInput; }; - export type MutationAssignPromotionsToChannelArgs = { - input: AssignPromotionsToChannelInput; + input: AssignPromotionsToChannelInput; }; - export type MutationAssignRoleToAdministratorArgs = { - administratorId: Scalars['ID']; - roleId: Scalars['ID']; + administratorId: Scalars['ID']; + roleId: Scalars['ID']; }; - export type MutationAuthenticateArgs = { - input: AuthenticationInput; - rememberMe?: InputMaybe; + input: AuthenticationInput; + rememberMe?: InputMaybe; }; - export type MutationCancelJobArgs = { - jobId: Scalars['ID']; + jobId: Scalars['ID']; }; - export type MutationCancelOrderArgs = { - input: CancelOrderInput; + input: CancelOrderInput; }; - export type MutationCancelPaymentArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; - export type MutationCreateAdministratorArgs = { - input: CreateAdministratorInput; + input: CreateAdministratorInput; }; - export type MutationCreateAssetsArgs = { - input: Array; + input: Array; }; - export type MutationCreateChannelArgs = { - input: CreateChannelInput; + input: CreateChannelInput; }; - export type MutationCreateCollectionArgs = { - input: CreateCollectionInput; + input: CreateCollectionInput; }; - export type MutationCreateCountryArgs = { - input: CreateCountryInput; + input: CreateCountryInput; }; - export type MutationCreateCustomerArgs = { - input: CreateCustomerInput; - password?: InputMaybe; + input: CreateCustomerInput; + password?: InputMaybe; }; - export type MutationCreateCustomerAddressArgs = { - customerId: Scalars['ID']; - input: CreateAddressInput; + customerId: Scalars['ID']; + input: CreateAddressInput; }; - export type MutationCreateCustomerGroupArgs = { - input: CreateCustomerGroupInput; + input: CreateCustomerGroupInput; }; - export type MutationCreateFacetArgs = { - input: CreateFacetInput; + input: CreateFacetInput; }; - export type MutationCreateFacetValuesArgs = { - input: Array; + input: Array; }; - export type MutationCreatePaymentMethodArgs = { - input: CreatePaymentMethodInput; + input: CreatePaymentMethodInput; }; - export type MutationCreateProductArgs = { - input: CreateProductInput; + input: CreateProductInput; }; - export type MutationCreateProductOptionArgs = { - input: CreateProductOptionInput; + input: CreateProductOptionInput; }; - export type MutationCreateProductOptionGroupArgs = { - input: CreateProductOptionGroupInput; + input: CreateProductOptionGroupInput; }; - export type MutationCreateProductVariantsArgs = { - input: Array; + input: Array; }; - export type MutationCreatePromotionArgs = { - input: CreatePromotionInput; + input: CreatePromotionInput; }; - export type MutationCreateRoleArgs = { - input: CreateRoleInput; + input: CreateRoleInput; }; - export type MutationCreateSellerArgs = { - input: CreateSellerInput; + input: CreateSellerInput; }; - export type MutationCreateShippingMethodArgs = { - input: CreateShippingMethodInput; + input: CreateShippingMethodInput; }; - export type MutationCreateTagArgs = { - input: CreateTagInput; + input: CreateTagInput; }; - export type MutationCreateTaxCategoryArgs = { - input: CreateTaxCategoryInput; + input: CreateTaxCategoryInput; }; - export type MutationCreateTaxRateArgs = { - input: CreateTaxRateInput; + input: CreateTaxRateInput; }; - export type MutationCreateVendorArgs = { - input: CreateVendorInput; + input: CreateVendorInput; }; - export type MutationCreateZoneArgs = { - input: CreateZoneInput; + input: CreateZoneInput; }; - export type MutationDeleteAdministratorArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; - export type MutationDeleteAssetArgs = { - input: DeleteAssetInput; + input: DeleteAssetInput; }; - export type MutationDeleteAssetsArgs = { - input: DeleteAssetsInput; + input: DeleteAssetsInput; }; - export type MutationDeleteChannelArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; - export type MutationDeleteCollectionArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; - export type MutationDeleteCollectionsArgs = { - ids: Array; + ids: Array; }; - export type MutationDeleteCountryArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; - export type MutationDeleteCustomerArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; - export type MutationDeleteCustomerAddressArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; - export type MutationDeleteCustomerGroupArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; - export type MutationDeleteCustomerNoteArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; - export type MutationDeleteDraftOrderArgs = { - orderId: Scalars['ID']; + orderId: Scalars['ID']; }; - export type MutationDeleteFacetArgs = { - force?: InputMaybe; - id: Scalars['ID']; + force?: InputMaybe; + id: Scalars['ID']; }; - export type MutationDeleteFacetValuesArgs = { - force?: InputMaybe; - ids: Array; + force?: InputMaybe; + ids: Array; }; - export type MutationDeleteFacetsArgs = { - force?: InputMaybe; - ids: Array; + force?: InputMaybe; + ids: Array; }; - export type MutationDeleteOrderNoteArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; - export type MutationDeletePaymentMethodArgs = { - force?: InputMaybe; - id: Scalars['ID']; + force?: InputMaybe; + id: Scalars['ID']; }; - export type MutationDeleteProductArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; - export type MutationDeleteProductOptionArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; - export type MutationDeleteProductVariantArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; - export type MutationDeleteProductVariantsArgs = { - ids: Array; + ids: Array; }; - export type MutationDeleteProductsArgs = { - ids: Array; + ids: Array; }; - export type MutationDeletePromotionArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; - export type MutationDeleteRoleArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; - export type MutationDeleteSellerArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; - export type MutationDeleteShippingMethodArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; - export type MutationDeleteTagArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; - export type MutationDeleteTaxCategoryArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; - export type MutationDeleteTaxRateArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; - export type MutationDeleteVendorArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; - export type MutationDeleteZoneArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; - export type MutationFlushBufferedJobsArgs = { - bufferIds?: InputMaybe>; + bufferIds?: InputMaybe>; }; - export type MutationImportProductsArgs = { - csvFile: Scalars['Upload']; + csvFile: Scalars['Upload']; }; - export type MutationLoginArgs = { - password: Scalars['String']; - rememberMe?: InputMaybe; - username: Scalars['String']; + password: Scalars['String']; + rememberMe?: InputMaybe; + username: Scalars['String']; }; - export type MutationModifyOrderArgs = { - input: ModifyOrderInput; + input: ModifyOrderInput; }; - export type MutationMoveCollectionArgs = { - input: MoveCollectionInput; + input: MoveCollectionInput; }; - export type MutationRefundOrderArgs = { - input: RefundOrderInput; + input: RefundOrderInput; }; - export type MutationRemoveCollectionsFromChannelArgs = { - input: RemoveCollectionsFromChannelInput; + input: RemoveCollectionsFromChannelInput; }; - export type MutationRemoveCouponCodeFromDraftOrderArgs = { - couponCode: Scalars['String']; - orderId: Scalars['ID']; + couponCode: Scalars['String']; + orderId: Scalars['ID']; }; - export type MutationRemoveCustomersFromGroupArgs = { - customerGroupId: Scalars['ID']; - customerIds: Array; + customerGroupId: Scalars['ID']; + customerIds: Array; }; - export type MutationRemoveDraftOrderLineArgs = { - orderId: Scalars['ID']; - orderLineId: Scalars['ID']; + orderId: Scalars['ID']; + orderLineId: Scalars['ID']; }; - export type MutationRemoveFacetsFromChannelArgs = { - input: RemoveFacetsFromChannelInput; + input: RemoveFacetsFromChannelInput; }; - export type MutationRemoveMembersFromZoneArgs = { - memberIds: Array; - zoneId: Scalars['ID']; + memberIds: Array; + zoneId: Scalars['ID']; }; - export type MutationRemoveOptionGroupFromProductArgs = { - optionGroupId: Scalars['ID']; - productId: Scalars['ID']; + optionGroupId: Scalars['ID']; + productId: Scalars['ID']; }; - export type MutationRemoveProductVariantsFromChannelArgs = { - input: RemoveProductVariantsFromChannelInput; + input: RemoveProductVariantsFromChannelInput; }; - export type MutationRemoveProductsFromChannelArgs = { - input: RemoveProductsFromChannelInput; + input: RemoveProductsFromChannelInput; }; - export type MutationRemovePromotionsFromChannelArgs = { - input: RemovePromotionsFromChannelInput; + input: RemovePromotionsFromChannelInput; }; - export type MutationRemoveSettledJobsArgs = { - olderThan?: InputMaybe; - queueNames?: InputMaybe>; + olderThan?: InputMaybe; + queueNames?: InputMaybe>; }; - export type MutationSetCustomerForDraftOrderArgs = { - customerId?: InputMaybe; - input?: InputMaybe; - orderId: Scalars['ID']; + customerId?: InputMaybe; + input?: InputMaybe; + orderId: Scalars['ID']; }; - export type MutationSetDraftOrderBillingAddressArgs = { - input: CreateAddressInput; - orderId: Scalars['ID']; + input: CreateAddressInput; + orderId: Scalars['ID']; }; - export type MutationSetDraftOrderCustomFieldsArgs = { - input: UpdateOrderInput; - orderId: Scalars['ID']; + input: UpdateOrderInput; + orderId: Scalars['ID']; }; - export type MutationSetDraftOrderShippingAddressArgs = { - input: CreateAddressInput; - orderId: Scalars['ID']; + input: CreateAddressInput; + orderId: Scalars['ID']; }; - export type MutationSetDraftOrderShippingMethodArgs = { - orderId: Scalars['ID']; - shippingMethodId: Scalars['ID']; + orderId: Scalars['ID']; + shippingMethodId: Scalars['ID']; }; - export type MutationSetOrderCustomFieldsArgs = { - input: UpdateOrderInput; + input: UpdateOrderInput; }; - export type MutationSettlePaymentArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; - export type MutationSettleRefundArgs = { - input: SettleRefundInput; + input: SettleRefundInput; }; - export type MutationTransitionFulfillmentToStateArgs = { - id: Scalars['ID']; - state: Scalars['String']; + id: Scalars['ID']; + state: Scalars['String']; }; - export type MutationTransitionOrderToStateArgs = { - id: Scalars['ID']; - state: Scalars['String']; + id: Scalars['ID']; + state: Scalars['String']; }; - export type MutationTransitionPaymentToStateArgs = { - id: Scalars['ID']; - state: Scalars['String']; + id: Scalars['ID']; + state: Scalars['String']; }; - export type MutationUpdateActiveAdministratorArgs = { - input: UpdateActiveAdministratorInput; + input: UpdateActiveAdministratorInput; }; - export type MutationUpdateAdministratorArgs = { - input: UpdateAdministratorInput; + input: UpdateAdministratorInput; }; - export type MutationUpdateAssetArgs = { - input: UpdateAssetInput; + input: UpdateAssetInput; }; - export type MutationUpdateChannelArgs = { - input: UpdateChannelInput; + input: UpdateChannelInput; }; - export type MutationUpdateCollectionArgs = { - input: UpdateCollectionInput; + input: UpdateCollectionInput; }; - export type MutationUpdateCountryArgs = { - input: UpdateCountryInput; + input: UpdateCountryInput; }; - export type MutationUpdateCustomerArgs = { - input: UpdateCustomerInput; + input: UpdateCustomerInput; }; - export type MutationUpdateCustomerAddressArgs = { - input: UpdateAddressInput; + input: UpdateAddressInput; }; - export type MutationUpdateCustomerGroupArgs = { - input: UpdateCustomerGroupInput; + input: UpdateCustomerGroupInput; }; - export type MutationUpdateCustomerNoteArgs = { - input: UpdateCustomerNoteInput; + input: UpdateCustomerNoteInput; }; - export type MutationUpdateFacetArgs = { - input: UpdateFacetInput; + input: UpdateFacetInput; }; - export type MutationUpdateFacetValuesArgs = { - input: Array; + input: Array; }; - export type MutationUpdateGlobalSettingsArgs = { - input: UpdateGlobalSettingsInput; + input: UpdateGlobalSettingsInput; }; - export type MutationUpdateOrderNoteArgs = { - input: UpdateOrderNoteInput; + input: UpdateOrderNoteInput; }; - export type MutationUpdatePaymentMethodArgs = { - input: UpdatePaymentMethodInput; + input: UpdatePaymentMethodInput; }; - export type MutationUpdateProductArgs = { - input: UpdateProductInput; + input: UpdateProductInput; }; - export type MutationUpdateProductOptionArgs = { - input: UpdateProductOptionInput; + input: UpdateProductOptionInput; }; - export type MutationUpdateProductOptionGroupArgs = { - input: UpdateProductOptionGroupInput; + input: UpdateProductOptionGroupInput; }; - export type MutationUpdateProductVariantsArgs = { - input: Array; + input: Array; }; - export type MutationUpdateProductsArgs = { - input: Array; + input: Array; }; - export type MutationUpdatePromotionArgs = { - input: UpdatePromotionInput; + input: UpdatePromotionInput; }; - export type MutationUpdateRoleArgs = { - input: UpdateRoleInput; + input: UpdateRoleInput; }; - export type MutationUpdateSellerArgs = { - input: UpdateSellerInput; + input: UpdateSellerInput; }; - export type MutationUpdateShippingMethodArgs = { - input: UpdateShippingMethodInput; + input: UpdateShippingMethodInput; }; - export type MutationUpdateTagArgs = { - input: UpdateTagInput; + input: UpdateTagInput; }; - export type MutationUpdateTaxCategoryArgs = { - input: UpdateTaxCategoryInput; + input: UpdateTaxCategoryInput; }; - export type MutationUpdateTaxRateArgs = { - input: UpdateTaxRateInput; + input: UpdateTaxRateInput; }; - export type MutationUpdateVendorArgs = { - input: UpdateVendorInput; + input: UpdateVendorInput; }; - export type MutationUpdateZoneArgs = { - input: UpdateZoneInput; + input: UpdateZoneInput; }; export type NativeAuthInput = { - password: Scalars['String']; - username: Scalars['String']; + password: Scalars['String']; + username: Scalars['String']; }; /** Returned when attempting an operation that relies on the NativeAuthStrategy, if that strategy is not configured. */ export type NativeAuthStrategyError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; }; export type NativeAuthenticationResult = CurrentUser | InvalidCredentialsError | NativeAuthStrategyError; /** Returned when attempting to set a negative OrderLine quantity. */ export type NegativeQuantityError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; }; /** @@ -3316,334 +3217,333 @@ 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['Int']; - shippingAddress?: Maybe; - shippingLines: Array; - shippingWithTax: Scalars['Int']; - state: Scalars['String']; - /** - * The subTotal is the total of all OrderLines in the Order. This figure also includes any Order-level - * discounts which have been prorated (proportionally distributed) amongst the OrderItems. - * To get a total of all OrderLines which does not account for prorated discounts, use the - * sum of `OrderLine.discountedLinePrice` values. - */ - subTotal: Scalars['Int']; - /** Same as subTotal, but inclusive of tax */ - subTotalWithTax: Scalars['Int']; - /** - * Surcharges are arbitrary modifications to the Order total which are neither - * ProductVariants nor discounts resulting from applied Promotions. For example, - * one-off discounts based on customer interaction, or surcharges based on payment - * methods. - */ - surcharges: Array; - /** A summary of the taxes being applied to this Order */ - taxSummary: Array; - /** Equal to subTotal plus shipping */ - total: Scalars['Int']; - totalQuantity: Scalars['Int']; - /** The final payable amount. Equal to subTotalWithTax plus shippingWithTax */ - totalWithTax: Scalars['Int']; - 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['Int']; + shippingAddress?: Maybe; + shippingLines: Array; + shippingWithTax: Scalars['Int']; + state: Scalars['String']; + /** + * The subTotal is the total of all OrderLines in the Order. This figure also includes any Order-level + * discounts which have been prorated (proportionally distributed) amongst the OrderItems. + * To get a total of all OrderLines which does not account for prorated discounts, use the + * sum of `OrderLine.discountedLinePrice` values. + */ + subTotal: Scalars['Int']; + /** Same as subTotal, but inclusive of tax */ + subTotalWithTax: Scalars['Int']; + /** + * Surcharges are arbitrary modifications to the Order total which are neither + * ProductVariants nor discounts resulting from applied Promotions. For example, + * one-off discounts based on customer interaction, or surcharges based on payment + * methods. + */ + surcharges: Array; + /** A summary of the taxes being applied to this Order */ + taxSummary: Array; + /** Equal to subTotal plus shipping */ + total: Scalars['Int']; + totalQuantity: Scalars['Int']; + /** The final payable amount. Equal to subTotalWithTax plus shippingWithTax */ + totalWithTax: Scalars['Int']; + 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['Int']; - /** The price of a single unit including discounts and tax */ - discountedUnitPriceWithTax: Scalars['Int']; - fulfillment?: Maybe; - id: Scalars['ID']; - /** - * The actual unit price, taking into account both item discounts _and_ prorated (proportionally-distributed) - * Order-level discounts. This value is the true economic value of the OrderItem, and is used in tax - * and refund calculations. - */ - proratedUnitPrice: Scalars['Int']; - /** The proratedUnitPrice including tax */ - proratedUnitPriceWithTax: Scalars['Int']; - refundId?: Maybe; - taxLines: Array; - taxRate: Scalars['Float']; - /** The price of a single unit, excluding tax and discounts */ - unitPrice: Scalars['Int']; - /** The price of a single unit, including tax but excluding discounts */ - unitPriceWithTax: Scalars['Int']; - unitTax: Scalars['Int']; - updatedAt: Scalars['DateTime']; + adjustments: Array; + cancelled: Scalars['Boolean']; + createdAt: Scalars['DateTime']; + /** + * The price of a single unit including discounts, excluding tax. + * + * If Order-level discounts have been applied, this will not be the + * actual taxable unit price (see `proratedUnitPrice`), but is generally the + * correct price to display to customers to avoid confusion + * about the internal handling of distributed Order-level discounts. + */ + discountedUnitPrice: Scalars['Int']; + /** The price of a single unit including discounts and tax */ + discountedUnitPriceWithTax: Scalars['Int']; + fulfillment?: Maybe; + id: Scalars['ID']; + /** + * The actual unit price, taking into account both item discounts _and_ prorated (proportionally-distributed) + * Order-level discounts. This value is the true economic value of the OrderItem, and is used in tax + * and refund calculations. + */ + proratedUnitPrice: Scalars['Int']; + /** The proratedUnitPrice including tax */ + proratedUnitPriceWithTax: Scalars['Int']; + refundId?: Maybe; + taxLines: Array; + taxRate: Scalars['Float']; + /** The price of a single unit, excluding tax and discounts */ + unitPrice: Scalars['Int']; + /** The price of a single unit, including tax but excluding discounts */ + unitPriceWithTax: Scalars['Int']; + unitTax: Scalars['Int']; + updatedAt: Scalars['DateTime']; }; /** Returned when the maximum order size limit has been reached. */ export type OrderLimitError = ErrorResult & { - errorCode: ErrorCode; - maxItems: Scalars['Int']; - message: Scalars['String']; + errorCode: ErrorCode; + maxItems: Scalars['Int']; + message: Scalars['String']; }; export type OrderLine = Node & { - createdAt: Scalars['DateTime']; - customFields?: Maybe; - /** The price of the line including discounts, excluding tax */ - discountedLinePrice: Scalars['Int']; - /** The price of the line including discounts and tax */ - discountedLinePriceWithTax: Scalars['Int']; - /** - * The price of a single unit including discounts, excluding tax. - * - * If Order-level discounts have been applied, this will not be the - * actual taxable unit price (see `proratedUnitPrice`), but is generally the - * correct price to display to customers to avoid confusion - * about the internal handling of distributed Order-level discounts. - */ - discountedUnitPrice: Scalars['Int']; - /** The price of a single unit including discounts and tax */ - discountedUnitPriceWithTax: Scalars['Int']; - discounts: Array; - featuredAsset?: Maybe; - fulfillments?: Maybe>; - id: Scalars['ID']; - items: Array; - /** The total price of the line excluding tax and discounts. */ - linePrice: Scalars['Int']; - /** The total price of the line including tax but excluding discounts. */ - linePriceWithTax: Scalars['Int']; - /** The total tax on this line */ - lineTax: Scalars['Int']; - order: Order; - productVariant: ProductVariant; - /** - * The actual line price, taking into account both item discounts _and_ prorated (proportionally-distributed) - * Order-level discounts. This value is the true economic value of the OrderLine, and is used in tax - * and refund calculations. - */ - proratedLinePrice: Scalars['Int']; - /** The proratedLinePrice including tax */ - proratedLinePriceWithTax: Scalars['Int']; - /** - * The actual unit price, taking into account both item discounts _and_ prorated (proportionally-distributed) - * Order-level discounts. This value is the true economic value of the OrderItem, and is used in tax - * and refund calculations. - */ - proratedUnitPrice: Scalars['Int']; - /** The proratedUnitPrice including tax */ - proratedUnitPriceWithTax: Scalars['Int']; - quantity: Scalars['Int']; - taxLines: Array; - taxRate: Scalars['Float']; - /** The price of a single unit, excluding tax and discounts */ - unitPrice: Scalars['Int']; - /** Non-zero if the unitPrice has changed since it was initially added to Order */ - unitPriceChangeSinceAdded: Scalars['Int']; - /** The price of a single unit, including tax but excluding discounts */ - unitPriceWithTax: Scalars['Int']; - /** Non-zero if the unitPriceWithTax has changed since it was initially added to Order */ - unitPriceWithTaxChangeSinceAdded: Scalars['Int']; - updatedAt: Scalars['DateTime']; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + /** The price of the line including discounts, excluding tax */ + discountedLinePrice: Scalars['Int']; + /** The price of the line including discounts and tax */ + discountedLinePriceWithTax: Scalars['Int']; + /** + * The price of a single unit including discounts, excluding tax. + * + * If Order-level discounts have been applied, this will not be the + * actual taxable unit price (see `proratedUnitPrice`), but is generally the + * correct price to display to customers to avoid confusion + * about the internal handling of distributed Order-level discounts. + */ + discountedUnitPrice: Scalars['Int']; + /** The price of a single unit including discounts and tax */ + discountedUnitPriceWithTax: Scalars['Int']; + discounts: Array; + featuredAsset?: Maybe; + fulfillments?: Maybe>; + id: Scalars['ID']; + items: Array; + /** The total price of the line excluding tax and discounts. */ + linePrice: Scalars['Int']; + /** The total price of the line including tax but excluding discounts. */ + linePriceWithTax: Scalars['Int']; + /** The total tax on this line */ + lineTax: Scalars['Int']; + order: Order; + productVariant: ProductVariant; + /** + * The actual line price, taking into account both item discounts _and_ prorated (proportionally-distributed) + * Order-level discounts. This value is the true economic value of the OrderLine, and is used in tax + * and refund calculations. + */ + proratedLinePrice: Scalars['Int']; + /** The proratedLinePrice including tax */ + proratedLinePriceWithTax: Scalars['Int']; + /** + * The actual unit price, taking into account both item discounts _and_ prorated (proportionally-distributed) + * Order-level discounts. This value is the true economic value of the OrderItem, and is used in tax + * and refund calculations. + */ + proratedUnitPrice: Scalars['Int']; + /** The proratedUnitPrice including tax */ + proratedUnitPriceWithTax: Scalars['Int']; + quantity: Scalars['Int']; + taxLines: Array; + taxRate: Scalars['Float']; + /** The price of a single unit, excluding tax and discounts */ + unitPrice: Scalars['Int']; + /** Non-zero if the unitPrice has changed since it was initially added to Order */ + unitPriceChangeSinceAdded: Scalars['Int']; + /** The price of a single unit, including tax but excluding discounts */ + unitPriceWithTax: Scalars['Int']; + /** Non-zero if the unitPriceWithTax has changed since it was initially added to Order */ + unitPriceWithTaxChangeSinceAdded: Scalars['Int']; + updatedAt: Scalars['DateTime']; }; export type OrderLineInput = { - orderLineId: Scalars['ID']; - quantity: Scalars['Int']; + orderLineId: Scalars['ID']; + quantity: Scalars['Int']; }; export type OrderList = PaginatedList & { - items: Array; - totalItems: Scalars['Int']; + items: Array; + totalItems: Scalars['Int']; }; export type OrderListOptions = { - /** Allows the results to be filtered */ - filter?: InputMaybe; - /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ - filterOperator?: InputMaybe; - /** Skips the first n results, for use in pagination */ - skip?: InputMaybe; - /** Specifies which properties to sort the results by */ - sort?: InputMaybe; - /** Takes n results, for use in pagination */ - take?: InputMaybe; + /** Allows the results to be filtered */ + filter?: InputMaybe; + /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ + filterOperator?: InputMaybe; + /** Skips the first n results, for use in pagination */ + skip?: InputMaybe; + /** Specifies which properties to sort the results by */ + sort?: InputMaybe; + /** Takes n results, for use in pagination */ + take?: InputMaybe; }; export type OrderModification = Node & { - createdAt: Scalars['DateTime']; - id: Scalars['ID']; - isSettled: Scalars['Boolean']; - note: Scalars['String']; - orderItems?: Maybe>; - payment?: Maybe; - priceChange: Scalars['Int']; - refund?: Maybe; - surcharges?: Maybe>; - updatedAt: Scalars['DateTime']; + createdAt: Scalars['DateTime']; + id: Scalars['ID']; + isSettled: Scalars['Boolean']; + note: Scalars['String']; + orderItems?: Maybe>; + payment?: Maybe; + priceChange: Scalars['Int']; + refund?: Maybe; + surcharges?: Maybe>; + updatedAt: Scalars['DateTime']; }; /** Returned when attempting to modify the contents of an Order that is not in the `AddingItems` state. */ export type OrderModificationError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; }; /** Returned when attempting to modify the contents of an Order that is not in the `Modifying` state. */ export type OrderModificationStateError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; }; export type OrderProcessState = { - name: Scalars['String']; - to: Array; + name: Scalars['String']; + to: Array; }; export type OrderSortParameter = { - 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']; }; /** @@ -3651,80 +3551,80 @@ export type OrderStateTransitionError = ErrorResult & { * by taxRate. */ export type OrderTaxSummary = { - /** A description of this tax */ - description: Scalars['String']; - /** The total net price or OrderItems to which this taxRate applies */ - taxBase: Scalars['Int']; - /** The taxRate as a percentage */ - taxRate: Scalars['Float']; - /** The total tax being applied to the Order at this taxRate */ - taxTotal: Scalars['Int']; + /** A description of this tax */ + description: Scalars['String']; + /** The total net price or OrderItems to which this taxRate applies */ + taxBase: Scalars['Int']; + /** The taxRate as a percentage */ + taxRate: Scalars['Float']; + /** The total tax being applied to the Order at this taxRate */ + taxTotal: Scalars['Int']; }; export 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['Int']; - createdAt: Scalars['DateTime']; - errorMessage?: Maybe; - id: Scalars['ID']; - metadata?: Maybe; - method: Scalars['String']; - nextStates: Array; - refunds: Array; - state: Scalars['String']; - transactionId?: Maybe; - updatedAt: Scalars['DateTime']; + amount: Scalars['Int']; + createdAt: Scalars['DateTime']; + errorMessage?: Maybe; + id: Scalars['ID']; + metadata?: Maybe; + method: Scalars['String']; + nextStates: Array; + refunds: Array; + state: Scalars['String']; + transactionId?: Maybe; + updatedAt: Scalars['DateTime']; }; export type PaymentMethod = Node & { - checker?: Maybe; - code: Scalars['String']; - createdAt: Scalars['DateTime']; - customFields?: Maybe; - description: Scalars['String']; - enabled: Scalars['Boolean']; - handler: ConfigurableOperation; - id: Scalars['ID']; - name: Scalars['String']; - updatedAt: Scalars['DateTime']; + checker?: Maybe; + code: Scalars['String']; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + description: Scalars['String']; + enabled: Scalars['Boolean']; + handler: ConfigurableOperation; + id: Scalars['ID']; + name: Scalars['String']; + updatedAt: Scalars['DateTime']; }; export type PaymentMethodFilterParameter = { - code?: InputMaybe; - createdAt?: InputMaybe; - description?: InputMaybe; - enabled?: InputMaybe; - id?: InputMaybe; - name?: InputMaybe; - updatedAt?: InputMaybe; + code?: InputMaybe; + createdAt?: InputMaybe; + description?: InputMaybe; + enabled?: InputMaybe; + id?: InputMaybe; + name?: InputMaybe; + updatedAt?: InputMaybe; }; export type PaymentMethodList = PaginatedList & { - items: Array; - totalItems: Scalars['Int']; + items: Array; + totalItems: Scalars['Int']; }; export type PaymentMethodListOptions = { - /** Allows the results to be filtered */ - filter?: InputMaybe; - /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ - filterOperator?: InputMaybe; - /** Skips the first n results, for use in pagination */ - skip?: InputMaybe; - /** Specifies which properties to sort the results by */ - sort?: InputMaybe; - /** Takes n results, for use in pagination */ - take?: InputMaybe; + /** Allows the results to be filtered */ + filter?: InputMaybe; + /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ + filterOperator?: InputMaybe; + /** Skips the first n results, for use in pagination */ + skip?: InputMaybe; + /** Specifies which properties to sort the results by */ + sort?: InputMaybe; + /** Takes n results, for use in pagination */ + take?: InputMaybe; }; /** @@ -3732,42 +3632,42 @@ export type PaymentMethodListOptions = { * though the price has increased as a result of the changes. */ export type PaymentMethodMissingError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; }; export type PaymentMethodQuote = { - code: Scalars['String']; - customFields?: Maybe; - description: Scalars['String']; - eligibilityMessage?: Maybe; - id: Scalars['ID']; - isEligible: Scalars['Boolean']; - name: Scalars['String']; + code: Scalars['String']; + customFields?: Maybe; + description: Scalars['String']; + eligibilityMessage?: Maybe; + id: Scalars['ID']; + isEligible: Scalars['Boolean']; + name: Scalars['String']; }; export type PaymentMethodSortParameter = { - code?: InputMaybe; - createdAt?: InputMaybe; - description?: InputMaybe; - id?: InputMaybe; - name?: InputMaybe; - updatedAt?: InputMaybe; + code?: InputMaybe; + createdAt?: InputMaybe; + description?: InputMaybe; + id?: InputMaybe; + name?: InputMaybe; + updatedAt?: InputMaybe; }; /** Returned if an attempting to refund a Payment against OrderLines from a different Order */ export type PaymentOrderMismatchError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; }; /** Returned when there is an error in transitioning the Payment state */ export type PaymentStateTransitionError = ErrorResult & { - errorCode: ErrorCode; - fromState: Scalars['String']; - message: Scalars['String']; - toState: Scalars['String']; - transitionError: Scalars['String']; + errorCode: ErrorCode; + fromState: Scalars['String']; + message: Scalars['String']; + toState: Scalars['String']; + transitionError: Scalars['String']; }; /** @@ -3803,888 +3703,844 @@ 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['Int']; - min: Scalars['Int']; + max: Scalars['Int']; + min: Scalars['Int']; }; export type Product = Node & { - assets: Array; - channels: Array; - collections: Array; - createdAt: Scalars['DateTime']; - customFields?: Maybe; - description: Scalars['String']; - enabled: Scalars['Boolean']; - facetValues: Array; - featuredAsset?: Maybe; - id: Scalars['ID']; - languageCode: LanguageCode; - name: Scalars['String']; - optionGroups: Array; - slug: Scalars['String']; - translations: Array; - updatedAt: Scalars['DateTime']; - /** Returns a paginated, sortable, filterable list of ProductVariants */ - variantList: ProductVariantList; - /** Returns all ProductVariants */ - variants: Array; + assets: Array; + channels: Array; + collections: Array; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + description: Scalars['String']; + enabled: Scalars['Boolean']; + facetValues: Array; + featuredAsset?: Maybe; + id: Scalars['ID']; + languageCode: LanguageCode; + name: Scalars['String']; + optionGroups: Array; + slug: Scalars['String']; + translations: Array; + updatedAt: Scalars['DateTime']; + /** Returns a paginated, sortable, filterable list of ProductVariants */ + variantList: ProductVariantList; + /** Returns all ProductVariants */ + variants: Array; }; - export type ProductVariantListArgs = { - options?: InputMaybe; + options?: InputMaybe; }; export type ProductFilterParameter = { - createdAt?: InputMaybe; - description?: InputMaybe; - enabled?: InputMaybe; - id?: InputMaybe; - languageCode?: InputMaybe; - name?: InputMaybe; - slug?: InputMaybe; - updatedAt?: InputMaybe; + createdAt?: InputMaybe; + description?: InputMaybe; + enabled?: InputMaybe; + id?: InputMaybe; + languageCode?: InputMaybe; + name?: InputMaybe; + slug?: InputMaybe; + updatedAt?: InputMaybe; }; export type ProductList = PaginatedList & { - items: Array; - totalItems: Scalars['Int']; + items: Array; + totalItems: Scalars['Int']; }; export type ProductListOptions = { - /** Allows the results to be filtered */ - filter?: InputMaybe; - /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ - filterOperator?: InputMaybe; - /** Skips the first n results, for use in pagination */ - skip?: InputMaybe; - /** Specifies which properties to sort the results by */ - sort?: InputMaybe; - /** Takes n results, for use in pagination */ - take?: InputMaybe; + /** Allows the results to be filtered */ + filter?: InputMaybe; + /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ + filterOperator?: InputMaybe; + /** Skips the first n results, for use in pagination */ + skip?: InputMaybe; + /** Specifies which properties to sort the results by */ + sort?: InputMaybe; + /** Takes n results, for use in pagination */ + take?: InputMaybe; }; export type ProductOption = Node & { - code: Scalars['String']; - createdAt: Scalars['DateTime']; - customFields?: Maybe; - group: ProductOptionGroup; - groupId: Scalars['ID']; - id: Scalars['ID']; - languageCode: LanguageCode; - name: Scalars['String']; - translations: Array; - updatedAt: Scalars['DateTime']; + code: Scalars['String']; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + group: ProductOptionGroup; + groupId: Scalars['ID']; + id: Scalars['ID']; + languageCode: LanguageCode; + name: Scalars['String']; + translations: Array; + updatedAt: Scalars['DateTime']; }; export type ProductOptionGroup = Node & { - code: Scalars['String']; - createdAt: Scalars['DateTime']; - customFields?: Maybe; - id: Scalars['ID']; - languageCode: LanguageCode; - name: Scalars['String']; - options: Array; - translations: Array; - updatedAt: Scalars['DateTime']; + code: Scalars['String']; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + id: Scalars['ID']; + languageCode: LanguageCode; + name: Scalars['String']; + options: Array; + translations: Array; + updatedAt: Scalars['DateTime']; }; export type ProductOptionGroupTranslation = { - createdAt: Scalars['DateTime']; - id: Scalars['ID']; - languageCode: LanguageCode; - name: Scalars['String']; - updatedAt: Scalars['DateTime']; + createdAt: Scalars['DateTime']; + id: Scalars['ID']; + languageCode: LanguageCode; + name: Scalars['String']; + updatedAt: Scalars['DateTime']; }; export type ProductOptionGroupTranslationInput = { - customFields?: InputMaybe; - id?: InputMaybe; - languageCode: LanguageCode; - name?: InputMaybe; + customFields?: InputMaybe; + id?: InputMaybe; + languageCode: LanguageCode; + name?: InputMaybe; }; export type ProductOptionInUseError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; - optionGroupCode: Scalars['String']; - productVariantCount: Scalars['Int']; + errorCode: ErrorCode; + message: Scalars['String']; + optionGroupCode: Scalars['String']; + productVariantCount: Scalars['Int']; }; export type ProductOptionTranslation = { - createdAt: Scalars['DateTime']; - id: Scalars['ID']; - languageCode: LanguageCode; - name: Scalars['String']; - updatedAt: Scalars['DateTime']; + createdAt: Scalars['DateTime']; + id: Scalars['ID']; + languageCode: LanguageCode; + name: Scalars['String']; + updatedAt: Scalars['DateTime']; }; export type ProductOptionTranslationInput = { - customFields?: InputMaybe; - id?: InputMaybe; - languageCode: LanguageCode; - name?: InputMaybe; + customFields?: InputMaybe; + id?: InputMaybe; + languageCode: LanguageCode; + name?: InputMaybe; }; export type ProductSortParameter = { - createdAt?: InputMaybe; - description?: InputMaybe; - id?: InputMaybe; - name?: InputMaybe; - slug?: InputMaybe; - updatedAt?: InputMaybe; + createdAt?: InputMaybe; + description?: InputMaybe; + id?: InputMaybe; + name?: InputMaybe; + slug?: InputMaybe; + updatedAt?: InputMaybe; }; export type ProductTranslation = { - createdAt: Scalars['DateTime']; - description: Scalars['String']; - id: Scalars['ID']; - languageCode: LanguageCode; - name: Scalars['String']; - slug: Scalars['String']; - updatedAt: Scalars['DateTime']; + createdAt: Scalars['DateTime']; + description: Scalars['String']; + id: Scalars['ID']; + languageCode: LanguageCode; + name: Scalars['String']; + slug: Scalars['String']; + updatedAt: Scalars['DateTime']; }; export type ProductTranslationInput = { - customFields?: InputMaybe; - description?: InputMaybe; - id?: InputMaybe; - languageCode: LanguageCode; - name?: InputMaybe; - slug?: InputMaybe; + customFields?: InputMaybe; + description?: InputMaybe; + id?: InputMaybe; + languageCode: LanguageCode; + name?: InputMaybe; + slug?: InputMaybe; }; export type ProductVariant = Node & { - assets: Array; - channels: Array; - createdAt: Scalars['DateTime']; - currencyCode: CurrencyCode; - customFields?: Maybe; - enabled: Scalars['Boolean']; - facetValues: Array; - featuredAsset?: Maybe; - id: Scalars['ID']; - languageCode: LanguageCode; - name: Scalars['String']; - options: Array; - outOfStockThreshold: Scalars['Int']; - price: Scalars['Int']; - priceWithTax: Scalars['Int']; - product: Product; - productId: Scalars['ID']; - sku: Scalars['String']; - stockAllocated: Scalars['Int']; - stockLevel: Scalars['String']; - stockMovements: StockMovementList; - stockOnHand: Scalars['Int']; - taxCategory: TaxCategory; - taxRateApplied: TaxRate; - trackInventory: GlobalFlag; - translations: Array; - updatedAt: Scalars['DateTime']; - useGlobalOutOfStockThreshold: Scalars['Boolean']; + assets: Array; + channels: Array; + createdAt: Scalars['DateTime']; + currencyCode: CurrencyCode; + customFields?: Maybe; + enabled: Scalars['Boolean']; + facetValues: Array; + featuredAsset?: Maybe; + id: Scalars['ID']; + languageCode: LanguageCode; + name: Scalars['String']; + options: Array; + outOfStockThreshold: Scalars['Int']; + price: Scalars['Int']; + priceWithTax: Scalars['Int']; + product: Product; + productId: Scalars['ID']; + sku: Scalars['String']; + stockAllocated: Scalars['Int']; + stockLevel: Scalars['String']; + stockMovements: StockMovementList; + stockOnHand: Scalars['Int']; + taxCategory: TaxCategory; + taxRateApplied: TaxRate; + trackInventory: GlobalFlag; + translations: Array; + updatedAt: Scalars['DateTime']; + useGlobalOutOfStockThreshold: Scalars['Boolean']; }; - export type ProductVariantStockMovementsArgs = { - options?: InputMaybe; + options?: InputMaybe; }; export type ProductVariantFilterParameter = { - createdAt?: InputMaybe; - currencyCode?: InputMaybe; - enabled?: InputMaybe; - id?: InputMaybe; - languageCode?: InputMaybe; - name?: InputMaybe; - outOfStockThreshold?: InputMaybe; - price?: InputMaybe; - priceWithTax?: InputMaybe; - productId?: InputMaybe; - sku?: InputMaybe; - stockAllocated?: InputMaybe; - stockLevel?: InputMaybe; - stockOnHand?: InputMaybe; - trackInventory?: InputMaybe; - updatedAt?: InputMaybe; - useGlobalOutOfStockThreshold?: InputMaybe; + createdAt?: InputMaybe; + currencyCode?: InputMaybe; + enabled?: InputMaybe; + id?: InputMaybe; + languageCode?: InputMaybe; + name?: InputMaybe; + outOfStockThreshold?: InputMaybe; + price?: InputMaybe; + priceWithTax?: InputMaybe; + productId?: InputMaybe; + sku?: InputMaybe; + stockAllocated?: InputMaybe; + stockLevel?: InputMaybe; + stockOnHand?: InputMaybe; + trackInventory?: InputMaybe; + updatedAt?: InputMaybe; + useGlobalOutOfStockThreshold?: InputMaybe; }; export type ProductVariantList = PaginatedList & { - items: Array; - totalItems: Scalars['Int']; + items: Array; + totalItems: Scalars['Int']; }; export type ProductVariantListOptions = { - /** Allows the results to be filtered */ - filter?: InputMaybe; - /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ - filterOperator?: InputMaybe; - /** Skips the first n results, for use in pagination */ - skip?: InputMaybe; - /** Specifies which properties to sort the results by */ - sort?: InputMaybe; - /** Takes n results, for use in pagination */ - take?: InputMaybe; + /** Allows the results to be filtered */ + filter?: InputMaybe; + /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ + filterOperator?: InputMaybe; + /** Skips the first n results, for use in pagination */ + skip?: InputMaybe; + /** Specifies which properties to sort the results by */ + sort?: InputMaybe; + /** Takes n results, for use in pagination */ + take?: InputMaybe; }; export type ProductVariantSortParameter = { - createdAt?: InputMaybe; - id?: InputMaybe; - name?: InputMaybe; - outOfStockThreshold?: InputMaybe; - price?: InputMaybe; - priceWithTax?: InputMaybe; - productId?: InputMaybe; - sku?: InputMaybe; - stockAllocated?: InputMaybe; - stockLevel?: InputMaybe; - stockOnHand?: InputMaybe; - updatedAt?: InputMaybe; + createdAt?: InputMaybe; + id?: InputMaybe; + name?: InputMaybe; + outOfStockThreshold?: InputMaybe; + price?: InputMaybe; + priceWithTax?: InputMaybe; + productId?: InputMaybe; + sku?: InputMaybe; + stockAllocated?: InputMaybe; + stockLevel?: InputMaybe; + stockOnHand?: InputMaybe; + updatedAt?: InputMaybe; }; export type ProductVariantTranslation = { - createdAt: Scalars['DateTime']; - id: Scalars['ID']; - languageCode: LanguageCode; - name: Scalars['String']; - updatedAt: Scalars['DateTime']; + createdAt: Scalars['DateTime']; + id: Scalars['ID']; + languageCode: LanguageCode; + name: Scalars['String']; + updatedAt: Scalars['DateTime']; }; export type ProductVariantTranslationInput = { - customFields?: InputMaybe; - id?: InputMaybe; - languageCode: LanguageCode; - name?: InputMaybe; + customFields?: InputMaybe; + id?: InputMaybe; + languageCode: LanguageCode; + name?: InputMaybe; }; export type Promotion = Node & { - actions: Array; - conditions: Array; - couponCode?: Maybe; - createdAt: Scalars['DateTime']; - customFields?: Maybe; - enabled: Scalars['Boolean']; - endsAt?: Maybe; - id: Scalars['ID']; - name: Scalars['String']; - perCustomerUsageLimit?: Maybe; - startsAt?: Maybe; - updatedAt: Scalars['DateTime']; + actions: Array; + conditions: Array; + couponCode?: Maybe; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + enabled: Scalars['Boolean']; + endsAt?: Maybe; + id: Scalars['ID']; + name: Scalars['String']; + perCustomerUsageLimit?: Maybe; + startsAt?: Maybe; + updatedAt: Scalars['DateTime']; }; export type PromotionFilterParameter = { - couponCode?: InputMaybe; - createdAt?: InputMaybe; - enabled?: InputMaybe; - endsAt?: InputMaybe; - id?: InputMaybe; - name?: InputMaybe; - perCustomerUsageLimit?: InputMaybe; - startsAt?: InputMaybe; - updatedAt?: InputMaybe; + couponCode?: InputMaybe; + createdAt?: InputMaybe; + enabled?: InputMaybe; + endsAt?: InputMaybe; + id?: InputMaybe; + name?: InputMaybe; + perCustomerUsageLimit?: InputMaybe; + startsAt?: InputMaybe; + updatedAt?: InputMaybe; }; export type PromotionList = PaginatedList & { - items: Array; - totalItems: Scalars['Int']; + items: Array; + totalItems: Scalars['Int']; }; export type PromotionListOptions = { - /** Allows the results to be filtered */ - filter?: InputMaybe; - /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ - filterOperator?: InputMaybe; - /** Skips the first n results, for use in pagination */ - skip?: InputMaybe; - /** Specifies which properties to sort the results by */ - sort?: InputMaybe; - /** Takes n results, for use in pagination */ - take?: InputMaybe; + /** Allows the results to be filtered */ + filter?: InputMaybe; + /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ + filterOperator?: InputMaybe; + /** Skips the first n results, for use in pagination */ + skip?: InputMaybe; + /** Specifies which properties to sort the results by */ + sort?: InputMaybe; + /** Takes n results, for use in pagination */ + take?: InputMaybe; }; export type PromotionSortParameter = { - couponCode?: InputMaybe; - createdAt?: InputMaybe; - endsAt?: InputMaybe; - id?: InputMaybe; - name?: InputMaybe; - perCustomerUsageLimit?: InputMaybe; - startsAt?: InputMaybe; - updatedAt?: InputMaybe; + couponCode?: InputMaybe; + createdAt?: InputMaybe; + endsAt?: InputMaybe; + id?: InputMaybe; + name?: InputMaybe; + perCustomerUsageLimit?: InputMaybe; + startsAt?: InputMaybe; + updatedAt?: InputMaybe; }; /** Returned if the specified quantity of an OrderLine is greater than the number of items in that line */ export type QuantityTooGreatError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; }; export type Query = { - activeAdministrator?: Maybe; - activeChannel: Channel; - administrator?: Maybe; - administrators: AdministratorList; - /** Get a single Asset by id */ - asset?: Maybe; - /** Get a list of Assets */ - assets: AssetList; - channel?: Maybe; - channels: Array; - /** Get a Collection either by id or slug. If neither id nor slug is specified, an error will result. */ - collection?: Maybe; - collectionFilters: Array; - collections: CollectionList; - countries: CountryList; - country?: Maybe; - customer?: Maybe; - customerGroup?: Maybe; - customerGroups: CustomerGroupList; - customers: CustomerList; - /** Returns a list of eligible shipping methods for the draft Order */ - eligibleShippingMethodsForDraftOrder: Array; - facet?: Maybe; - facetValues: FacetValueList; - facets: FacetList; - fulfillmentHandlers: Array; - globalSettings: GlobalSettings; - job?: Maybe; - jobBufferSize: Array; - jobQueues: Array; - jobs: JobList; - jobsById: Array; - me?: Maybe; - order?: Maybe; - orders: OrderList; - paymentMethod?: Maybe; - paymentMethodEligibilityCheckers: Array; - paymentMethodHandlers: Array; - paymentMethods: PaymentMethodList; - pendingSearchIndexUpdates: Scalars['Int']; - /** Used for real-time previews of the contents of a Collection */ - previewCollectionVariants: ProductVariantList; - /** Get a Product either by id or slug. If neither id nor slug is specified, an error will result. */ - product?: Maybe; - productOptionGroup?: Maybe; - productOptionGroups: Array; - /** Get a ProductVariant by id */ - productVariant?: Maybe; - /** List ProductVariants either all or for the specific product. */ - productVariants: ProductVariantList; - /** List Products */ - products: ProductList; - promotion?: Maybe; - promotionActions: Array; - promotionConditions: Array; - promotions: PromotionList; - role?: Maybe; - roles: RoleList; - search: SearchResponse; - seller?: Maybe; - sellers: SellerList; - shippingCalculators: Array; - shippingEligibilityCheckers: Array; - shippingMethod?: Maybe; - shippingMethods: ShippingMethodList; - tag: Tag; - tags: TagList; - taxCategories: Array; - taxCategory?: Maybe; - taxRate?: Maybe; - taxRates: TaxRateList; - testEligibleShippingMethods: Array; - testShippingMethod: TestShippingMethodResult; - vendor?: Maybe; - vendors: VendorList; - zone?: Maybe; - zones: Array; + activeAdministrator?: Maybe; + activeChannel: Channel; + administrator?: Maybe; + administrators: AdministratorList; + /** Get a single Asset by id */ + asset?: Maybe; + /** Get a list of Assets */ + assets: AssetList; + channel?: Maybe; + channels: Array; + /** Get a Collection either by id or slug. If neither id nor slug is specified, an error will result. */ + collection?: Maybe; + collectionFilters: Array; + collections: CollectionList; + countries: CountryList; + country?: Maybe; + customer?: Maybe; + customerGroup?: Maybe; + customerGroups: CustomerGroupList; + customers: CustomerList; + /** Returns a list of eligible shipping methods for the draft Order */ + eligibleShippingMethodsForDraftOrder: Array; + facet?: Maybe; + facetValues: FacetValueList; + facets: FacetList; + fulfillmentHandlers: Array; + globalSettings: GlobalSettings; + job?: Maybe; + jobBufferSize: Array; + jobQueues: Array; + jobs: JobList; + jobsById: Array; + me?: Maybe; + order?: Maybe; + orders: OrderList; + paymentMethod?: Maybe; + paymentMethodEligibilityCheckers: Array; + paymentMethodHandlers: Array; + paymentMethods: PaymentMethodList; + pendingSearchIndexUpdates: Scalars['Int']; + /** Used for real-time previews of the contents of a Collection */ + previewCollectionVariants: ProductVariantList; + /** Get a Product either by id or slug. If neither id nor slug is specified, an error will result. */ + product?: Maybe; + productOptionGroup?: Maybe; + productOptionGroups: Array; + /** Get a ProductVariant by id */ + productVariant?: Maybe; + /** List ProductVariants either all or for the specific product. */ + productVariants: ProductVariantList; + /** List Products */ + products: ProductList; + promotion?: Maybe; + promotionActions: Array; + promotionConditions: Array; + promotions: PromotionList; + role?: Maybe; + roles: RoleList; + search: SearchResponse; + seller?: Maybe; + sellers: SellerList; + shippingCalculators: Array; + shippingEligibilityCheckers: Array; + shippingMethod?: Maybe; + shippingMethods: ShippingMethodList; + tag: Tag; + tags: TagList; + taxCategories: Array; + taxCategory?: Maybe; + taxRate?: Maybe; + taxRates: TaxRateList; + testEligibleShippingMethods: Array; + testShippingMethod: TestShippingMethodResult; + vendor?: Maybe; + vendors: VendorList; + zone?: Maybe; + zones: Array; }; - export type QueryAdministratorArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; - export type QueryAdministratorsArgs = { - options?: InputMaybe; + options?: InputMaybe; }; - export type QueryAssetArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; - export type QueryAssetsArgs = { - options?: InputMaybe; + options?: InputMaybe; }; - export type QueryChannelArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; - export type QueryCollectionArgs = { - id?: InputMaybe; - slug?: InputMaybe; + id?: InputMaybe; + slug?: InputMaybe; }; - export type QueryCollectionsArgs = { - options?: InputMaybe; + options?: InputMaybe; }; - export type QueryCountriesArgs = { - options?: InputMaybe; + options?: InputMaybe; }; - export type QueryCountryArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; - export type QueryCustomerArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; - export type QueryCustomerGroupArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; - export type QueryCustomerGroupsArgs = { - options?: InputMaybe; + options?: InputMaybe; }; - export type QueryCustomersArgs = { - options?: InputMaybe; + options?: InputMaybe; }; - export type QueryEligibleShippingMethodsForDraftOrderArgs = { - orderId: Scalars['ID']; + orderId: Scalars['ID']; }; - export type QueryFacetArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; - export type QueryFacetValuesArgs = { - options?: InputMaybe; + options?: InputMaybe; }; - export type QueryFacetsArgs = { - options?: InputMaybe; + options?: InputMaybe; }; - export type QueryJobArgs = { - jobId: Scalars['ID']; + jobId: Scalars['ID']; }; - export type QueryJobBufferSizeArgs = { - bufferIds?: InputMaybe>; + bufferIds?: InputMaybe>; }; - export type QueryJobsArgs = { - options?: InputMaybe; + options?: InputMaybe; }; - export type QueryJobsByIdArgs = { - jobIds: Array; + jobIds: Array; }; - export type QueryOrderArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; - export type QueryOrdersArgs = { - options?: InputMaybe; + options?: InputMaybe; }; - export type QueryPaymentMethodArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; - export type QueryPaymentMethodsArgs = { - options?: InputMaybe; + options?: InputMaybe; }; - export type QueryPreviewCollectionVariantsArgs = { - input: PreviewCollectionVariantsInput; - options?: InputMaybe; + input: PreviewCollectionVariantsInput; + options?: InputMaybe; }; - export type QueryProductArgs = { - id?: InputMaybe; - slug?: InputMaybe; + id?: InputMaybe; + slug?: InputMaybe; }; - export type QueryProductOptionGroupArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; - export type QueryProductOptionGroupsArgs = { - filterTerm?: InputMaybe; + filterTerm?: InputMaybe; }; - export type QueryProductVariantArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; - export type QueryProductVariantsArgs = { - options?: InputMaybe; - productId?: InputMaybe; + options?: InputMaybe; + productId?: InputMaybe; }; - export type QueryProductsArgs = { - options?: InputMaybe; + options?: InputMaybe; }; - export type QueryPromotionArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; - export type QueryPromotionsArgs = { - options?: InputMaybe; + options?: InputMaybe; }; - export type QueryRoleArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; - export type QueryRolesArgs = { - options?: InputMaybe; + options?: InputMaybe; }; - export type QuerySearchArgs = { - input: SearchInput; + input: SearchInput; }; - export type 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 QueryTagArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; - export type QueryTagsArgs = { - options?: InputMaybe; + options?: InputMaybe; }; - export type QueryTaxCategoryArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; - export type QueryTaxRateArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; - export type QueryTaxRatesArgs = { - options?: InputMaybe; + options?: InputMaybe; }; - export type QueryTestEligibleShippingMethodsArgs = { - input: TestEligibleShippingMethodsInput; + input: TestEligibleShippingMethodsInput; }; - export type QueryTestShippingMethodArgs = { - input: TestShippingMethodInput; + input: TestShippingMethodInput; }; - export type QueryVendorArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; - export type QueryVendorsArgs = { - options?: InputMaybe; + options?: InputMaybe; }; - export type QueryZoneArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; export type Refund = Node & { - adjustment: Scalars['Int']; - createdAt: Scalars['DateTime']; - id: Scalars['ID']; - items: Scalars['Int']; - metadata?: Maybe; - method?: Maybe; - orderItems: Array; - paymentId: Scalars['ID']; - reason?: Maybe; - shipping: Scalars['Int']; - state: Scalars['String']; - total: Scalars['Int']; - transactionId?: Maybe; - updatedAt: Scalars['DateTime']; + adjustment: Scalars['Int']; + createdAt: Scalars['DateTime']; + id: Scalars['ID']; + items: Scalars['Int']; + metadata?: Maybe; + method?: Maybe; + orderItems: Array; + paymentId: Scalars['ID']; + reason?: Maybe; + shipping: Scalars['Int']; + state: Scalars['String']; + total: Scalars['Int']; + transactionId?: Maybe; + updatedAt: Scalars['DateTime']; }; export type RefundOrderInput = { - adjustment: Scalars['Int']; - lines: Array; - paymentId: Scalars['ID']; - reason?: InputMaybe; - shipping: Scalars['Int']; -}; - -export type RefundOrderResult = AlreadyRefundedError | MultipleOrderError | NothingToRefundError | OrderStateTransitionError | PaymentOrderMismatchError | QuantityTooGreatError | Refund | RefundOrderStateError | RefundStateTransitionError; + adjustment: Scalars['Int']; + lines: Array; + paymentId: Scalars['ID']; + reason?: InputMaybe; + shipping: Scalars['Int']; +}; + +export type RefundOrderResult = + | AlreadyRefundedError + | MultipleOrderError + | NothingToRefundError + | OrderStateTransitionError + | PaymentOrderMismatchError + | QuantityTooGreatError + | Refund + | RefundOrderStateError + | RefundStateTransitionError; /** Returned if an attempting to refund an Order which is not in the expected state */ export type RefundOrderStateError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; - orderState: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; + orderState: Scalars['String']; }; /** @@ -4692,54 +4548,55 @@ export type RefundOrderStateError = ErrorResult & { * though the price has decreased as a result of the changes. */ export type RefundPaymentIdMissingError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; }; /** Returned when there is an error in transitioning the Refund state */ export type RefundStateTransitionError = ErrorResult & { - errorCode: ErrorCode; - fromState: Scalars['String']; - message: Scalars['String']; - toState: Scalars['String']; - transitionError: Scalars['String']; + errorCode: ErrorCode; + fromState: Scalars['String']; + message: Scalars['String']; + toState: Scalars['String']; + transitionError: Scalars['String']; }; export type RelationCustomFieldConfig = CustomField & { - description?: Maybe>; - entity: Scalars['String']; - internal?: Maybe; - label?: Maybe>; - list: Scalars['Boolean']; - name: Scalars['String']; - nullable?: Maybe; - readonly?: Maybe; - scalarFields: Array; - type: Scalars['String']; - ui?: Maybe; -}; - -export type Release = Node & StockMovement & { - createdAt: Scalars['DateTime']; - id: Scalars['ID']; - orderItem: OrderItem; - productVariant: ProductVariant; - quantity: Scalars['Int']; - type: StockMovementType; - updatedAt: Scalars['DateTime']; -}; + description?: Maybe>; + entity: Scalars['String']; + internal?: Maybe; + label?: Maybe>; + list: Scalars['Boolean']; + name: Scalars['String']; + nullable?: Maybe; + readonly?: Maybe; + scalarFields: Array; + type: Scalars['String']; + ui?: Maybe; +}; + +export type Release = Node & + StockMovement & { + createdAt: Scalars['DateTime']; + id: Scalars['ID']; + orderItem: OrderItem; + productVariant: ProductVariant; + quantity: Scalars['Int']; + type: StockMovementType; + updatedAt: Scalars['DateTime']; + }; export type RemoveCollectionsFromChannelInput = { - channelId: Scalars['ID']; - collectionIds: Array; + channelId: Scalars['ID']; + collectionIds: Array; }; export type RemoveFacetFromChannelResult = Facet | FacetInUseError; export type RemoveFacetsFromChannelInput = { - channelId: Scalars['ID']; - facetIds: Array; - force?: InputMaybe; + channelId: Scalars['ID']; + facetIds: Array; + force?: InputMaybe; }; export type RemoveOptionGroupFromProductResult = Product | ProductOptionInUseError; @@ -4747,564 +4604,575 @@ export type RemoveOptionGroupFromProductResult = Product | ProductOptionInUseErr export type RemoveOrderItemsResult = Order | OrderModificationError; export type RemoveProductVariantsFromChannelInput = { - channelId: Scalars['ID']; - productVariantIds: Array; + channelId: Scalars['ID']; + productVariantIds: Array; }; export type RemoveProductsFromChannelInput = { - channelId: Scalars['ID']; - productIds: Array; + channelId: Scalars['ID']; + productIds: Array; }; export type RemovePromotionsFromChannelInput = { - channelId: Scalars['ID']; - promotionIds: Array; + channelId: Scalars['ID']; + promotionIds: Array; }; -export type Return = Node & StockMovement & { - createdAt: Scalars['DateTime']; - id: Scalars['ID']; - orderItem: OrderItem; - productVariant: ProductVariant; - quantity: Scalars['Int']; - type: StockMovementType; - updatedAt: Scalars['DateTime']; -}; +export type Return = Node & + StockMovement & { + createdAt: Scalars['DateTime']; + id: Scalars['ID']; + orderItem: OrderItem; + productVariant: ProductVariant; + quantity: Scalars['Int']; + type: StockMovementType; + updatedAt: Scalars['DateTime']; + }; export type Role = Node & { - channels: Array; - code: Scalars['String']; - createdAt: Scalars['DateTime']; - description: Scalars['String']; - id: Scalars['ID']; - permissions: Array; - updatedAt: Scalars['DateTime']; + channels: Array; + code: Scalars['String']; + createdAt: Scalars['DateTime']; + description: Scalars['String']; + id: Scalars['ID']; + permissions: Array; + updatedAt: Scalars['DateTime']; }; export type RoleFilterParameter = { - code?: InputMaybe; - createdAt?: InputMaybe; - description?: InputMaybe; - id?: InputMaybe; - updatedAt?: InputMaybe; + code?: InputMaybe; + createdAt?: InputMaybe; + description?: InputMaybe; + id?: InputMaybe; + updatedAt?: InputMaybe; }; export type RoleList = PaginatedList & { - items: Array; - totalItems: Scalars['Int']; + items: Array; + totalItems: Scalars['Int']; }; export type RoleListOptions = { - /** Allows the results to be filtered */ - filter?: InputMaybe; - /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ - filterOperator?: InputMaybe; - /** Skips the first n results, for use in pagination */ - skip?: InputMaybe; - /** Specifies which properties to sort the results by */ - sort?: InputMaybe; - /** Takes n results, for use in pagination */ - take?: InputMaybe; + /** Allows the results to be filtered */ + filter?: InputMaybe; + /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ + filterOperator?: InputMaybe; + /** Skips the first n results, for use in pagination */ + skip?: InputMaybe; + /** Specifies which properties to sort the results by */ + sort?: InputMaybe; + /** Takes n results, for use in pagination */ + take?: InputMaybe; }; export type RoleSortParameter = { - code?: InputMaybe; - createdAt?: InputMaybe; - description?: InputMaybe; - id?: InputMaybe; - updatedAt?: InputMaybe; -}; - -export type Sale = Node & StockMovement & { - createdAt: Scalars['DateTime']; - id: Scalars['ID']; - orderItem: OrderItem; - productVariant: ProductVariant; - quantity: Scalars['Int']; - type: StockMovementType; - updatedAt: Scalars['DateTime']; -}; + code?: InputMaybe; + createdAt?: InputMaybe; + description?: InputMaybe; + id?: InputMaybe; + updatedAt?: InputMaybe; +}; + +export type Sale = Node & + StockMovement & { + createdAt: Scalars['DateTime']; + id: Scalars['ID']; + orderItem: OrderItem; + productVariant: ProductVariant; + quantity: Scalars['Int']; + type: StockMovementType; + updatedAt: Scalars['DateTime']; + }; export type SearchInput = { - collectionId?: InputMaybe; - collectionSlug?: InputMaybe; - facetValueFilters?: InputMaybe>; - facetValueIds?: InputMaybe>; - facetValueOperator?: InputMaybe; - groupByProduct?: InputMaybe; - skip?: InputMaybe; - sort?: InputMaybe; - take?: InputMaybe; - term?: InputMaybe; + collectionId?: InputMaybe; + collectionSlug?: InputMaybe; + facetValueFilters?: InputMaybe>; + facetValueIds?: InputMaybe>; + facetValueOperator?: InputMaybe; + groupByProduct?: InputMaybe; + skip?: InputMaybe; + sort?: InputMaybe; + take?: InputMaybe; + term?: InputMaybe; }; export type SearchReindexResponse = { - success: Scalars['Boolean']; + success: Scalars['Boolean']; }; export type SearchResponse = { - collections: Array; - facetValues: Array; - items: Array; - totalItems: Scalars['Int']; + collections: Array; + facetValues: Array; + items: Array; + totalItems: Scalars['Int']; }; export type SearchResult = { - /** An array of ids of the Channels in which this result appears */ - channelIds: Array; - /** An array of ids of the Collections in which this result appears */ - collectionIds: Array; - currencyCode: CurrencyCode; - description: Scalars['String']; - enabled: Scalars['Boolean']; - facetIds: Array; - facetValueIds: Array; - price: SearchResultPrice; - priceWithTax: SearchResultPrice; - productAsset?: Maybe; - productId: Scalars['ID']; - productName: Scalars['String']; - productVariantAsset?: Maybe; - productVariantId: Scalars['ID']; - productVariantName: Scalars['String']; - /** A relevance score for the result. Differs between database implementations */ - score: Scalars['Float']; - sku: Scalars['String']; - slug: Scalars['String']; + /** An array of ids of the Channels in which this result appears */ + channelIds: Array; + /** An array of ids of the Collections in which this result appears */ + collectionIds: Array; + currencyCode: CurrencyCode; + description: Scalars['String']; + enabled: Scalars['Boolean']; + facetIds: Array; + facetValueIds: Array; + price: SearchResultPrice; + priceWithTax: SearchResultPrice; + productAsset?: Maybe; + productId: Scalars['ID']; + productName: Scalars['String']; + productVariantAsset?: Maybe; + productVariantId: Scalars['ID']; + productVariantName: Scalars['String']; + /** A relevance score for the result. Differs between database implementations */ + score: Scalars['Float']; + sku: Scalars['String']; + slug: Scalars['String']; }; export type SearchResultAsset = { - focalPoint?: Maybe; - id: Scalars['ID']; - preview: Scalars['String']; + focalPoint?: Maybe; + id: Scalars['ID']; + preview: Scalars['String']; }; /** The price of a search result product, either as a range or as a single price */ export type SearchResultPrice = PriceRange | SinglePrice; export type SearchResultSortParameter = { - name?: InputMaybe; - price?: InputMaybe; + name?: InputMaybe; + price?: InputMaybe; }; export type 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 SellerCustomFields = { - connectedAccountId?: Maybe; + connectedAccountId?: Maybe; }; export type SellerFilterParameter = { - connectedAccountId?: InputMaybe; - createdAt?: InputMaybe; - id?: InputMaybe; - name?: InputMaybe; - updatedAt?: InputMaybe; + connectedAccountId?: 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 = { - connectedAccountId?: InputMaybe; - createdAt?: InputMaybe; - id?: InputMaybe; - name?: InputMaybe; - updatedAt?: InputMaybe; + connectedAccountId?: 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['Int']; - discountedPriceWithTax: Scalars['Int']; - discounts: Array; - id: Scalars['ID']; - price: Scalars['Int']; - priceWithTax: Scalars['Int']; - shippingMethod: ShippingMethod; + discountedPrice: Scalars['Int']; + discountedPriceWithTax: Scalars['Int']; + discounts: Array; + id: Scalars['ID']; + price: Scalars['Int']; + priceWithTax: Scalars['Int']; + shippingMethod: ShippingMethod; }; export type ShippingMethod = Node & { - calculator: ConfigurableOperation; - checker: ConfigurableOperation; - code: Scalars['String']; - createdAt: Scalars['DateTime']; - customFields?: Maybe; - description: Scalars['String']; - fulfillmentHandlerCode: Scalars['String']; - id: Scalars['ID']; - languageCode: LanguageCode; - name: Scalars['String']; - translations: Array; - updatedAt: Scalars['DateTime']; + calculator: ConfigurableOperation; + checker: ConfigurableOperation; + code: Scalars['String']; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + description: Scalars['String']; + fulfillmentHandlerCode: Scalars['String']; + id: Scalars['ID']; + languageCode: LanguageCode; + name: Scalars['String']; + translations: Array; + updatedAt: Scalars['DateTime']; }; export type ShippingMethodFilterParameter = { - code?: InputMaybe; - createdAt?: InputMaybe; - description?: InputMaybe; - fulfillmentHandlerCode?: InputMaybe; - id?: InputMaybe; - languageCode?: InputMaybe; - name?: InputMaybe; - updatedAt?: InputMaybe; + code?: InputMaybe; + createdAt?: InputMaybe; + description?: InputMaybe; + fulfillmentHandlerCode?: InputMaybe; + id?: InputMaybe; + languageCode?: InputMaybe; + name?: InputMaybe; + updatedAt?: InputMaybe; }; export type ShippingMethodList = PaginatedList & { - items: Array; - totalItems: Scalars['Int']; + items: Array; + totalItems: Scalars['Int']; }; export type ShippingMethodListOptions = { - /** Allows the results to be filtered */ - filter?: InputMaybe; - /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ - filterOperator?: InputMaybe; - /** Skips the first n results, for use in pagination */ - skip?: InputMaybe; - /** Specifies which properties to sort the results by */ - sort?: InputMaybe; - /** Takes n results, for use in pagination */ - take?: InputMaybe; + /** Allows the results to be filtered */ + filter?: InputMaybe; + /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ + filterOperator?: InputMaybe; + /** Skips the first n results, for use in pagination */ + skip?: InputMaybe; + /** Specifies which properties to sort the results by */ + sort?: InputMaybe; + /** Takes n results, for use in pagination */ + take?: InputMaybe; }; export type ShippingMethodQuote = { - code: Scalars['String']; - customFields?: Maybe; - description: Scalars['String']; - id: Scalars['ID']; - /** Any optional metadata returned by the ShippingCalculator in the ShippingCalculationResult */ - metadata?: Maybe; - name: Scalars['String']; - price: Scalars['Int']; - priceWithTax: Scalars['Int']; + code: Scalars['String']; + customFields?: Maybe; + description: Scalars['String']; + id: Scalars['ID']; + /** Any optional metadata returned by the ShippingCalculator in the ShippingCalculationResult */ + metadata?: Maybe; + name: Scalars['String']; + price: Scalars['Int']; + priceWithTax: Scalars['Int']; }; export type ShippingMethodSortParameter = { - code?: InputMaybe; - createdAt?: InputMaybe; - description?: InputMaybe; - fulfillmentHandlerCode?: InputMaybe; - id?: InputMaybe; - name?: InputMaybe; - updatedAt?: InputMaybe; + code?: InputMaybe; + createdAt?: InputMaybe; + description?: InputMaybe; + fulfillmentHandlerCode?: InputMaybe; + id?: InputMaybe; + name?: InputMaybe; + updatedAt?: InputMaybe; }; export type ShippingMethodTranslation = { - createdAt: Scalars['DateTime']; - description: Scalars['String']; - id: Scalars['ID']; - languageCode: LanguageCode; - name: Scalars['String']; - updatedAt: Scalars['DateTime']; + createdAt: Scalars['DateTime']; + description: Scalars['String']; + id: Scalars['ID']; + languageCode: LanguageCode; + name: Scalars['String']; + updatedAt: Scalars['DateTime']; }; export type ShippingMethodTranslationInput = { - customFields?: InputMaybe; - description?: InputMaybe; - id?: InputMaybe; - languageCode: LanguageCode; - name?: InputMaybe; + customFields?: InputMaybe; + description?: InputMaybe; + id?: InputMaybe; + languageCode: LanguageCode; + name?: InputMaybe; }; /** The price value where the result has a single price */ export type SinglePrice = { - value: Scalars['Int']; + value: Scalars['Int']; }; export enum SortOrder { - ASC = 'ASC', - DESC = 'DESC' + ASC = 'ASC', + DESC = 'DESC', } -export type StockAdjustment = Node & StockMovement & { - createdAt: Scalars['DateTime']; - id: Scalars['ID']; - productVariant: ProductVariant; - quantity: Scalars['Int']; - type: StockMovementType; - updatedAt: Scalars['DateTime']; -}; +export type StockAdjustment = Node & + StockMovement & { + createdAt: Scalars['DateTime']; + id: Scalars['ID']; + productVariant: ProductVariant; + quantity: Scalars['Int']; + type: StockMovementType; + updatedAt: Scalars['DateTime']; + }; export type StockMovement = { - createdAt: Scalars['DateTime']; - id: Scalars['ID']; - productVariant: ProductVariant; - quantity: Scalars['Int']; - type: StockMovementType; - updatedAt: Scalars['DateTime']; + createdAt: Scalars['DateTime']; + id: Scalars['ID']; + productVariant: ProductVariant; + quantity: Scalars['Int']; + type: StockMovementType; + updatedAt: Scalars['DateTime']; }; export type StockMovementItem = Allocation | Cancellation | Release | Return | Sale | StockAdjustment; export type StockMovementList = { - items: Array; - totalItems: Scalars['Int']; + items: Array; + totalItems: Scalars['Int']; }; export type StockMovementListOptions = { - skip?: InputMaybe; - take?: InputMaybe; - type?: InputMaybe; + skip?: InputMaybe; + take?: InputMaybe; + type?: InputMaybe; }; export enum StockMovementType { - ADJUSTMENT = 'ADJUSTMENT', - ALLOCATION = 'ALLOCATION', - CANCELLATION = 'CANCELLATION', - RELEASE = 'RELEASE', - RETURN = 'RETURN', - SALE = 'SALE' + ADJUSTMENT = 'ADJUSTMENT', + ALLOCATION = 'ALLOCATION', + CANCELLATION = 'CANCELLATION', + RELEASE = 'RELEASE', + RETURN = 'RETURN', + SALE = 'SALE', } export type StringCustomFieldConfig = CustomField & { - description?: Maybe>; - internal?: Maybe; - label?: Maybe>; - length?: Maybe; - list: Scalars['Boolean']; - name: Scalars['String']; - nullable?: Maybe; - options?: Maybe>; - pattern?: Maybe; - readonly?: Maybe; - type: Scalars['String']; - ui?: Maybe; + description?: Maybe>; + internal?: Maybe; + label?: Maybe>; + length?: Maybe; + list: Scalars['Boolean']; + name: Scalars['String']; + nullable?: Maybe; + options?: Maybe>; + pattern?: Maybe; + readonly?: Maybe; + type: Scalars['String']; + ui?: Maybe; }; export type StringFieldOption = { - label?: Maybe>; - value: Scalars['String']; + label?: Maybe>; + value: Scalars['String']; }; /** Operators for filtering on a list of String fields */ export type StringListOperators = { - inList: Scalars['String']; + inList: Scalars['String']; }; /** Operators for filtering on a String field */ export type StringOperators = { - contains?: InputMaybe; - eq?: InputMaybe; - in?: InputMaybe>; - isNull?: InputMaybe; - notContains?: InputMaybe; - notEq?: InputMaybe; - notIn?: InputMaybe>; - regex?: InputMaybe; + contains?: InputMaybe; + eq?: InputMaybe; + in?: InputMaybe>; + isNull?: InputMaybe; + notContains?: InputMaybe; + notEq?: InputMaybe; + notIn?: InputMaybe>; + regex?: InputMaybe; }; /** Indicates that an operation succeeded, where we do not want to return any more specific information. */ export type Success = { - success: Scalars['Boolean']; + success: Scalars['Boolean']; }; export type Surcharge = Node & { - createdAt: Scalars['DateTime']; - description: Scalars['String']; - id: Scalars['ID']; - price: Scalars['Int']; - priceWithTax: Scalars['Int']; - sku?: Maybe; - taxLines: Array; - taxRate: Scalars['Float']; - updatedAt: Scalars['DateTime']; + createdAt: Scalars['DateTime']; + description: Scalars['String']; + id: Scalars['ID']; + price: Scalars['Int']; + priceWithTax: Scalars['Int']; + sku?: Maybe; + taxLines: Array; + taxRate: Scalars['Float']; + updatedAt: Scalars['DateTime']; }; export type SurchargeInput = { - description: Scalars['String']; - price: Scalars['Int']; - priceIncludesTax: Scalars['Boolean']; - sku?: InputMaybe; - taxDescription?: InputMaybe; - taxRate?: InputMaybe; + description: Scalars['String']; + price: Scalars['Int']; + priceIncludesTax: Scalars['Boolean']; + sku?: InputMaybe; + taxDescription?: InputMaybe; + taxRate?: InputMaybe; }; export type Tag = Node & { - createdAt: Scalars['DateTime']; - id: Scalars['ID']; - updatedAt: Scalars['DateTime']; - value: Scalars['String']; + createdAt: Scalars['DateTime']; + id: Scalars['ID']; + updatedAt: Scalars['DateTime']; + value: Scalars['String']; }; export type TagFilterParameter = { - createdAt?: InputMaybe; - id?: InputMaybe; - updatedAt?: InputMaybe; - value?: InputMaybe; + createdAt?: InputMaybe; + id?: InputMaybe; + updatedAt?: InputMaybe; + value?: InputMaybe; }; export type TagList = PaginatedList & { - items: Array; - totalItems: Scalars['Int']; + items: Array; + totalItems: Scalars['Int']; }; export type TagListOptions = { - /** Allows the results to be filtered */ - filter?: InputMaybe; - /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ - filterOperator?: InputMaybe; - /** Skips the first n results, for use in pagination */ - skip?: InputMaybe; - /** Specifies which properties to sort the results by */ - sort?: InputMaybe; - /** Takes n results, for use in pagination */ - take?: InputMaybe; + /** Allows the results to be filtered */ + filter?: InputMaybe; + /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ + filterOperator?: InputMaybe; + /** Skips the first n results, for use in pagination */ + skip?: InputMaybe; + /** Specifies which properties to sort the results by */ + sort?: InputMaybe; + /** Takes n results, for use in pagination */ + take?: InputMaybe; }; export type TagSortParameter = { - createdAt?: InputMaybe; - id?: InputMaybe; - updatedAt?: InputMaybe; - value?: InputMaybe; + createdAt?: InputMaybe; + id?: InputMaybe; + updatedAt?: InputMaybe; + value?: InputMaybe; }; export type TaxCategory = Node & { - createdAt: Scalars['DateTime']; - customFields?: Maybe; - id: Scalars['ID']; - isDefault: Scalars['Boolean']; - name: Scalars['String']; - updatedAt: Scalars['DateTime']; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + id: Scalars['ID']; + isDefault: Scalars['Boolean']; + name: Scalars['String']; + updatedAt: Scalars['DateTime']; }; export type TaxLine = { - description: Scalars['String']; - taxRate: Scalars['Float']; + description: Scalars['String']; + taxRate: Scalars['Float']; }; export type TaxRate = Node & { - category: TaxCategory; - createdAt: Scalars['DateTime']; - customFields?: Maybe; - customerGroup?: Maybe; - enabled: Scalars['Boolean']; - id: Scalars['ID']; - name: Scalars['String']; - updatedAt: Scalars['DateTime']; - value: Scalars['Float']; - zone: Zone; + category: TaxCategory; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + customerGroup?: Maybe; + enabled: Scalars['Boolean']; + id: Scalars['ID']; + name: Scalars['String']; + updatedAt: Scalars['DateTime']; + value: Scalars['Float']; + zone: Zone; }; export type TaxRateFilterParameter = { - createdAt?: InputMaybe; - enabled?: InputMaybe; - id?: InputMaybe; - name?: InputMaybe; - updatedAt?: InputMaybe; - value?: InputMaybe; + createdAt?: InputMaybe; + enabled?: InputMaybe; + id?: InputMaybe; + name?: InputMaybe; + updatedAt?: InputMaybe; + value?: InputMaybe; }; export type TaxRateList = PaginatedList & { - items: Array; - totalItems: Scalars['Int']; + items: Array; + totalItems: Scalars['Int']; }; export type TaxRateListOptions = { - /** Allows the results to be filtered */ - filter?: InputMaybe; - /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ - filterOperator?: InputMaybe; - /** Skips the first n results, for use in pagination */ - skip?: InputMaybe; - /** Specifies which properties to sort the results by */ - sort?: InputMaybe; - /** Takes n results, for use in pagination */ - take?: InputMaybe; + /** Allows the results to be filtered */ + filter?: InputMaybe; + /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ + filterOperator?: InputMaybe; + /** Skips the first n results, for use in pagination */ + skip?: InputMaybe; + /** Specifies which properties to sort the results by */ + sort?: InputMaybe; + /** Takes n results, for use in pagination */ + take?: InputMaybe; }; export type TaxRateSortParameter = { - createdAt?: InputMaybe; - id?: InputMaybe; - name?: InputMaybe; - updatedAt?: InputMaybe; - value?: InputMaybe; + createdAt?: InputMaybe; + id?: InputMaybe; + name?: InputMaybe; + updatedAt?: InputMaybe; + value?: InputMaybe; }; export type TestEligibleShippingMethodsInput = { - lines: Array; - shippingAddress: CreateAddressInput; + lines: Array; + shippingAddress: CreateAddressInput; }; export type TestShippingMethodInput = { - calculator: ConfigurableOperationInput; - checker: ConfigurableOperationInput; - lines: Array; - shippingAddress: CreateAddressInput; + calculator: ConfigurableOperationInput; + checker: ConfigurableOperationInput; + lines: Array; + shippingAddress: CreateAddressInput; }; export type TestShippingMethodOrderLineInput = { - productVariantId: Scalars['ID']; - quantity: Scalars['Int']; + productVariantId: Scalars['ID']; + quantity: Scalars['Int']; }; export type TestShippingMethodQuote = { - metadata?: Maybe; - price: Scalars['Int']; - priceWithTax: Scalars['Int']; + metadata?: Maybe; + price: Scalars['Int']; + priceWithTax: Scalars['Int']; }; export type TestShippingMethodResult = { - eligible: Scalars['Boolean']; - quote?: Maybe; + eligible: Scalars['Boolean']; + quote?: Maybe; }; export type TextCustomFieldConfig = CustomField & { - description?: Maybe>; - internal?: Maybe; - label?: Maybe>; - list: Scalars['Boolean']; - name: Scalars['String']; - nullable?: Maybe; - readonly?: Maybe; - type: Scalars['String']; - ui?: Maybe; + description?: Maybe>; + internal?: Maybe; + label?: Maybe>; + list: Scalars['Boolean']; + name: Scalars['String']; + nullable?: Maybe; + readonly?: Maybe; + type: Scalars['String']; + ui?: Maybe; }; export type TransitionFulfillmentToStateResult = Fulfillment | FulfillmentStateTransitionError; @@ -5314,2116 +5182,5887 @@ 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; - description?: InputMaybe; - enabled?: InputMaybe; - handler?: InputMaybe; - id: Scalars['ID']; - name?: InputMaybe; + checker?: InputMaybe; + code?: InputMaybe; + customFields?: InputMaybe; + description?: InputMaybe; + enabled?: InputMaybe; + handler?: InputMaybe; + id: Scalars['ID']; + name?: InputMaybe; }; export type UpdateProductInput = { - assetIds?: InputMaybe>; - customFields?: InputMaybe; - enabled?: InputMaybe; - facetValueIds?: InputMaybe>; - featuredAssetId?: InputMaybe; - id: Scalars['ID']; - translations?: InputMaybe>; + assetIds?: InputMaybe>; + customFields?: InputMaybe; + enabled?: InputMaybe; + facetValueIds?: InputMaybe>; + featuredAssetId?: InputMaybe; + id: Scalars['ID']; + translations?: InputMaybe>; }; export type UpdateProductOptionGroupInput = { - code?: InputMaybe; - customFields?: InputMaybe; - id: Scalars['ID']; - translations?: InputMaybe>; + code?: InputMaybe; + customFields?: InputMaybe; + id: Scalars['ID']; + translations?: InputMaybe>; }; export type UpdateProductOptionInput = { - code?: InputMaybe; - customFields?: InputMaybe; - id: Scalars['ID']; - translations?: InputMaybe>; + code?: InputMaybe; + customFields?: InputMaybe; + id: Scalars['ID']; + translations?: InputMaybe>; }; export type UpdateProductVariantInput = { - assetIds?: InputMaybe>; - customFields?: InputMaybe; - enabled?: InputMaybe; - facetValueIds?: InputMaybe>; - featuredAssetId?: InputMaybe; - id: Scalars['ID']; - outOfStockThreshold?: InputMaybe; - price?: InputMaybe; - sku?: InputMaybe; - stockOnHand?: InputMaybe; - taxCategoryId?: InputMaybe; - trackInventory?: InputMaybe; - translations?: InputMaybe>; - useGlobalOutOfStockThreshold?: InputMaybe; + assetIds?: InputMaybe>; + customFields?: InputMaybe; + enabled?: InputMaybe; + facetValueIds?: InputMaybe>; + featuredAssetId?: InputMaybe; + id: Scalars['ID']; + outOfStockThreshold?: InputMaybe; + price?: InputMaybe; + sku?: InputMaybe; + stockOnHand?: InputMaybe; + taxCategoryId?: InputMaybe; + trackInventory?: InputMaybe; + translations?: InputMaybe>; + useGlobalOutOfStockThreshold?: InputMaybe; }; export type UpdatePromotionInput = { - actions?: InputMaybe>; - conditions?: InputMaybe>; - couponCode?: InputMaybe; - customFields?: InputMaybe; - enabled?: InputMaybe; - endsAt?: InputMaybe; - id: Scalars['ID']; - name?: InputMaybe; - perCustomerUsageLimit?: InputMaybe; - startsAt?: InputMaybe; + actions?: InputMaybe>; + conditions?: InputMaybe>; + couponCode?: InputMaybe; + customFields?: InputMaybe; + enabled?: InputMaybe; + endsAt?: InputMaybe; + id: Scalars['ID']; + name?: InputMaybe; + perCustomerUsageLimit?: InputMaybe; + startsAt?: InputMaybe; }; export type UpdatePromotionResult = MissingConditionsError | Promotion; export type UpdateRoleInput = { - channelIds?: InputMaybe>; - code?: InputMaybe; - description?: InputMaybe; - id: Scalars['ID']; - permissions?: InputMaybe>; + channelIds?: InputMaybe>; + code?: InputMaybe; + description?: InputMaybe; + id: Scalars['ID']; + permissions?: InputMaybe>; }; export type UpdateSellerCustomFieldsInput = { - connectedAccountId?: InputMaybe; + connectedAccountId?: 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 UpdateTagInput = { - id: Scalars['ID']; - value?: InputMaybe; + id: Scalars['ID']; + value?: InputMaybe; }; export type UpdateTaxCategoryInput = { - customFields?: InputMaybe; - id: Scalars['ID']; - isDefault?: InputMaybe; - name?: InputMaybe; + customFields?: InputMaybe; + id: Scalars['ID']; + isDefault?: InputMaybe; + name?: InputMaybe; }; export type UpdateTaxRateInput = { - categoryId?: InputMaybe; - customFields?: InputMaybe; - customerGroupId?: InputMaybe; - enabled?: InputMaybe; - id: Scalars['ID']; - name?: InputMaybe; - value?: InputMaybe; - zoneId?: InputMaybe; + categoryId?: InputMaybe; + customFields?: InputMaybe; + customerGroupId?: InputMaybe; + enabled?: InputMaybe; + id: Scalars['ID']; + name?: InputMaybe; + value?: InputMaybe; + zoneId?: InputMaybe; }; export type UpdateVendorInput = { - id: Scalars['ID']; - name?: InputMaybe; + id: Scalars['ID']; + name?: InputMaybe; }; export type UpdateZoneInput = { - customFields?: InputMaybe; - id: Scalars['ID']; - name?: InputMaybe; + customFields?: InputMaybe; + id: Scalars['ID']; + name?: InputMaybe; }; export type User = Node & { - authenticationMethods: Array; - createdAt: Scalars['DateTime']; - customFields?: Maybe; - id: Scalars['ID']; - identifier: Scalars['String']; - lastLogin?: Maybe; - roles: Array; - updatedAt: Scalars['DateTime']; - verified: Scalars['Boolean']; + authenticationMethods: Array; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + id: Scalars['ID']; + identifier: Scalars['String']; + lastLogin?: Maybe; + roles: Array; + updatedAt: Scalars['DateTime']; + verified: Scalars['Boolean']; }; export type Vendor = Node & { - createdAt: Scalars['DateTime']; - id: Scalars['ID']; - name: Scalars['String']; - updatedAt: Scalars['DateTime']; + createdAt: Scalars['DateTime']; + id: Scalars['ID']; + name: Scalars['String']; + updatedAt: Scalars['DateTime']; }; export type VendorFilterParameter = { - createdAt?: InputMaybe; - id?: InputMaybe; - name?: InputMaybe; - updatedAt?: InputMaybe; + createdAt?: InputMaybe; + id?: InputMaybe; + name?: InputMaybe; + updatedAt?: InputMaybe; }; export type VendorList = PaginatedList & { - items: Array; - totalItems: Scalars['Int']; + items: Array; + totalItems: Scalars['Int']; }; export type VendorListOptions = { - /** Allows the results to be filtered */ - filter?: InputMaybe; - /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ - filterOperator?: InputMaybe; - /** Skips the first n results, for use in pagination */ - skip?: InputMaybe; - /** Specifies which properties to sort the results by */ - sort?: InputMaybe; - /** Takes n results, for use in pagination */ - take?: InputMaybe; + /** Allows the results to be filtered */ + filter?: InputMaybe; + /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ + filterOperator?: InputMaybe; + /** Skips the first n results, for use in pagination */ + skip?: InputMaybe; + /** Specifies which properties to sort the results by */ + sort?: InputMaybe; + /** Takes n results, for use in pagination */ + take?: InputMaybe; }; export type VendorSortParameter = { - createdAt?: InputMaybe; - id?: InputMaybe; - name?: InputMaybe; - updatedAt?: InputMaybe; + createdAt?: InputMaybe; + id?: InputMaybe; + name?: InputMaybe; + updatedAt?: InputMaybe; }; 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 DeleteAdministratorMutation = { deleteAdministrator: { message?: string | null, result: DeletionResult } }; - -export type Q1QueryVariables = Exact<{ [key: string]: never; }>; - - -export type Q1Query = { product?: { id: string, name: string } | null }; +export type Q1QueryVariables = Exact<{ [key: string]: never }>; -export type Q2QueryVariables = Exact<{ [key: string]: never; }>; +export type Q1Query = { product?: { id: string; name: string } | null }; +export type Q2QueryVariables = Exact<{ [key: string]: never }>; -export type Q2Query = { product?: { id: string, name: string } | null }; +export type Q2Query = { product?: { id: string; name: string } | null }; export type AssignAssetsToChannelMutationVariables = Exact<{ - input: AssignAssetsToChannelInput; + input: AssignAssetsToChannelInput; }>; - -export type AssignAssetsToChannelMutation = { assignAssetsToChannel: Array<{ id: string, name: string, fileSize: number, mimeType: string, type: AssetType, preview: string, source: string }> }; +export type AssignAssetsToChannelMutation = { + assignAssetsToChannel: Array<{ + id: string; + name: string; + fileSize: number; + mimeType: string; + type: AssetType; + preview: string; + source: string; + }>; +}; export type CanCreateCustomerMutationVariables = Exact<{ - input: CreateCustomerInput; + input: CreateCustomerInput; }>; - export type CanCreateCustomerMutation = { createCustomer: { id: string } | {} }; -export type GetCustomerCountQueryVariables = Exact<{ [key: string]: never; }>; - +export type GetCustomerCountQueryVariables = Exact<{ [key: string]: never }>; export type GetCustomerCountQuery = { customers: { totalItems: number } }; -export type DeepFieldResolutionTestQueryQueryVariables = Exact<{ [key: string]: never; }>; +export type DeepFieldResolutionTestQueryQueryVariables = Exact<{ [key: string]: never }>; - -export type DeepFieldResolutionTestQueryQuery = { product?: { variants: Array<{ taxRateApplied: { customerGroup?: { customers: { items: Array<{ id: string, emailAddress: string }> } } | null } }> } | null }; +export type DeepFieldResolutionTestQueryQuery = { + product?: { + variants: Array<{ + taxRateApplied: { + customerGroup?: { customers: { items: Array<{ id: string; emailAddress: string }> } } | null; + }; + }>; + } | null; +}; export type AuthenticateMutationVariables = Exact<{ - input: AuthenticationInput; + input: AuthenticationInput; }>; +export type AuthenticateMutation = { + authenticate: + | { + id: string; + identifier: string; + channels: Array<{ code: string; token: string; permissions: Array }>; + } + | { authenticationError: string; errorCode: ErrorCode; message: string }; +}; -export type AuthenticateMutation = { authenticate: { id: string, identifier: string, channels: Array<{ code: string, token: string, permissions: Array }> } | { authenticationError: string, errorCode: ErrorCode, message: string } }; - -export type GetCustomersQueryVariables = Exact<{ [key: string]: never; }>; - +export type GetCustomersQueryVariables = Exact<{ [key: string]: never }>; -export type GetCustomersQuery = { customers: { totalItems: number, items: Array<{ id: string, emailAddress: string }> } }; +export type GetCustomersQuery = { + customers: { totalItems: number; items: Array<{ id: string; emailAddress: string }> }; +}; export type GetCustomerUserAuthQueryVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; - -export type GetCustomerUserAuthQuery = { customer?: { id: string, user?: { id: string, verified: boolean, authenticationMethods: Array<{ id: string, strategy: string }> } | null } | null }; +export type GetCustomerUserAuthQuery = { + customer?: { + id: string; + user?: { + id: string; + verified: boolean; + authenticationMethods: Array<{ id: string; strategy: string }>; + } | null; + } | null; +}; export type DeleteChannelMutationVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; - -export type DeleteChannelMutation = { deleteChannel: { message?: string | null, result: DeletionResult } }; +export type DeleteChannelMutation = { deleteChannel: { message?: string | null; result: DeletionResult } }; export type UpdateGlobalLanguagesMutationVariables = Exact<{ - input: UpdateGlobalSettingsInput; + input: UpdateGlobalSettingsInput; }>; +export type UpdateGlobalLanguagesMutation = { + updateGlobalSettings: { id: string; availableLanguages: Array } | {}; +}; -export type UpdateGlobalLanguagesMutation = { updateGlobalSettings: { id: string, availableLanguages: Array } | {} }; +export type GetCollectionsWithAssetsQueryVariables = Exact<{ [key: string]: never }>; -export type GetCollectionsWithAssetsQueryVariables = Exact<{ [key: string]: never; }>; +export type GetCollectionsWithAssetsQuery = { + collections: { items: Array<{ assets: Array<{ name: string }> }> }; +}; +export type GetProductsWithVariantIdsQueryVariables = Exact<{ [key: string]: never }>; -export type GetCollectionsWithAssetsQuery = { collections: { items: Array<{ assets: Array<{ name: string }> }> } }; +export type GetProductsWithVariantIdsQuery = { + products: { items: Array<{ id: string; name: string; variants: Array<{ id: string; name: string }> }> }; +}; -export type GetProductsWithVariantIdsQueryVariables = Exact<{ [key: string]: never; }>; +export type GetCollectionQueryVariables = Exact<{ + id?: InputMaybe; + slug?: InputMaybe; + variantListOptions?: InputMaybe; +}>; + +export type GetCollectionQuery = { + collection?: { + id: string; + name: string; + slug: string; + description: string; + isPrivate: boolean; + languageCode?: LanguageCode | null; + productVariants: { items: Array<{ id: string; name: string; price: number }> }; + featuredAsset?: { + id: string; + name: string; + fileSize: number; + mimeType: string; + type: AssetType; + preview: string; + source: string; + } | null; + assets: Array<{ + id: string; + name: string; + fileSize: number; + mimeType: string; + type: AssetType; + preview: string; + source: string; + }>; + filters: Array<{ code: string; args: Array<{ name: string; value: string }> }>; + translations: Array<{ + id: string; + languageCode: LanguageCode; + name: string; + slug: string; + description: string; + }>; + parent?: { id: string; name: string } | null; + children?: Array<{ id: string; name: string; position: number }> | null; + } | null; +}; +export type GetCollectionListAdminQueryVariables = Exact<{ + options?: InputMaybe; +}>; + +export type GetCollectionListAdminQuery = { + collections: { + totalItems: number; + items: Array<{ + id: string; + name: string; + slug: string; + description: string; + isPrivate: boolean; + languageCode?: LanguageCode | null; + featuredAsset?: { + id: string; + name: string; + fileSize: number; + mimeType: string; + type: AssetType; + preview: string; + source: string; + } | null; + assets: Array<{ + id: string; + name: string; + fileSize: number; + mimeType: string; + type: AssetType; + preview: string; + source: string; + }>; + filters: Array<{ code: string; args: Array<{ name: string; value: string }> }>; + translations: Array<{ + id: string; + languageCode: LanguageCode; + name: string; + slug: string; + description: string; + }>; + parent?: { id: string; name: string } | null; + children?: Array<{ id: string; name: string; position: number }> | null; + }>; + }; +}; -export type GetProductsWithVariantIdsQuery = { products: { items: Array<{ id: string, name: string, variants: Array<{ id: string, name: string }> }> } }; +export type MoveCollectionMutationVariables = Exact<{ + input: MoveCollectionInput; +}>; + +export type MoveCollectionMutation = { + moveCollection: { + id: string; + name: string; + slug: string; + description: string; + isPrivate: boolean; + languageCode?: LanguageCode | null; + featuredAsset?: { + id: string; + name: string; + fileSize: number; + mimeType: string; + type: AssetType; + preview: string; + source: string; + } | null; + assets: Array<{ + id: string; + name: string; + fileSize: number; + mimeType: string; + type: AssetType; + preview: string; + source: string; + }>; + filters: Array<{ code: string; args: Array<{ name: string; value: string }> }>; + translations: Array<{ + id: string; + languageCode: LanguageCode; + name: string; + slug: string; + description: string; + }>; + parent?: { id: string; name: string } | null; + children?: Array<{ id: string; name: string; position: number }> | null; + }; +}; + +export type GetFacetValuesQueryVariables = Exact<{ [key: string]: never }>; + +export type GetFacetValuesQuery = { + facets: { + items: Array<{ + values: Array<{ + id: string; + languageCode: LanguageCode; + code: string; + name: string; + translations: Array<{ id: string; languageCode: LanguageCode; name: string }>; + facet: { id: string; name: string }; + }>; + }>; + }; +}; -export type GetCollectionQueryVariables = Exact<{ - id?: InputMaybe; - slug?: InputMaybe; - variantListOptions?: InputMaybe; +export type GetCollectionProductsQueryVariables = Exact<{ + id: Scalars['ID']; }>; +export type GetCollectionProductsQuery = { + collection?: { + productVariants: { + items: Array<{ + id: string; + name: string; + productId: string; + facetValues: Array<{ code: string }>; + }>; + }; + } | null; +}; -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 CreateCollectionSelectVariantsMutationVariables = Exact<{ + input: CreateCollectionInput; }>; - -export type GetCollectionListAdminQuery = { collections: { totalItems: number, items: Array<{ id: string, name: string, slug: string, description: string, isPrivate: boolean, languageCode?: LanguageCode | null, featuredAsset?: { id: string, name: string, fileSize: number, mimeType: string, type: AssetType, preview: string, source: string } | null, assets: Array<{ id: string, name: string, fileSize: number, mimeType: string, type: AssetType, preview: string, source: string }>, filters: Array<{ code: string, args: Array<{ name: string, value: string }> }>, translations: Array<{ id: string, languageCode: LanguageCode, name: string, slug: string, description: string }>, parent?: { id: string, name: string } | null, children?: Array<{ id: string, name: string, position: number }> | null }> } }; - -export type MoveCollectionMutationVariables = Exact<{ - input: MoveCollectionInput; -}>; - - -export type MoveCollectionMutation = { moveCollection: { id: string, name: string, slug: string, description: string, isPrivate: boolean, languageCode?: LanguageCode | null, featuredAsset?: { id: string, name: string, fileSize: number, mimeType: string, type: AssetType, preview: string, source: string } | null, assets: Array<{ id: string, name: string, fileSize: number, mimeType: string, type: AssetType, preview: string, source: string }>, filters: Array<{ code: string, args: Array<{ name: string, value: string }> }>, translations: Array<{ id: string, languageCode: LanguageCode, name: string, slug: string, description: string }>, parent?: { id: string, name: string } | null, children?: Array<{ id: string, name: string, position: number }> | null } }; - -export type GetFacetValuesQueryVariables = Exact<{ [key: string]: never; }>; - - -export type GetFacetValuesQuery = { facets: { items: Array<{ values: Array<{ id: string, languageCode: LanguageCode, code: string, name: string, translations: Array<{ id: string, languageCode: LanguageCode, name: string }>, facet: { id: string, name: string } }> }> } }; - -export type GetCollectionProductsQueryVariables = Exact<{ - id: Scalars['ID']; -}>; - - -export type GetCollectionProductsQuery = { collection?: { productVariants: { items: Array<{ id: string, name: string, productId: string, facetValues: Array<{ code: string }> }> } } | null }; - -export type CreateCollectionSelectVariantsMutationVariables = Exact<{ - input: CreateCollectionInput; -}>; - - -export type CreateCollectionSelectVariantsMutation = { createCollection: { id: string, productVariants: { totalItems: number, items: Array<{ name: string }> } } }; +export type CreateCollectionSelectVariantsMutation = { + createCollection: { id: string; productVariants: { totalItems: number; items: Array<{ name: string }> } }; +}; export type GetCollectionBreadcrumbsQueryVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; - -export type GetCollectionBreadcrumbsQuery = { collection?: { breadcrumbs: Array<{ id: string, name: string, slug: string }> } | null }; +export type GetCollectionBreadcrumbsQuery = { + collection?: { breadcrumbs: Array<{ id: string; name: string; slug: string }> } | null; +}; export type GetCollectionsForProductsQueryVariables = Exact<{ - term: Scalars['String']; + term: Scalars['String']; }>; - -export type GetCollectionsForProductsQuery = { products: { items: Array<{ id: string, name: string, collections: Array<{ id: string, name: string }> }> } }; +export type GetCollectionsForProductsQuery = { + products: { + items: Array<{ id: string; name: string; collections: Array<{ id: string; name: string }> }>; + }; +}; export type DeleteCollectionMutationVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; - -export type DeleteCollectionMutation = { deleteCollection: { result: DeletionResult, message?: string | null } }; +export type DeleteCollectionMutation = { + deleteCollection: { result: DeletionResult; message?: string | null }; +}; export type GetProductCollectionsQueryVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; - -export type GetProductCollectionsQuery = { product?: { id: string, collections: Array<{ id: string, name: string }> } | null }; +export type GetProductCollectionsQuery = { + product?: { id: string; collections: Array<{ id: string; name: string }> } | null; +}; export type GetProductCollectionsWithParentQueryVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; +export type GetProductCollectionsWithParentQuery = { + product?: { + id: string; + collections: Array<{ id: string; name: string; parent?: { id: string; name: string } | null }>; + } | null; +}; -export type GetProductCollectionsWithParentQuery = { product?: { id: string, collections: Array<{ id: string, name: string, parent?: { id: string, name: string } | null }> } | null }; - -export type GetCollectionNestedParentsQueryVariables = Exact<{ [key: string]: never; }>; - +export type GetCollectionNestedParentsQueryVariables = Exact<{ [key: string]: never }>; -export type GetCollectionNestedParentsQuery = { collections: { items: Array<{ id: string, name: string, parent?: { name: string, parent?: { name: string, parent?: { name: string } | null } | null } | null }> } }; +export type GetCollectionNestedParentsQuery = { + collections: { + items: Array<{ + id: string; + name: string; + parent?: { + name: string; + parent?: { name: string; parent?: { name: string } | null } | null; + } | null; + }>; + }; +}; export type PreviewCollectionVariantsQueryVariables = Exact<{ - input: PreviewCollectionVariantsInput; - options?: InputMaybe; + input: PreviewCollectionVariantsInput; + options?: InputMaybe; }>; - -export type PreviewCollectionVariantsQuery = { previewCollectionVariants: { totalItems: number, items: Array<{ id: string, name: string }> } }; +export type PreviewCollectionVariantsQuery = { + previewCollectionVariants: { totalItems: number; items: Array<{ id: string; name: string }> }; +}; export type AssignCollectionsToChannelMutationVariables = Exact<{ - input: AssignCollectionsToChannelInput; -}>; - - -export type AssignCollectionsToChannelMutation = { assignCollectionsToChannel: Array<{ id: string, name: string, slug: string, description: string, isPrivate: boolean, languageCode?: LanguageCode | null, featuredAsset?: { id: string, name: string, fileSize: number, mimeType: string, type: AssetType, preview: string, source: string } | null, assets: Array<{ id: string, name: string, fileSize: number, mimeType: string, type: AssetType, preview: string, source: string }>, filters: Array<{ code: string, args: Array<{ name: string, value: string }> }>, translations: Array<{ id: string, languageCode: LanguageCode, name: string, slug: string, description: string }>, parent?: { id: string, name: string } | null, children?: Array<{ id: string, name: string, position: number }> | null }> }; + input: AssignCollectionsToChannelInput; +}>; + +export type AssignCollectionsToChannelMutation = { + assignCollectionsToChannel: Array<{ + id: string; + name: string; + slug: string; + description: string; + isPrivate: boolean; + languageCode?: LanguageCode | null; + featuredAsset?: { + id: string; + name: string; + fileSize: number; + mimeType: string; + type: AssetType; + preview: string; + source: string; + } | null; + assets: Array<{ + id: string; + name: string; + fileSize: number; + mimeType: string; + type: AssetType; + preview: string; + source: string; + }>; + filters: Array<{ code: string; args: Array<{ name: string; value: string }> }>; + translations: Array<{ + id: string; + languageCode: LanguageCode; + name: string; + slug: string; + description: string; + }>; + parent?: { id: string; name: string } | null; + children?: Array<{ id: string; name: string; position: number }> | null; + }>; +}; export type RemoveCollectionsFromChannelMutationVariables = Exact<{ - input: RemoveCollectionsFromChannelInput; -}>; - - -export type RemoveCollectionsFromChannelMutation = { removeCollectionsFromChannel: Array<{ id: string, name: string, slug: string, description: string, isPrivate: boolean, languageCode?: LanguageCode | null, featuredAsset?: { id: string, name: string, fileSize: number, mimeType: string, type: AssetType, preview: string, source: string } | null, assets: Array<{ id: string, name: string, fileSize: number, mimeType: string, type: AssetType, preview: string, source: string }>, filters: Array<{ code: string, args: Array<{ name: string, value: string }> }>, translations: Array<{ id: string, languageCode: LanguageCode, name: string, slug: string, description: string }>, parent?: { id: string, name: string } | null, children?: Array<{ id: string, name: string, position: number }> | null }> }; + input: RemoveCollectionsFromChannelInput; +}>; + +export type RemoveCollectionsFromChannelMutation = { + removeCollectionsFromChannel: Array<{ + id: string; + name: string; + slug: string; + description: string; + isPrivate: boolean; + languageCode?: LanguageCode | null; + featuredAsset?: { + id: string; + name: string; + fileSize: number; + mimeType: string; + type: AssetType; + preview: string; + source: string; + } | null; + assets: Array<{ + id: string; + name: string; + fileSize: number; + mimeType: string; + type: AssetType; + preview: string; + source: string; + }>; + filters: Array<{ code: string; args: Array<{ name: string; value: string }> }>; + translations: Array<{ + id: string; + languageCode: LanguageCode; + name: string; + slug: string; + description: string; + }>; + parent?: { id: string; name: string } | null; + children?: Array<{ id: string; name: string; position: number }> | null; + }>; +}; export type DeleteCollectionsBulkMutationVariables = Exact<{ - ids: Array | Scalars['ID']; + ids: Array | Scalars['ID']; }>; +export type DeleteCollectionsBulkMutation = { + deleteCollections: Array<{ message?: string | null; result: DeletionResult }>; +}; -export type DeleteCollectionsBulkMutation = { deleteCollections: Array<{ message?: string | null, result: DeletionResult }> }; - -export type GetCheckersQueryVariables = Exact<{ [key: string]: never; }>; - +export type GetCheckersQueryVariables = Exact<{ [key: string]: never }>; -export type GetCheckersQuery = { shippingEligibilityCheckers: Array<{ code: string, args: Array<{ defaultValue?: any | null, description?: string | null, label?: string | null, list: boolean, name: string, required: boolean, type: string }> }> }; +export type GetCheckersQuery = { + shippingEligibilityCheckers: Array<{ + code: string; + args: Array<{ + defaultValue?: any | null; + description?: string | null; + label?: string | null; + list: boolean; + name: string; + required: boolean; + type: string; + }>; + }>; +}; export type DeleteCountryMutationVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; - -export type DeleteCountryMutation = { deleteCountry: { result: DeletionResult, message?: string | null } }; +export type DeleteCountryMutation = { deleteCountry: { result: DeletionResult; message?: string | null } }; export type GetCountryQueryVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; - -export type GetCountryQuery = { country?: { id: string, code: string, name: string, enabled: boolean, translations: Array<{ id: string, languageCode: LanguageCode, name: string }> } | null }; +export type GetCountryQuery = { + country?: { + id: string; + code: string; + name: string; + enabled: boolean; + translations: Array<{ id: string; languageCode: LanguageCode; name: string }>; + } | null; +}; export type CreateCountryMutationVariables = Exact<{ - input: CreateCountryInput; + input: CreateCountryInput; }>; - -export type CreateCountryMutation = { createCountry: { id: string, code: string, name: string, enabled: boolean, translations: Array<{ id: string, languageCode: LanguageCode, name: string }> } }; +export type CreateCountryMutation = { + createCountry: { + id: string; + code: string; + name: string; + enabled: boolean; + translations: Array<{ id: string; languageCode: LanguageCode; name: string }>; + }; +}; export type DeleteCustomerAddressMutationVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; - export type DeleteCustomerAddressMutation = { deleteCustomerAddress: { success: boolean } }; export type GetCustomerWithUserQueryVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; - -export type GetCustomerWithUserQuery = { customer?: { id: string, user?: { id: string, identifier: string, verified: boolean } | null } | null }; +export type GetCustomerWithUserQuery = { + customer?: { id: string; user?: { id: string; identifier: string; verified: boolean } | null } | null; +}; export type GetCustomerOrdersQueryVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; - -export type GetCustomerOrdersQuery = { customer?: { orders: { totalItems: number, items: Array<{ id: string }> } } | null }; +export type GetCustomerOrdersQuery = { + customer?: { orders: { totalItems: number; items: Array<{ id: string }> } } | null; +}; export type AddNoteToCustomerMutationVariables = Exact<{ - input: AddNoteToCustomerInput; -}>; - - -export type AddNoteToCustomerMutation = { addNoteToCustomer: { id: string, title?: string | null, firstName: string, lastName: string, phoneNumber?: string | null, emailAddress: string, user?: { id: string, identifier: string, verified: boolean, lastLogin?: any | null } | null, addresses?: Array<{ id: string, fullName?: string | null, company?: string | null, streetLine1: string, streetLine2?: string | null, city?: string | null, province?: string | null, postalCode?: string | null, phoneNumber?: string | null, defaultShippingAddress?: boolean | null, defaultBillingAddress?: boolean | null, country: { id: string, code: string, name: string } }> | null } }; - -export type ReindexMutationVariables = Exact<{ [key: string]: never; }>; - + input: AddNoteToCustomerInput; +}>; + +export type AddNoteToCustomerMutation = { + addNoteToCustomer: { + id: string; + title?: string | null; + firstName: string; + lastName: string; + phoneNumber?: string | null; + emailAddress: string; + user?: { id: string; identifier: string; verified: boolean; lastLogin?: any | null } | null; + addresses?: Array<{ + id: string; + fullName?: string | null; + company?: string | null; + streetLine1: string; + streetLine2?: string | null; + city?: string | null; + province?: string | null; + postalCode?: string | null; + phoneNumber?: string | null; + defaultShippingAddress?: boolean | null; + defaultBillingAddress?: boolean | null; + country: { id: string; code: string; name: string }; + }> | null; + }; +}; + +export type ReindexMutationVariables = Exact<{ [key: string]: never }>; export type ReindexMutation = { reindex: { id: string } }; export type SearchProductsAdminQueryVariables = Exact<{ - input: SearchInput; + input: SearchInput; }>; - -export type SearchProductsAdminQuery = { search: { totalItems: number, items: Array<{ enabled: boolean, productId: string, productName: string, slug: string, description: string, productVariantId: string, productVariantName: string, sku: string }> } }; +export type SearchProductsAdminQuery = { + search: { + totalItems: number; + items: Array<{ + enabled: boolean; + productId: string; + productName: string; + slug: string; + description: string; + productVariantId: string; + productVariantName: string; + sku: string; + }>; + }; +}; export type SearchFacetValuesQueryVariables = Exact<{ - input: SearchInput; + input: SearchInput; }>; - -export type SearchFacetValuesQuery = { search: { totalItems: number, facetValues: Array<{ count: number, facetValue: { id: string, name: string } }> } }; +export type SearchFacetValuesQuery = { + search: { + totalItems: number; + facetValues: Array<{ count: number; facetValue: { id: string; name: string } }>; + }; +}; export type SearchCollectionsQueryVariables = Exact<{ - input: SearchInput; + input: SearchInput; }>; - -export type SearchCollectionsQuery = { search: { totalItems: number, collections: Array<{ count: number, collection: { id: string, name: string } }> } }; +export type SearchCollectionsQuery = { + search: { + totalItems: number; + collections: Array<{ count: number; collection: { id: string; name: string } }>; + }; +}; export type SearchGetAssetsQueryVariables = Exact<{ - input: SearchInput; -}>; - - -export type SearchGetAssetsQuery = { search: { totalItems: number, items: Array<{ productId: string, productName: string, productVariantName: string, productAsset?: { id: string, preview: string, focalPoint?: { x: number, y: number } | null } | null, productVariantAsset?: { id: string, preview: string, focalPoint?: { x: number, y: number } | null } | null }> } }; + input: SearchInput; +}>; + +export type SearchGetAssetsQuery = { + search: { + totalItems: number; + items: Array<{ + productId: string; + productName: string; + productVariantName: string; + productAsset?: { + id: string; + preview: string; + focalPoint?: { x: number; y: number } | null; + } | null; + productVariantAsset?: { + id: string; + preview: string; + focalPoint?: { x: number; y: number } | null; + } | null; + }>; + }; +}; export type SearchGetPricesQueryVariables = Exact<{ - input: SearchInput; -}>; - - -export type SearchGetPricesQuery = { search: { items: Array<{ price: { min: number, max: number } | { value: number }, priceWithTax: { min: number, max: number } | { value: number } }> } }; - -export type CreateDraftOrderMutationVariables = Exact<{ [key: string]: never; }>; - - -export type CreateDraftOrderMutation = { createDraftOrder: { id: string, createdAt: any, updatedAt: any, code: string, state: string, active: boolean, subTotal: number, subTotalWithTax: number, total: number, totalWithTax: number, totalQuantity: number, currencyCode: CurrencyCode, shipping: number, shippingWithTax: number, customer?: { id: string, firstName: string, lastName: string } | null, lines: Array<{ id: string, unitPrice: number, unitPriceWithTax: number, quantity: number, linePriceWithTax: number, featuredAsset?: { preview: string } | null, productVariant: { id: string, name: string, sku: string }, items: Array<{ id: string, cancelled: boolean, unitPrice: number, unitPriceWithTax: number, taxRate: number, fulfillment?: { id: string } | null }> }>, surcharges: Array<{ id: string, description: string, sku?: string | null, price: number, priceWithTax: number }>, shippingLines: Array<{ priceWithTax: number, shippingMethod: { id: string, code: string, name: string, description: string } }>, shippingAddress?: { fullName?: string | null, company?: string | null, streetLine1?: string | null, streetLine2?: string | null, city?: string | null, province?: string | null, postalCode?: string | null, country?: string | null, phoneNumber?: string | null } | null, payments?: Array<{ id: string, transactionId?: string | null, amount: number, method: string, state: string, nextStates: Array, metadata?: any | null, refunds: Array<{ id: string, total: number, reason?: string | null }> }> | null } }; + input: SearchInput; +}>; + +export type SearchGetPricesQuery = { + search: { + items: Array<{ + price: { min: number; max: number } | { value: number }; + priceWithTax: { min: number; max: number } | { value: number }; + }>; + }; +}; + +export type CreateDraftOrderMutationVariables = Exact<{ [key: string]: never }>; + +export type CreateDraftOrderMutation = { + createDraftOrder: { + id: string; + createdAt: any; + updatedAt: any; + code: string; + state: string; + active: boolean; + subTotal: number; + subTotalWithTax: number; + total: number; + totalWithTax: number; + totalQuantity: number; + currencyCode: CurrencyCode; + shipping: number; + shippingWithTax: number; + customer?: { id: string; firstName: string; lastName: string } | null; + lines: Array<{ + id: string; + unitPrice: number; + unitPriceWithTax: number; + quantity: number; + linePriceWithTax: number; + featuredAsset?: { preview: string } | null; + productVariant: { id: string; name: string; sku: string }; + items: Array<{ + id: string; + cancelled: boolean; + unitPrice: number; + unitPriceWithTax: number; + taxRate: number; + fulfillment?: { id: string } | null; + }>; + }>; + surcharges: Array<{ + id: string; + description: string; + sku?: string | null; + price: number; + priceWithTax: number; + }>; + shippingLines: Array<{ + priceWithTax: number; + shippingMethod: { id: string; code: string; name: string; description: string }; + }>; + shippingAddress?: { + fullName?: string | null; + company?: string | null; + streetLine1?: string | null; + streetLine2?: string | null; + city?: string | null; + province?: string | null; + postalCode?: string | null; + country?: string | null; + phoneNumber?: string | null; + } | null; + payments?: Array<{ + id: string; + transactionId?: string | null; + amount: number; + method: string; + state: string; + nextStates: Array; + metadata?: any | null; + refunds: Array<{ id: string; total: number; reason?: string | null }>; + }> | null; + }; +}; export type AddItemToDraftOrderMutationVariables = Exact<{ - orderId: Scalars['ID']; - input: AddItemToDraftOrderInput; -}>; - - -export type AddItemToDraftOrderMutation = { addItemToDraftOrder: { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } | { id: string, createdAt: any, updatedAt: any, code: string, state: string, active: boolean, subTotal: number, subTotalWithTax: number, total: number, totalWithTax: number, totalQuantity: number, currencyCode: CurrencyCode, shipping: number, shippingWithTax: number, customer?: { id: string, firstName: string, lastName: string } | null, lines: Array<{ id: string, unitPrice: number, unitPriceWithTax: number, quantity: number, linePriceWithTax: number, featuredAsset?: { preview: string } | null, productVariant: { id: string, name: string, sku: string }, items: Array<{ id: string, cancelled: boolean, unitPrice: number, unitPriceWithTax: number, taxRate: number, fulfillment?: { id: string } | null }> }>, surcharges: Array<{ id: string, description: string, sku?: string | null, price: number, priceWithTax: number }>, shippingLines: Array<{ priceWithTax: number, shippingMethod: { id: string, code: string, name: string, description: string } }>, shippingAddress?: { fullName?: string | null, company?: string | null, streetLine1?: string | null, streetLine2?: string | null, city?: string | null, province?: string | null, postalCode?: string | null, country?: string | null, phoneNumber?: string | null } | null, payments?: Array<{ id: string, transactionId?: string | null, amount: number, method: string, state: string, nextStates: Array, metadata?: any | null, refunds: Array<{ id: string, total: number, reason?: string | null }> }> | null } | { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } }; + orderId: Scalars['ID']; + input: AddItemToDraftOrderInput; +}>; + +export type AddItemToDraftOrderMutation = { + addItemToDraftOrder: + | { errorCode: ErrorCode; message: string } + | { errorCode: ErrorCode; message: string } + | { + id: string; + createdAt: any; + updatedAt: any; + code: string; + state: string; + active: boolean; + subTotal: number; + subTotalWithTax: number; + total: number; + totalWithTax: number; + totalQuantity: number; + currencyCode: CurrencyCode; + shipping: number; + shippingWithTax: number; + customer?: { id: string; firstName: string; lastName: string } | null; + lines: Array<{ + id: string; + unitPrice: number; + unitPriceWithTax: number; + quantity: number; + linePriceWithTax: number; + featuredAsset?: { preview: string } | null; + productVariant: { id: string; name: string; sku: string }; + items: Array<{ + id: string; + cancelled: boolean; + unitPrice: number; + unitPriceWithTax: number; + taxRate: number; + fulfillment?: { id: string } | null; + }>; + }>; + surcharges: Array<{ + id: string; + description: string; + sku?: string | null; + price: number; + priceWithTax: number; + }>; + shippingLines: Array<{ + priceWithTax: number; + shippingMethod: { id: string; code: string; name: string; description: string }; + }>; + shippingAddress?: { + fullName?: string | null; + company?: string | null; + streetLine1?: string | null; + streetLine2?: string | null; + city?: string | null; + province?: string | null; + postalCode?: string | null; + country?: string | null; + phoneNumber?: string | null; + } | null; + payments?: Array<{ + id: string; + transactionId?: string | null; + amount: number; + method: string; + state: string; + nextStates: Array; + metadata?: any | null; + refunds: Array<{ id: string; total: number; reason?: string | null }>; + }> | null; + } + | { errorCode: ErrorCode; message: string } + | { errorCode: ErrorCode; message: string }; +}; export type AdjustDraftOrderLineMutationVariables = Exact<{ - orderId: Scalars['ID']; - input: AdjustDraftOrderLineInput; -}>; - - -export type AdjustDraftOrderLineMutation = { adjustDraftOrderLine: { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } | { id: string, createdAt: any, updatedAt: any, code: string, state: string, active: boolean, subTotal: number, subTotalWithTax: number, total: number, totalWithTax: number, totalQuantity: number, currencyCode: CurrencyCode, shipping: number, shippingWithTax: number, customer?: { id: string, firstName: string, lastName: string } | null, lines: Array<{ id: string, unitPrice: number, unitPriceWithTax: number, quantity: number, linePriceWithTax: number, featuredAsset?: { preview: string } | null, productVariant: { id: string, name: string, sku: string }, items: Array<{ id: string, cancelled: boolean, unitPrice: number, unitPriceWithTax: number, taxRate: number, fulfillment?: { id: string } | null }> }>, surcharges: Array<{ id: string, description: string, sku?: string | null, price: number, priceWithTax: number }>, shippingLines: Array<{ priceWithTax: number, shippingMethod: { id: string, code: string, name: string, description: string } }>, shippingAddress?: { fullName?: string | null, company?: string | null, streetLine1?: string | null, streetLine2?: string | null, city?: string | null, province?: string | null, postalCode?: string | null, country?: string | null, phoneNumber?: string | null } | null, payments?: Array<{ id: string, transactionId?: string | null, amount: number, method: string, state: string, nextStates: Array, metadata?: any | null, refunds: Array<{ id: string, total: number, reason?: string | null }> }> | null } | { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } }; + orderId: Scalars['ID']; + input: AdjustDraftOrderLineInput; +}>; + +export type AdjustDraftOrderLineMutation = { + adjustDraftOrderLine: + | { errorCode: ErrorCode; message: string } + | { errorCode: ErrorCode; message: string } + | { + id: string; + createdAt: any; + updatedAt: any; + code: string; + state: string; + active: boolean; + subTotal: number; + subTotalWithTax: number; + total: number; + totalWithTax: number; + totalQuantity: number; + currencyCode: CurrencyCode; + shipping: number; + shippingWithTax: number; + customer?: { id: string; firstName: string; lastName: string } | null; + lines: Array<{ + id: string; + unitPrice: number; + unitPriceWithTax: number; + quantity: number; + linePriceWithTax: number; + featuredAsset?: { preview: string } | null; + productVariant: { id: string; name: string; sku: string }; + items: Array<{ + id: string; + cancelled: boolean; + unitPrice: number; + unitPriceWithTax: number; + taxRate: number; + fulfillment?: { id: string } | null; + }>; + }>; + surcharges: Array<{ + id: string; + description: string; + sku?: string | null; + price: number; + priceWithTax: number; + }>; + shippingLines: Array<{ + priceWithTax: number; + shippingMethod: { id: string; code: string; name: string; description: string }; + }>; + shippingAddress?: { + fullName?: string | null; + company?: string | null; + streetLine1?: string | null; + streetLine2?: string | null; + city?: string | null; + province?: string | null; + postalCode?: string | null; + country?: string | null; + phoneNumber?: string | null; + } | null; + payments?: Array<{ + id: string; + transactionId?: string | null; + amount: number; + method: string; + state: string; + nextStates: Array; + metadata?: any | null; + refunds: Array<{ id: string; total: number; reason?: string | null }>; + }> | null; + } + | { errorCode: ErrorCode; message: string } + | { errorCode: ErrorCode; message: string }; +}; export type RemoveDraftOrderLineMutationVariables = Exact<{ - orderId: Scalars['ID']; - orderLineId: Scalars['ID']; -}>; - - -export type RemoveDraftOrderLineMutation = { removeDraftOrderLine: { id: string, createdAt: any, updatedAt: any, code: string, state: string, active: boolean, subTotal: number, subTotalWithTax: number, total: number, totalWithTax: number, totalQuantity: number, currencyCode: CurrencyCode, shipping: number, shippingWithTax: number, customer?: { id: string, firstName: string, lastName: string } | null, lines: Array<{ id: string, unitPrice: number, unitPriceWithTax: number, quantity: number, linePriceWithTax: number, featuredAsset?: { preview: string } | null, productVariant: { id: string, name: string, sku: string }, items: Array<{ id: string, cancelled: boolean, unitPrice: number, unitPriceWithTax: number, taxRate: number, fulfillment?: { id: string } | null }> }>, surcharges: Array<{ id: string, description: string, sku?: string | null, price: number, priceWithTax: number }>, shippingLines: Array<{ priceWithTax: number, shippingMethod: { id: string, code: string, name: string, description: string } }>, shippingAddress?: { fullName?: string | null, company?: string | null, streetLine1?: string | null, streetLine2?: string | null, city?: string | null, province?: string | null, postalCode?: string | null, country?: string | null, phoneNumber?: string | null } | null, payments?: Array<{ id: string, transactionId?: string | null, amount: number, method: string, state: string, nextStates: Array, metadata?: any | null, refunds: Array<{ id: string, total: number, reason?: string | null }> }> | null } | { errorCode: ErrorCode, message: string } }; + orderId: Scalars['ID']; + orderLineId: Scalars['ID']; +}>; + +export type RemoveDraftOrderLineMutation = { + removeDraftOrderLine: + | { + id: string; + createdAt: any; + updatedAt: any; + code: string; + state: string; + active: boolean; + subTotal: number; + subTotalWithTax: number; + total: number; + totalWithTax: number; + totalQuantity: number; + currencyCode: CurrencyCode; + shipping: number; + shippingWithTax: number; + customer?: { id: string; firstName: string; lastName: string } | null; + lines: Array<{ + id: string; + unitPrice: number; + unitPriceWithTax: number; + quantity: number; + linePriceWithTax: number; + featuredAsset?: { preview: string } | null; + productVariant: { id: string; name: string; sku: string }; + items: Array<{ + id: string; + cancelled: boolean; + unitPrice: number; + unitPriceWithTax: number; + taxRate: number; + fulfillment?: { id: string } | null; + }>; + }>; + surcharges: Array<{ + id: string; + description: string; + sku?: string | null; + price: number; + priceWithTax: number; + }>; + shippingLines: Array<{ + priceWithTax: number; + shippingMethod: { id: string; code: string; name: string; description: string }; + }>; + shippingAddress?: { + fullName?: string | null; + company?: string | null; + streetLine1?: string | null; + streetLine2?: string | null; + city?: string | null; + province?: string | null; + postalCode?: string | null; + country?: string | null; + phoneNumber?: string | null; + } | null; + payments?: Array<{ + id: string; + transactionId?: string | null; + amount: number; + method: string; + state: string; + nextStates: Array; + metadata?: any | null; + refunds: Array<{ id: string; total: number; reason?: string | null }>; + }> | null; + } + | { errorCode: ErrorCode; message: string }; +}; export type SetCustomerForDraftOrderMutationVariables = Exact<{ - orderId: Scalars['ID']; - customerId?: InputMaybe; - input?: InputMaybe; -}>; - - -export type SetCustomerForDraftOrderMutation = { setCustomerForDraftOrder: { errorCode: ErrorCode, message: string } | { id: string, createdAt: any, updatedAt: any, code: string, state: string, active: boolean, subTotal: number, subTotalWithTax: number, total: number, totalWithTax: number, totalQuantity: number, currencyCode: CurrencyCode, shipping: number, shippingWithTax: number, customer?: { id: string, firstName: string, lastName: string } | null, lines: Array<{ id: string, unitPrice: number, unitPriceWithTax: number, quantity: number, linePriceWithTax: number, featuredAsset?: { preview: string } | null, productVariant: { id: string, name: string, sku: string }, items: Array<{ id: string, cancelled: boolean, unitPrice: number, unitPriceWithTax: number, taxRate: number, fulfillment?: { id: string } | null }> }>, surcharges: Array<{ id: string, description: string, sku?: string | null, price: number, priceWithTax: number }>, shippingLines: Array<{ priceWithTax: number, shippingMethod: { id: string, code: string, name: string, description: string } }>, shippingAddress?: { fullName?: string | null, company?: string | null, streetLine1?: string | null, streetLine2?: string | null, city?: string | null, province?: string | null, postalCode?: string | null, country?: string | null, phoneNumber?: string | null } | null, payments?: Array<{ id: string, transactionId?: string | null, amount: number, method: string, state: string, nextStates: Array, metadata?: any | null, refunds: Array<{ id: string, total: number, reason?: string | null }> }> | null } }; + orderId: Scalars['ID']; + customerId?: InputMaybe; + input?: InputMaybe; +}>; + +export type SetCustomerForDraftOrderMutation = { + setCustomerForDraftOrder: + | { errorCode: ErrorCode; message: string } + | { + id: string; + createdAt: any; + updatedAt: any; + code: string; + state: string; + active: boolean; + subTotal: number; + subTotalWithTax: number; + total: number; + totalWithTax: number; + totalQuantity: number; + currencyCode: CurrencyCode; + shipping: number; + shippingWithTax: number; + customer?: { id: string; firstName: string; lastName: string } | null; + lines: Array<{ + id: string; + unitPrice: number; + unitPriceWithTax: number; + quantity: number; + linePriceWithTax: number; + featuredAsset?: { preview: string } | null; + productVariant: { id: string; name: string; sku: string }; + items: Array<{ + id: string; + cancelled: boolean; + unitPrice: number; + unitPriceWithTax: number; + taxRate: number; + fulfillment?: { id: string } | null; + }>; + }>; + surcharges: Array<{ + id: string; + description: string; + sku?: string | null; + price: number; + priceWithTax: number; + }>; + shippingLines: Array<{ + priceWithTax: number; + shippingMethod: { id: string; code: string; name: string; description: string }; + }>; + shippingAddress?: { + fullName?: string | null; + company?: string | null; + streetLine1?: string | null; + streetLine2?: string | null; + city?: string | null; + province?: string | null; + postalCode?: string | null; + country?: string | null; + phoneNumber?: string | null; + } | null; + payments?: Array<{ + id: string; + transactionId?: string | null; + amount: number; + method: string; + state: string; + nextStates: Array; + metadata?: any | null; + refunds: Array<{ id: string; total: number; reason?: string | null }>; + }> | null; + }; +}; export type SetDraftOrderShippingAddressMutationVariables = Exact<{ - orderId: Scalars['ID']; - input: CreateAddressInput; -}>; - - -export type SetDraftOrderShippingAddressMutation = { setDraftOrderShippingAddress: { id: string, createdAt: any, updatedAt: any, code: string, state: string, active: boolean, subTotal: number, subTotalWithTax: number, total: number, totalWithTax: number, totalQuantity: number, currencyCode: CurrencyCode, shipping: number, shippingWithTax: number, customer?: { id: string, firstName: string, lastName: string } | null, lines: Array<{ id: string, unitPrice: number, unitPriceWithTax: number, quantity: number, linePriceWithTax: number, featuredAsset?: { preview: string } | null, productVariant: { id: string, name: string, sku: string }, items: Array<{ id: string, cancelled: boolean, unitPrice: number, unitPriceWithTax: number, taxRate: number, fulfillment?: { id: string } | null }> }>, surcharges: Array<{ id: string, description: string, sku?: string | null, price: number, priceWithTax: number }>, shippingLines: Array<{ priceWithTax: number, shippingMethod: { id: string, code: string, name: string, description: string } }>, shippingAddress?: { fullName?: string | null, company?: string | null, streetLine1?: string | null, streetLine2?: string | null, city?: string | null, province?: string | null, postalCode?: string | null, country?: string | null, phoneNumber?: string | null } | null, payments?: Array<{ id: string, transactionId?: string | null, amount: number, method: string, state: string, nextStates: Array, metadata?: any | null, refunds: Array<{ id: string, total: number, reason?: string | null }> }> | null } }; + orderId: Scalars['ID']; + input: CreateAddressInput; +}>; + +export type SetDraftOrderShippingAddressMutation = { + setDraftOrderShippingAddress: { + id: string; + createdAt: any; + updatedAt: any; + code: string; + state: string; + active: boolean; + subTotal: number; + subTotalWithTax: number; + total: number; + totalWithTax: number; + totalQuantity: number; + currencyCode: CurrencyCode; + shipping: number; + shippingWithTax: number; + customer?: { id: string; firstName: string; lastName: string } | null; + lines: Array<{ + id: string; + unitPrice: number; + unitPriceWithTax: number; + quantity: number; + linePriceWithTax: number; + featuredAsset?: { preview: string } | null; + productVariant: { id: string; name: string; sku: string }; + items: Array<{ + id: string; + cancelled: boolean; + unitPrice: number; + unitPriceWithTax: number; + taxRate: number; + fulfillment?: { id: string } | null; + }>; + }>; + surcharges: Array<{ + id: string; + description: string; + sku?: string | null; + price: number; + priceWithTax: number; + }>; + shippingLines: Array<{ + priceWithTax: number; + shippingMethod: { id: string; code: string; name: string; description: string }; + }>; + shippingAddress?: { + fullName?: string | null; + company?: string | null; + streetLine1?: string | null; + streetLine2?: string | null; + city?: string | null; + province?: string | null; + postalCode?: string | null; + country?: string | null; + phoneNumber?: string | null; + } | null; + payments?: Array<{ + id: string; + transactionId?: string | null; + amount: number; + method: string; + state: string; + nextStates: Array; + metadata?: any | null; + refunds: Array<{ id: string; total: number; reason?: string | null }>; + }> | null; + }; +}; export type SetDraftOrderBillingAddressMutationVariables = Exact<{ - orderId: Scalars['ID']; - input: CreateAddressInput; -}>; - - -export type SetDraftOrderBillingAddressMutation = { setDraftOrderBillingAddress: { id: string, createdAt: any, updatedAt: any, code: string, state: string, active: boolean, subTotal: number, subTotalWithTax: number, total: number, totalWithTax: number, totalQuantity: number, currencyCode: CurrencyCode, shipping: number, shippingWithTax: number, billingAddress?: { fullName?: string | null, company?: string | null, streetLine1?: string | null, streetLine2?: string | null, city?: string | null, province?: string | null, postalCode?: string | null, country?: string | null, phoneNumber?: string | null } | null, customer?: { id: string, firstName: string, lastName: string } | null, lines: Array<{ id: string, unitPrice: number, unitPriceWithTax: number, quantity: number, linePriceWithTax: number, featuredAsset?: { preview: string } | null, productVariant: { id: string, name: string, sku: string }, items: Array<{ id: string, cancelled: boolean, unitPrice: number, unitPriceWithTax: number, taxRate: number, fulfillment?: { id: string } | null }> }>, surcharges: Array<{ id: string, description: string, sku?: string | null, price: number, priceWithTax: number }>, shippingLines: Array<{ priceWithTax: number, shippingMethod: { id: string, code: string, name: string, description: string } }>, shippingAddress?: { fullName?: string | null, company?: string | null, streetLine1?: string | null, streetLine2?: string | null, city?: string | null, province?: string | null, postalCode?: string | null, country?: string | null, phoneNumber?: string | null } | null, payments?: Array<{ id: string, transactionId?: string | null, amount: number, method: string, state: string, nextStates: Array, metadata?: any | null, refunds: Array<{ id: string, total: number, reason?: string | null }> }> | null } }; + orderId: Scalars['ID']; + input: CreateAddressInput; +}>; + +export type SetDraftOrderBillingAddressMutation = { + setDraftOrderBillingAddress: { + id: string; + createdAt: any; + updatedAt: any; + code: string; + state: string; + active: boolean; + subTotal: number; + subTotalWithTax: number; + total: number; + totalWithTax: number; + totalQuantity: number; + currencyCode: CurrencyCode; + shipping: number; + shippingWithTax: number; + billingAddress?: { + fullName?: string | null; + company?: string | null; + streetLine1?: string | null; + streetLine2?: string | null; + city?: string | null; + province?: string | null; + postalCode?: string | null; + country?: string | null; + phoneNumber?: string | null; + } | null; + customer?: { id: string; firstName: string; lastName: string } | null; + lines: Array<{ + id: string; + unitPrice: number; + unitPriceWithTax: number; + quantity: number; + linePriceWithTax: number; + featuredAsset?: { preview: string } | null; + productVariant: { id: string; name: string; sku: string }; + items: Array<{ + id: string; + cancelled: boolean; + unitPrice: number; + unitPriceWithTax: number; + taxRate: number; + fulfillment?: { id: string } | null; + }>; + }>; + surcharges: Array<{ + id: string; + description: string; + sku?: string | null; + price: number; + priceWithTax: number; + }>; + shippingLines: Array<{ + priceWithTax: number; + shippingMethod: { id: string; code: string; name: string; description: string }; + }>; + shippingAddress?: { + fullName?: string | null; + company?: string | null; + streetLine1?: string | null; + streetLine2?: string | null; + city?: string | null; + province?: string | null; + postalCode?: string | null; + country?: string | null; + phoneNumber?: string | null; + } | null; + payments?: Array<{ + id: string; + transactionId?: string | null; + amount: number; + method: string; + state: string; + nextStates: Array; + metadata?: any | null; + refunds: Array<{ id: string; total: number; reason?: string | null }>; + }> | null; + }; +}; export type ApplyCouponCodeToDraftOrderMutationVariables = Exact<{ - orderId: Scalars['ID']; - couponCode: Scalars['String']; -}>; - - -export type ApplyCouponCodeToDraftOrderMutation = { applyCouponCodeToDraftOrder: { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } | { couponCodes: Array, id: string, createdAt: any, updatedAt: any, code: string, state: string, active: boolean, subTotal: number, subTotalWithTax: number, total: number, totalWithTax: number, totalQuantity: number, currencyCode: CurrencyCode, shipping: number, shippingWithTax: number, customer?: { id: string, firstName: string, lastName: string } | null, lines: Array<{ id: string, unitPrice: number, unitPriceWithTax: number, quantity: number, linePriceWithTax: number, featuredAsset?: { preview: string } | null, productVariant: { id: string, name: string, sku: string }, items: Array<{ id: string, cancelled: boolean, unitPrice: number, unitPriceWithTax: number, taxRate: number, fulfillment?: { id: string } | null }> }>, surcharges: Array<{ id: string, description: string, sku?: string | null, price: number, priceWithTax: number }>, shippingLines: Array<{ priceWithTax: number, shippingMethod: { id: string, code: string, name: string, description: string } }>, shippingAddress?: { fullName?: string | null, company?: string | null, streetLine1?: string | null, streetLine2?: string | null, city?: string | null, province?: string | null, postalCode?: string | null, country?: string | null, phoneNumber?: string | null } | null, payments?: Array<{ id: string, transactionId?: string | null, amount: number, method: string, state: string, nextStates: Array, metadata?: any | null, refunds: Array<{ id: string, total: number, reason?: string | null }> }> | null } }; + orderId: Scalars['ID']; + couponCode: Scalars['String']; +}>; + +export type ApplyCouponCodeToDraftOrderMutation = { + applyCouponCodeToDraftOrder: + | { errorCode: ErrorCode; message: string } + | { errorCode: ErrorCode; message: string } + | { errorCode: ErrorCode; message: string } + | { + couponCodes: Array; + id: string; + createdAt: any; + updatedAt: any; + code: string; + state: string; + active: boolean; + subTotal: number; + subTotalWithTax: number; + total: number; + totalWithTax: number; + totalQuantity: number; + currencyCode: CurrencyCode; + shipping: number; + shippingWithTax: number; + customer?: { id: string; firstName: string; lastName: string } | null; + lines: Array<{ + id: string; + unitPrice: number; + unitPriceWithTax: number; + quantity: number; + linePriceWithTax: number; + featuredAsset?: { preview: string } | null; + productVariant: { id: string; name: string; sku: string }; + items: Array<{ + id: string; + cancelled: boolean; + unitPrice: number; + unitPriceWithTax: number; + taxRate: number; + fulfillment?: { id: string } | null; + }>; + }>; + surcharges: Array<{ + id: string; + description: string; + sku?: string | null; + price: number; + priceWithTax: number; + }>; + shippingLines: Array<{ + priceWithTax: number; + shippingMethod: { id: string; code: string; name: string; description: string }; + }>; + shippingAddress?: { + fullName?: string | null; + company?: string | null; + streetLine1?: string | null; + streetLine2?: string | null; + city?: string | null; + province?: string | null; + postalCode?: string | null; + country?: string | null; + phoneNumber?: string | null; + } | null; + payments?: Array<{ + id: string; + transactionId?: string | null; + amount: number; + method: string; + state: string; + nextStates: Array; + metadata?: any | null; + refunds: Array<{ id: string; total: number; reason?: string | null }>; + }> | null; + }; +}; export type RemoveCouponCodeFromDraftOrderMutationVariables = Exact<{ - orderId: Scalars['ID']; - couponCode: Scalars['String']; -}>; - - -export type RemoveCouponCodeFromDraftOrderMutation = { removeCouponCodeFromDraftOrder?: { couponCodes: Array, id: string, createdAt: any, updatedAt: any, code: string, state: string, active: boolean, subTotal: number, subTotalWithTax: number, total: number, totalWithTax: number, totalQuantity: number, currencyCode: CurrencyCode, shipping: number, shippingWithTax: number, customer?: { id: string, firstName: string, lastName: string } | null, lines: Array<{ id: string, unitPrice: number, unitPriceWithTax: number, quantity: number, linePriceWithTax: number, featuredAsset?: { preview: string } | null, productVariant: { id: string, name: string, sku: string }, items: Array<{ id: string, cancelled: boolean, unitPrice: number, unitPriceWithTax: number, taxRate: number, fulfillment?: { id: string } | null }> }>, surcharges: Array<{ id: string, description: string, sku?: string | null, price: number, priceWithTax: number }>, shippingLines: Array<{ priceWithTax: number, shippingMethod: { id: string, code: string, name: string, description: string } }>, shippingAddress?: { fullName?: string | null, company?: string | null, streetLine1?: string | null, streetLine2?: string | null, city?: string | null, province?: string | null, postalCode?: string | null, country?: string | null, phoneNumber?: string | null } | null, payments?: Array<{ id: string, transactionId?: string | null, amount: number, method: string, state: string, nextStates: Array, metadata?: any | null, refunds: Array<{ id: string, total: number, reason?: string | null }> }> | null } | null }; + orderId: Scalars['ID']; + couponCode: Scalars['String']; +}>; + +export type RemoveCouponCodeFromDraftOrderMutation = { + removeCouponCodeFromDraftOrder?: { + couponCodes: Array; + id: string; + createdAt: any; + updatedAt: any; + code: string; + state: string; + active: boolean; + subTotal: number; + subTotalWithTax: number; + total: number; + totalWithTax: number; + totalQuantity: number; + currencyCode: CurrencyCode; + shipping: number; + shippingWithTax: number; + customer?: { id: string; firstName: string; lastName: string } | null; + lines: Array<{ + id: string; + unitPrice: number; + unitPriceWithTax: number; + quantity: number; + linePriceWithTax: number; + featuredAsset?: { preview: string } | null; + productVariant: { id: string; name: string; sku: string }; + items: Array<{ + id: string; + cancelled: boolean; + unitPrice: number; + unitPriceWithTax: number; + taxRate: number; + fulfillment?: { id: string } | null; + }>; + }>; + surcharges: Array<{ + id: string; + description: string; + sku?: string | null; + price: number; + priceWithTax: number; + }>; + shippingLines: Array<{ + priceWithTax: number; + shippingMethod: { id: string; code: string; name: string; description: string }; + }>; + shippingAddress?: { + fullName?: string | null; + company?: string | null; + streetLine1?: string | null; + streetLine2?: string | null; + city?: string | null; + province?: string | null; + postalCode?: string | null; + country?: string | null; + phoneNumber?: string | null; + } | null; + payments?: Array<{ + id: string; + transactionId?: string | null; + amount: number; + method: string; + state: string; + nextStates: Array; + metadata?: any | null; + refunds: Array<{ id: string; total: number; reason?: string | null }>; + }> | null; + } | null; +}; export type DraftOrderEligibleShippingMethodsQueryVariables = Exact<{ - orderId: Scalars['ID']; + orderId: Scalars['ID']; }>; - -export type DraftOrderEligibleShippingMethodsQuery = { eligibleShippingMethodsForDraftOrder: Array<{ id: string, name: string, code: string, description: string, price: number, priceWithTax: number, metadata?: any | null }> }; +export type DraftOrderEligibleShippingMethodsQuery = { + eligibleShippingMethodsForDraftOrder: Array<{ + id: string; + name: string; + code: string; + description: string; + price: number; + priceWithTax: number; + metadata?: any | null; + }>; +}; export type SetDraftOrderShippingMethodMutationVariables = Exact<{ - orderId: Scalars['ID']; - shippingMethodId: Scalars['ID']; -}>; - - -export type SetDraftOrderShippingMethodMutation = { setDraftOrderShippingMethod: { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } | { id: string, createdAt: any, updatedAt: any, code: string, state: string, active: boolean, subTotal: number, subTotalWithTax: number, total: number, totalWithTax: number, totalQuantity: number, currencyCode: CurrencyCode, shipping: number, shippingWithTax: number, customer?: { id: string, firstName: string, lastName: string } | null, lines: Array<{ id: string, unitPrice: number, unitPriceWithTax: number, quantity: number, linePriceWithTax: number, featuredAsset?: { preview: string } | null, productVariant: { id: string, name: string, sku: string }, items: Array<{ id: string, cancelled: boolean, unitPrice: number, unitPriceWithTax: number, taxRate: number, fulfillment?: { id: string } | null }> }>, surcharges: Array<{ id: string, description: string, sku?: string | null, price: number, priceWithTax: number }>, shippingLines: Array<{ priceWithTax: number, shippingMethod: { id: string, code: string, name: string, description: string } }>, shippingAddress?: { fullName?: string | null, company?: string | null, streetLine1?: string | null, streetLine2?: string | null, city?: string | null, province?: string | null, postalCode?: string | null, country?: string | null, phoneNumber?: string | null } | null, payments?: Array<{ id: string, transactionId?: string | null, amount: number, method: string, state: string, nextStates: Array, metadata?: any | null, refunds: Array<{ id: string, total: number, reason?: string | null }> }> | null } | { errorCode: ErrorCode, message: string } }; - -export type IdTest1QueryVariables = Exact<{ [key: string]: never; }>; - + orderId: Scalars['ID']; + shippingMethodId: Scalars['ID']; +}>; + +export type SetDraftOrderShippingMethodMutation = { + setDraftOrderShippingMethod: + | { errorCode: ErrorCode; message: string } + | { errorCode: ErrorCode; message: string } + | { + id: string; + createdAt: any; + updatedAt: any; + code: string; + state: string; + active: boolean; + subTotal: number; + subTotalWithTax: number; + total: number; + totalWithTax: number; + totalQuantity: number; + currencyCode: CurrencyCode; + shipping: number; + shippingWithTax: number; + customer?: { id: string; firstName: string; lastName: string } | null; + lines: Array<{ + id: string; + unitPrice: number; + unitPriceWithTax: number; + quantity: number; + linePriceWithTax: number; + featuredAsset?: { preview: string } | null; + productVariant: { id: string; name: string; sku: string }; + items: Array<{ + id: string; + cancelled: boolean; + unitPrice: number; + unitPriceWithTax: number; + taxRate: number; + fulfillment?: { id: string } | null; + }>; + }>; + surcharges: Array<{ + id: string; + description: string; + sku?: string | null; + price: number; + priceWithTax: number; + }>; + shippingLines: Array<{ + priceWithTax: number; + shippingMethod: { id: string; code: string; name: string; description: string }; + }>; + shippingAddress?: { + fullName?: string | null; + company?: string | null; + streetLine1?: string | null; + streetLine2?: string | null; + city?: string | null; + province?: string | null; + postalCode?: string | null; + country?: string | null; + phoneNumber?: string | null; + } | null; + payments?: Array<{ + id: string; + transactionId?: string | null; + amount: number; + method: string; + state: string; + nextStates: Array; + metadata?: any | null; + refunds: Array<{ id: string; total: number; reason?: string | null }>; + }> | null; + } + | { errorCode: ErrorCode; message: string }; +}; + +export type IdTest1QueryVariables = Exact<{ [key: string]: never }>; export type IdTest1Query = { products: { items: Array<{ id: string }> } }; -export type IdTest2QueryVariables = Exact<{ [key: string]: never; }>; - +export type IdTest2QueryVariables = Exact<{ [key: string]: never }>; -export type IdTest2Query = { products: { items: Array<{ id: string, variants: Array<{ id: string, options: Array<{ id: string, name: string }> }> }> } }; - -export type IdTest3QueryVariables = Exact<{ [key: string]: never; }>; +export type IdTest2Query = { + products: { + items: Array<{ + id: string; + variants: Array<{ id: string; options: Array<{ id: string; name: string }> }>; + }>; + }; +}; +export type IdTest3QueryVariables = Exact<{ [key: string]: never }>; export type IdTest3Query = { product?: { id: string } | null }; -export type IdTest4MutationVariables = Exact<{ [key: string]: never; }>; - +export type IdTest4MutationVariables = Exact<{ [key: string]: never }>; -export type IdTest4Mutation = { updateProduct: { id: string, featuredAsset?: { id: string } | null } }; +export type IdTest4Mutation = { updateProduct: { id: string; featuredAsset?: { id: string } | null } }; -export type IdTest5MutationVariables = Exact<{ [key: string]: never; }>; +export type IdTest5MutationVariables = Exact<{ [key: string]: never }>; - -export type IdTest5Mutation = { updateProduct: { id: string, name: string } }; +export type IdTest5Mutation = { updateProduct: { id: string; name: string } }; export type IdTest6QueryVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; - export type IdTest6Query = { product?: { id: string } | null }; export type IdTest7MutationVariables = Exact<{ - input: UpdateProductInput; + input: UpdateProductInput; }>; - -export type IdTest7Mutation = { updateProduct: { id: string, featuredAsset?: { id: string } | null } }; +export type IdTest7Mutation = { updateProduct: { id: string; featuredAsset?: { id: string } | null } }; export type IdTest8MutationVariables = Exact<{ - input: UpdateProductInput; + input: UpdateProductInput; }>; +export type IdTest8Mutation = { updateProduct: { id: string; name: string } }; -export type IdTest8Mutation = { updateProduct: { id: string, name: string } }; - -export type IdTest9QueryVariables = Exact<{ [key: string]: never; }>; - +export type IdTest9QueryVariables = Exact<{ [key: string]: never }>; -export type IdTest9Query = { products: { items: Array<{ id: string, featuredAsset?: { id: string } | null }> } }; - -export type ProdFragmentFragment = { id: string, featuredAsset?: { id: string } | null }; - -export type IdTest10QueryVariables = Exact<{ [key: string]: never; }>; +export type IdTest9Query = { + products: { items: Array<{ id: string; featuredAsset?: { id: string } | null }> }; +}; +export type ProdFragmentFragment = { id: string; featuredAsset?: { id: string } | null }; -export type IdTest10Query = { products: { items: Array<{ id: string, featuredAsset?: { id: string } | null }> } }; +export type IdTest10QueryVariables = Exact<{ [key: string]: never }>; -export type ProdFragment1Fragment = { id: string, featuredAsset?: { id: string } | null }; +export type IdTest10Query = { + products: { items: Array<{ id: string; featuredAsset?: { id: string } | null }> }; +}; -export type ProdFragment2Fragment = { id: string, featuredAsset?: { id: string } | null }; +export type ProdFragment1Fragment = { id: string; featuredAsset?: { id: string } | null }; -export type IdTest11QueryVariables = Exact<{ [key: string]: never; }>; +export type ProdFragment2Fragment = { id: string; featuredAsset?: { id: string } | null }; +export type IdTest11QueryVariables = Exact<{ [key: string]: never }>; -export type IdTest11Query = { products: { items: Array<{ id: string, featuredAsset?: { id: string } | null }> } }; +export type IdTest11Query = { + products: { items: Array<{ id: string; featuredAsset?: { id: string } | null }> }; +}; -export type ProdFragment1_1Fragment = { id: string, featuredAsset?: { id: string } | null }; +export type ProdFragment1_1Fragment = { id: string; featuredAsset?: { id: string } | null }; -export type ProdFragment2_1Fragment = { id: string, featuredAsset?: { id: string } | null }; +export type ProdFragment2_1Fragment = { id: string; featuredAsset?: { id: string } | null }; -export type ProdFragment3_1Fragment = { id: string, featuredAsset?: { id: string } | null }; +export type ProdFragment3_1Fragment = { id: string; featuredAsset?: { id: string } | null }; export type GetFacetWithValuesQueryVariables = Exact<{ - id: Scalars['ID']; -}>; - - -export type GetFacetWithValuesQuery = { facet?: { id: string, languageCode: LanguageCode, isPrivate: boolean, code: string, name: string, translations: Array<{ id: string, languageCode: LanguageCode, name: string }>, values: Array<{ id: string, languageCode: LanguageCode, code: string, name: string, translations: Array<{ id: string, languageCode: LanguageCode, name: string }>, facet: { id: string, name: string } }> } | null }; + id: Scalars['ID']; +}>; + +export type GetFacetWithValuesQuery = { + facet?: { + id: string; + languageCode: LanguageCode; + isPrivate: boolean; + code: string; + name: string; + translations: Array<{ id: string; languageCode: LanguageCode; name: string }>; + values: Array<{ + id: string; + languageCode: LanguageCode; + code: string; + name: string; + translations: Array<{ id: string; languageCode: LanguageCode; name: string }>; + facet: { id: string; name: string }; + }>; + } | null; +}; export type DeleteFacetValuesMutationVariables = Exact<{ - ids: Array | Scalars['ID']; - force?: InputMaybe; + ids: Array | Scalars['ID']; + force?: InputMaybe; }>; - -export type DeleteFacetValuesMutation = { deleteFacetValues: Array<{ result: DeletionResult, message?: string | null }> }; +export type DeleteFacetValuesMutation = { + deleteFacetValues: Array<{ result: DeletionResult; message?: string | null }>; +}; export type DeleteFacetMutationVariables = Exact<{ - id: Scalars['ID']; - force?: InputMaybe; + id: Scalars['ID']; + force?: InputMaybe; }>; - -export type DeleteFacetMutation = { deleteFacet: { result: DeletionResult, message?: string | null } }; +export type DeleteFacetMutation = { deleteFacet: { result: DeletionResult; message?: string | null } }; export type GetProductWithFacetValuesQueryVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; +export type GetProductWithFacetValuesQuery = { + product?: { + id: string; + facetValues: Array<{ id: string; name: string; code: string }>; + variants: Array<{ id: string; facetValues: Array<{ id: string; name: string; code: string }> }>; + } | null; +}; -export type GetProductWithFacetValuesQuery = { product?: { id: string, facetValues: Array<{ id: string, name: string, code: string }>, variants: Array<{ id: string, facetValues: Array<{ id: string, name: string, code: string }> }> } | null }; - -export type GetProductListWithVariantsQueryVariables = Exact<{ [key: string]: never; }>; - +export type GetProductListWithVariantsQueryVariables = Exact<{ [key: string]: never }>; -export type GetProductListWithVariantsQuery = { products: { totalItems: number, items: Array<{ id: string, name: string, variants: Array<{ id: string, name: string }> }> } }; +export type GetProductListWithVariantsQuery = { + products: { + totalItems: number; + items: Array<{ id: string; name: string; variants: Array<{ id: string; name: string }> }>; + }; +}; export type CreateFacetValuesMutationVariables = Exact<{ - input: Array | CreateFacetValueInput; + input: Array | CreateFacetValueInput; }>; - -export type CreateFacetValuesMutation = { createFacetValues: Array<{ id: string, languageCode: LanguageCode, code: string, name: string, translations: Array<{ id: string, languageCode: LanguageCode, name: string }>, facet: { id: string, name: string } }> }; +export type CreateFacetValuesMutation = { + createFacetValues: Array<{ + id: string; + languageCode: LanguageCode; + code: string; + name: string; + translations: Array<{ id: string; languageCode: LanguageCode; name: string }>; + facet: { id: string; name: string }; + }>; +}; export type UpdateFacetValuesMutationVariables = Exact<{ - input: Array | UpdateFacetValueInput; + input: Array | UpdateFacetValueInput; }>; - -export type UpdateFacetValuesMutation = { updateFacetValues: Array<{ id: string, languageCode: LanguageCode, code: string, name: string, translations: Array<{ id: string, languageCode: LanguageCode, name: string }>, facet: { id: string, name: string } }> }; +export type UpdateFacetValuesMutation = { + updateFacetValues: Array<{ + id: string; + languageCode: LanguageCode; + code: string; + name: string; + translations: Array<{ id: string; languageCode: LanguageCode; name: string }>; + facet: { id: string; name: string }; + }>; +}; export type AssignFacetsToChannelMutationVariables = Exact<{ - input: AssignFacetsToChannelInput; + input: AssignFacetsToChannelInput; }>; - -export type AssignFacetsToChannelMutation = { assignFacetsToChannel: Array<{ id: string, name: string }> }; +export type AssignFacetsToChannelMutation = { assignFacetsToChannel: Array<{ id: string; name: string }> }; export type RemoveFacetsFromChannelMutationVariables = Exact<{ - input: RemoveFacetsFromChannelInput; -}>; - - -export type RemoveFacetsFromChannelMutation = { removeFacetsFromChannel: Array<{ id: string, name: string } | { errorCode: ErrorCode, message: string, productCount: number, variantCount: number }> }; - -export type GetGlobalSettingsQueryVariables = Exact<{ [key: string]: never; }>; - - -export type GetGlobalSettingsQuery = { globalSettings: { id: string, availableLanguages: Array, trackInventory: boolean, outOfStockThreshold: number, serverConfig: { permittedAssetTypes: Array, orderProcess: Array<{ name: string, to: Array }>, permissions: Array<{ name: string, description: string, assignable: boolean }>, customFieldConfig: { Customer: Array<{ name: string } | { name: string } | { name: string } | { name: string } | { name: string } | { name: string } | { name: string } | { name: string }> } } } }; - -export type AdministratorFragment = { id: string, firstName: string, lastName: string, emailAddress: string, user: { id: string, identifier: string, lastLogin?: any | null, roles: Array<{ id: string, code: string, description: string, permissions: Array }> } }; - -export type AssetFragment = { id: string, name: string, fileSize: number, mimeType: string, type: AssetType, preview: string, source: string }; - -export type ProductVariantFragment = { id: string, createdAt: any, updatedAt: any, enabled: boolean, languageCode: LanguageCode, name: string, currencyCode: CurrencyCode, price: number, priceWithTax: number, stockOnHand: number, trackInventory: GlobalFlag, sku: string, taxRateApplied: { id: string, name: string, value: number }, taxCategory: { id: string, name: string }, options: Array<{ id: string, code: string, languageCode: LanguageCode, name: string }>, facetValues: Array<{ id: string, code: string, name: string, facet: { id: string, name: string } }>, featuredAsset?: { id: string, name: string, fileSize: number, mimeType: string, type: AssetType, preview: string, source: string } | null, assets: Array<{ id: string, name: string, fileSize: number, mimeType: string, type: AssetType, preview: string, source: string }>, translations: Array<{ id: string, languageCode: LanguageCode, name: string }>, channels: Array<{ id: string, code: string }> }; - -export type ProductWithVariantsFragment = { id: string, enabled: boolean, languageCode: LanguageCode, name: string, slug: string, description: string, featuredAsset?: { id: string, name: string, fileSize: number, mimeType: string, type: AssetType, preview: string, source: string } | null, assets: Array<{ id: string, name: string, fileSize: number, mimeType: string, type: AssetType, preview: string, source: string }>, translations: Array<{ languageCode: LanguageCode, name: string, slug: string, description: string }>, optionGroups: Array<{ id: string, languageCode: LanguageCode, code: string, name: string }>, variants: Array<{ id: string, createdAt: any, updatedAt: any, enabled: boolean, languageCode: LanguageCode, name: string, currencyCode: CurrencyCode, price: number, priceWithTax: number, stockOnHand: number, trackInventory: GlobalFlag, sku: string, taxRateApplied: { id: string, name: string, value: number }, taxCategory: { id: string, name: string }, options: Array<{ id: string, code: string, languageCode: LanguageCode, name: string }>, facetValues: Array<{ id: string, code: string, name: string, facet: { id: string, name: string } }>, featuredAsset?: { id: string, name: string, fileSize: number, mimeType: string, type: AssetType, preview: string, source: string } | null, assets: Array<{ id: string, name: string, fileSize: number, mimeType: string, type: AssetType, preview: string, source: string }>, translations: Array<{ id: string, languageCode: LanguageCode, name: string }>, channels: Array<{ id: string, code: string }> }>, facetValues: Array<{ id: string, code: string, name: string, facet: { id: string, name: string } }>, channels: Array<{ id: string, code: string }> }; - -export type RoleFragment = { id: string, code: string, description: string, permissions: Array, channels: Array<{ id: string, code: string, token: string }> }; - -export type ConfigurableOperationFragment = { code: string, args: Array<{ name: string, value: string }> }; - -export type CollectionFragment = { id: string, name: string, slug: string, description: string, isPrivate: boolean, languageCode?: LanguageCode | null, featuredAsset?: { id: string, name: string, fileSize: number, mimeType: string, type: AssetType, preview: string, source: string } | null, assets: Array<{ id: string, name: string, fileSize: number, mimeType: string, type: AssetType, preview: string, source: string }>, filters: Array<{ code: string, args: Array<{ name: string, value: string }> }>, translations: Array<{ id: string, languageCode: LanguageCode, name: string, slug: string, description: string }>, parent?: { id: string, name: string } | null, children?: Array<{ id: string, name: string, position: number }> | null }; - -export type FacetValueFragment = { id: string, languageCode: LanguageCode, code: string, name: string, translations: Array<{ id: string, languageCode: LanguageCode, name: string }>, facet: { id: string, name: string } }; - -export type FacetWithValuesFragment = { id: string, languageCode: LanguageCode, isPrivate: boolean, code: string, name: string, translations: Array<{ id: string, languageCode: LanguageCode, name: string }>, values: Array<{ id: string, languageCode: LanguageCode, code: string, name: string, translations: Array<{ id: string, languageCode: LanguageCode, name: string }>, facet: { id: string, name: string } }> }; - -export type CountryFragment = { id: string, code: string, name: string, enabled: boolean, translations: Array<{ id: string, languageCode: LanguageCode, name: string }> }; - -export type AddressFragment = { id: string, fullName?: string | null, company?: string | null, streetLine1: string, streetLine2?: string | null, city?: string | null, province?: string | null, postalCode?: string | null, phoneNumber?: string | null, defaultShippingAddress?: boolean | null, defaultBillingAddress?: boolean | null, country: { id: string, code: string, name: string } }; - -export type CustomerFragment = { id: string, title?: string | null, firstName: string, lastName: string, phoneNumber?: string | null, emailAddress: string, user?: { id: string, identifier: string, verified: boolean, lastLogin?: any | null } | null, addresses?: Array<{ id: string, fullName?: string | null, company?: string | null, streetLine1: string, streetLine2?: string | null, city?: string | null, province?: string | null, postalCode?: string | null, phoneNumber?: string | null, defaultShippingAddress?: boolean | null, defaultBillingAddress?: boolean | null, country: { id: string, code: string, name: string } }> | null }; - -export type AdjustmentFragment = { adjustmentSource: string, amount: number, description: string, type: AdjustmentType }; - -export type ShippingAddressFragment = { fullName?: string | null, company?: string | null, streetLine1?: string | null, streetLine2?: string | null, city?: string | null, province?: string | null, postalCode?: string | null, country?: string | null, phoneNumber?: string | null }; - -export type OrderFragment = { id: string, createdAt: any, updatedAt: any, code: string, active: boolean, state: string, total: number, totalWithTax: number, totalQuantity: number, currencyCode: CurrencyCode, customer?: { id: string, firstName: string, lastName: string } | null }; - -export type OrderItemFragment = { id: string, cancelled: boolean, unitPrice: number, unitPriceWithTax: number, taxRate: number, fulfillment?: { id: string } | null }; - -export type PaymentFragment = { id: string, transactionId?: string | null, amount: number, method: string, state: string, nextStates: Array, metadata?: any | null, refunds: Array<{ id: string, total: number, reason?: string | null }> }; - -export type OrderWithLinesFragment = { id: string, createdAt: any, updatedAt: any, code: string, state: string, active: boolean, subTotal: number, subTotalWithTax: number, total: number, totalWithTax: number, totalQuantity: number, currencyCode: CurrencyCode, shipping: number, shippingWithTax: number, customer?: { id: string, firstName: string, lastName: string } | null, lines: Array<{ id: string, unitPrice: number, unitPriceWithTax: number, quantity: number, linePriceWithTax: number, featuredAsset?: { preview: string } | null, productVariant: { id: string, name: string, sku: string }, items: Array<{ id: string, cancelled: boolean, unitPrice: number, unitPriceWithTax: number, taxRate: number, fulfillment?: { id: string } | null }> }>, surcharges: Array<{ id: string, description: string, sku?: string | null, price: number, priceWithTax: number }>, shippingLines: Array<{ priceWithTax: number, shippingMethod: { id: string, code: string, name: string, description: string } }>, shippingAddress?: { fullName?: string | null, company?: string | null, streetLine1?: string | null, streetLine2?: string | null, city?: string | null, province?: string | null, postalCode?: string | null, country?: string | null, phoneNumber?: string | null } | null, payments?: Array<{ id: string, transactionId?: string | null, amount: number, method: string, state: string, nextStates: Array, metadata?: any | null, refunds: Array<{ id: string, total: number, reason?: string | null }> }> | null }; - -export type PromotionFragment = { id: string, createdAt: any, updatedAt: any, couponCode?: string | null, startsAt?: any | null, endsAt?: any | null, name: string, enabled: boolean, conditions: Array<{ code: string, args: Array<{ name: string, value: string }> }>, actions: Array<{ code: string, args: Array<{ name: string, value: string }> }> }; - -export type ZoneFragment = { id: string, name: string, members: Array<{ id: string, code: string, name: string, enabled: boolean, translations: Array<{ id: string, languageCode: LanguageCode, name: string }> }> }; - -export type TaxRateFragment = { id: string, name: string, enabled: boolean, value: number, category: { id: string, name: string }, zone: { id: string, name: string }, customerGroup?: { id: string, name: string } | null }; - -export type CurrentUserFragment = { id: string, identifier: string, channels: Array<{ code: string, token: string, permissions: Array }> }; - -export type VariantWithStockFragment = { id: string, stockOnHand: number, stockAllocated: number, stockMovements: { totalItems: number, items: Array<{ id: string, type: StockMovementType, quantity: number } | { id: string, type: StockMovementType, quantity: number } | { id: string, type: StockMovementType, quantity: number } | { id: string, type: StockMovementType, quantity: number } | { id: string, type: StockMovementType, quantity: number } | { id: string, type: StockMovementType, quantity: number }> } }; - -export type FulfillmentFragment = { id: string, state: string, nextStates: Array, method: string, trackingCode?: string | null, orderItems: Array<{ id: string }> }; - -export type ChannelFragment = { id: string, code: string, token: string, currencyCode: CurrencyCode, defaultLanguageCode: LanguageCode, pricesIncludeTax: boolean, defaultShippingZone?: { id: string } | null, defaultTaxZone?: { id: string } | null }; - -export type GlobalSettingsFragment = { id: string, availableLanguages: Array, trackInventory: boolean, outOfStockThreshold: number, serverConfig: { permittedAssetTypes: Array, orderProcess: Array<{ name: string, to: Array }>, permissions: Array<{ name: string, description: string, assignable: boolean }>, customFieldConfig: { Customer: Array<{ name: string } | { name: string } | { name: string } | { name: string } | { name: string } | { name: string } | { name: string } | { name: string }> } } }; - -export type CustomerGroupFragment = { id: string, name: string, customers: { totalItems: number, items: Array<{ id: string }> } }; - -export type ProductOptionGroupFragment = { id: string, code: string, name: string, options: Array<{ id: string, code: string, name: string }>, translations: Array<{ id: string, languageCode: LanguageCode, name: string }> }; - -export type ProductWithOptionsFragment = { id: string, optionGroups: Array<{ id: string, code: string, options: Array<{ id: string, code: string }> }> }; - -export type ShippingMethodFragment = { id: string, code: string, name: string, description: string, calculator: { code: string, args: Array<{ name: string, value: string }> }, checker: { code: string, args: Array<{ name: string, value: string }> } }; + input: RemoveFacetsFromChannelInput; +}>; + +export type RemoveFacetsFromChannelMutation = { + removeFacetsFromChannel: Array< + | { id: string; name: string } + | { errorCode: ErrorCode; message: string; productCount: number; variantCount: number } + >; +}; + +export type GetGlobalSettingsQueryVariables = Exact<{ [key: string]: never }>; + +export type GetGlobalSettingsQuery = { + globalSettings: { + id: string; + availableLanguages: Array; + trackInventory: boolean; + outOfStockThreshold: number; + serverConfig: { + permittedAssetTypes: Array; + orderProcess: Array<{ name: string; to: Array }>; + permissions: Array<{ name: string; description: string; assignable: boolean }>; + customFieldConfig: { + Customer: Array< + | { name: string } + | { name: string } + | { name: string } + | { name: string } + | { name: string } + | { name: string } + | { name: string } + | { name: string } + >; + }; + }; + }; +}; + +export type AdministratorFragment = { + id: string; + firstName: string; + lastName: string; + emailAddress: string; + user: { + id: string; + identifier: string; + lastLogin?: any | null; + roles: Array<{ id: string; code: string; description: string; permissions: Array }>; + }; +}; + +export type AssetFragment = { + id: string; + name: string; + fileSize: number; + mimeType: string; + type: AssetType; + preview: string; + source: string; +}; + +export type ProductVariantFragment = { + id: string; + createdAt: any; + updatedAt: any; + enabled: boolean; + languageCode: LanguageCode; + name: string; + currencyCode: CurrencyCode; + price: number; + priceWithTax: number; + stockOnHand: number; + trackInventory: GlobalFlag; + sku: string; + taxRateApplied: { id: string; name: string; value: number }; + taxCategory: { id: string; name: string }; + options: Array<{ id: string; code: string; languageCode: LanguageCode; name: string }>; + facetValues: Array<{ id: string; code: string; name: string; facet: { id: string; name: string } }>; + featuredAsset?: { + id: string; + name: string; + fileSize: number; + mimeType: string; + type: AssetType; + preview: string; + source: string; + } | null; + assets: Array<{ + id: string; + name: string; + fileSize: number; + mimeType: string; + type: AssetType; + preview: string; + source: string; + }>; + translations: Array<{ id: string; languageCode: LanguageCode; name: string }>; + channels: Array<{ id: string; code: string }>; +}; + +export type ProductWithVariantsFragment = { + id: string; + enabled: boolean; + languageCode: LanguageCode; + name: string; + slug: string; + description: string; + featuredAsset?: { + id: string; + name: string; + fileSize: number; + mimeType: string; + type: AssetType; + preview: string; + source: string; + } | null; + assets: Array<{ + id: string; + name: string; + fileSize: number; + mimeType: string; + type: AssetType; + preview: string; + source: string; + }>; + translations: Array<{ languageCode: LanguageCode; name: string; slug: string; description: string }>; + optionGroups: Array<{ id: string; languageCode: LanguageCode; code: string; name: string }>; + variants: Array<{ + id: string; + createdAt: any; + updatedAt: any; + enabled: boolean; + languageCode: LanguageCode; + name: string; + currencyCode: CurrencyCode; + price: number; + priceWithTax: number; + stockOnHand: number; + trackInventory: GlobalFlag; + sku: string; + taxRateApplied: { id: string; name: string; value: number }; + taxCategory: { id: string; name: string }; + options: Array<{ id: string; code: string; languageCode: LanguageCode; name: string }>; + facetValues: Array<{ id: string; code: string; name: string; facet: { id: string; name: string } }>; + featuredAsset?: { + id: string; + name: string; + fileSize: number; + mimeType: string; + type: AssetType; + preview: string; + source: string; + } | null; + assets: Array<{ + id: string; + name: string; + fileSize: number; + mimeType: string; + type: AssetType; + preview: string; + source: string; + }>; + translations: Array<{ id: string; languageCode: LanguageCode; name: string }>; + channels: Array<{ id: string; code: string }>; + }>; + facetValues: Array<{ id: string; code: string; name: string; facet: { id: string; name: string } }>; + channels: Array<{ id: string; code: string }>; +}; + +export type RoleFragment = { + id: string; + code: string; + description: string; + permissions: Array; + channels: Array<{ id: string; code: string; token: string }>; +}; + +export type ConfigurableOperationFragment = { code: string; args: Array<{ name: string; value: string }> }; + +export type CollectionFragment = { + id: string; + name: string; + slug: string; + description: string; + isPrivate: boolean; + languageCode?: LanguageCode | null; + featuredAsset?: { + id: string; + name: string; + fileSize: number; + mimeType: string; + type: AssetType; + preview: string; + source: string; + } | null; + assets: Array<{ + id: string; + name: string; + fileSize: number; + mimeType: string; + type: AssetType; + preview: string; + source: string; + }>; + filters: Array<{ code: string; args: Array<{ name: string; value: string }> }>; + translations: Array<{ + id: string; + languageCode: LanguageCode; + name: string; + slug: string; + description: string; + }>; + parent?: { id: string; name: string } | null; + children?: Array<{ id: string; name: string; position: number }> | null; +}; + +export type FacetValueFragment = { + id: string; + languageCode: LanguageCode; + code: string; + name: string; + translations: Array<{ id: string; languageCode: LanguageCode; name: string }>; + facet: { id: string; name: string }; +}; + +export type FacetWithValuesFragment = { + id: string; + languageCode: LanguageCode; + isPrivate: boolean; + code: string; + name: string; + translations: Array<{ id: string; languageCode: LanguageCode; name: string }>; + values: Array<{ + id: string; + languageCode: LanguageCode; + code: string; + name: string; + translations: Array<{ id: string; languageCode: LanguageCode; name: string }>; + facet: { id: string; name: string }; + }>; +}; + +export type CountryFragment = { + id: string; + code: string; + name: string; + enabled: boolean; + translations: Array<{ id: string; languageCode: LanguageCode; name: string }>; +}; + +export type AddressFragment = { + id: string; + fullName?: string | null; + company?: string | null; + streetLine1: string; + streetLine2?: string | null; + city?: string | null; + province?: string | null; + postalCode?: string | null; + phoneNumber?: string | null; + defaultShippingAddress?: boolean | null; + defaultBillingAddress?: boolean | null; + country: { id: string; code: string; name: string }; +}; + +export type CustomerFragment = { + id: string; + title?: string | null; + firstName: string; + lastName: string; + phoneNumber?: string | null; + emailAddress: string; + user?: { id: string; identifier: string; verified: boolean; lastLogin?: any | null } | null; + addresses?: Array<{ + id: string; + fullName?: string | null; + company?: string | null; + streetLine1: string; + streetLine2?: string | null; + city?: string | null; + province?: string | null; + postalCode?: string | null; + phoneNumber?: string | null; + defaultShippingAddress?: boolean | null; + defaultBillingAddress?: boolean | null; + country: { id: string; code: string; name: string }; + }> | null; +}; + +export type AdjustmentFragment = { + adjustmentSource: string; + amount: number; + description: string; + type: AdjustmentType; +}; + +export type ShippingAddressFragment = { + fullName?: string | null; + company?: string | null; + streetLine1?: string | null; + streetLine2?: string | null; + city?: string | null; + province?: string | null; + postalCode?: string | null; + country?: string | null; + phoneNumber?: string | null; +}; + +export type OrderFragment = { + id: string; + createdAt: any; + updatedAt: any; + code: string; + active: boolean; + state: string; + total: number; + totalWithTax: number; + totalQuantity: number; + currencyCode: CurrencyCode; + customer?: { id: string; firstName: string; lastName: string } | null; +}; + +export type OrderItemFragment = { + id: string; + cancelled: boolean; + unitPrice: number; + unitPriceWithTax: number; + taxRate: number; + fulfillment?: { id: string } | null; +}; + +export type PaymentFragment = { + id: string; + transactionId?: string | null; + amount: number; + method: string; + state: string; + nextStates: Array; + metadata?: any | null; + refunds: Array<{ id: string; total: number; reason?: string | null }>; +}; + +export type OrderWithLinesFragment = { + id: string; + createdAt: any; + updatedAt: any; + code: string; + state: string; + active: boolean; + subTotal: number; + subTotalWithTax: number; + total: number; + totalWithTax: number; + totalQuantity: number; + currencyCode: CurrencyCode; + shipping: number; + shippingWithTax: number; + customer?: { id: string; firstName: string; lastName: string } | null; + lines: Array<{ + id: string; + unitPrice: number; + unitPriceWithTax: number; + quantity: number; + linePriceWithTax: number; + featuredAsset?: { preview: string } | null; + productVariant: { id: string; name: string; sku: string }; + items: Array<{ + id: string; + cancelled: boolean; + unitPrice: number; + unitPriceWithTax: number; + taxRate: number; + fulfillment?: { id: string } | null; + }>; + }>; + surcharges: Array<{ + id: string; + description: string; + sku?: string | null; + price: number; + priceWithTax: number; + }>; + shippingLines: Array<{ + priceWithTax: number; + shippingMethod: { id: string; code: string; name: string; description: string }; + }>; + shippingAddress?: { + fullName?: string | null; + company?: string | null; + streetLine1?: string | null; + streetLine2?: string | null; + city?: string | null; + province?: string | null; + postalCode?: string | null; + country?: string | null; + phoneNumber?: string | null; + } | null; + payments?: Array<{ + id: string; + transactionId?: string | null; + amount: number; + method: string; + state: string; + nextStates: Array; + metadata?: any | null; + refunds: Array<{ id: string; total: number; reason?: string | null }>; + }> | null; +}; + +export type PromotionFragment = { + id: string; + createdAt: any; + updatedAt: any; + couponCode?: string | null; + startsAt?: any | null; + endsAt?: any | null; + name: string; + enabled: boolean; + conditions: Array<{ code: string; args: Array<{ name: string; value: string }> }>; + actions: Array<{ code: string; args: Array<{ name: string; value: string }> }>; +}; + +export type ZoneFragment = { + id: string; + name: string; + members: Array<{ + id: string; + code: string; + name: string; + enabled: boolean; + translations: Array<{ id: string; languageCode: LanguageCode; name: string }>; + }>; +}; + +export type TaxRateFragment = { + id: string; + name: string; + enabled: boolean; + value: number; + category: { id: string; name: string }; + zone: { id: string; name: string }; + customerGroup?: { id: string; name: string } | null; +}; + +export type CurrentUserFragment = { + id: string; + identifier: string; + channels: Array<{ code: string; token: string; permissions: Array }>; +}; + +export type VariantWithStockFragment = { + id: string; + stockOnHand: number; + stockAllocated: number; + stockMovements: { + totalItems: number; + items: Array< + | { id: string; type: StockMovementType; quantity: number } + | { id: string; type: StockMovementType; quantity: number } + | { id: string; type: StockMovementType; quantity: number } + | { id: string; type: StockMovementType; quantity: number } + | { id: string; type: StockMovementType; quantity: number } + | { id: string; type: StockMovementType; quantity: number } + >; + }; +}; + +export type FulfillmentFragment = { + id: string; + state: string; + nextStates: Array; + method: string; + trackingCode?: string | null; + orderItems: Array<{ id: string }>; +}; + +export type ChannelFragment = { + id: string; + code: string; + token: string; + currencyCode: CurrencyCode; + defaultLanguageCode: LanguageCode; + pricesIncludeTax: boolean; + defaultShippingZone?: { id: string } | null; + defaultTaxZone?: { id: string } | null; +}; + +export type GlobalSettingsFragment = { + id: string; + availableLanguages: Array; + trackInventory: boolean; + outOfStockThreshold: number; + serverConfig: { + permittedAssetTypes: Array; + orderProcess: Array<{ name: string; to: Array }>; + permissions: Array<{ name: string; description: string; assignable: boolean }>; + customFieldConfig: { + Customer: Array< + | { name: string } + | { name: string } + | { name: string } + | { name: string } + | { name: string } + | { name: string } + | { name: string } + | { name: string } + >; + }; + }; +}; + +export type CustomerGroupFragment = { + id: string; + name: string; + customers: { totalItems: number; items: Array<{ id: string }> }; +}; + +export type ProductOptionGroupFragment = { + id: string; + code: string; + name: string; + options: Array<{ id: string; code: string; name: string }>; + translations: Array<{ id: string; languageCode: LanguageCode; name: string }>; +}; + +export type ProductWithOptionsFragment = { + id: string; + optionGroups: Array<{ id: string; code: string; options: Array<{ id: string; code: string }> }>; +}; + +export type ShippingMethodFragment = { + id: string; + code: string; + name: string; + description: string; + calculator: { code: string; args: Array<{ name: string; value: string }> }; + checker: { code: string; args: Array<{ name: string; value: string }> }; +}; export type CreateAdministratorMutationVariables = Exact<{ - input: CreateAdministratorInput; + input: CreateAdministratorInput; }>; - -export type CreateAdministratorMutation = { createAdministrator: { id: string, firstName: string, lastName: string, emailAddress: string, user: { id: string, identifier: string, lastLogin?: any | null, roles: Array<{ id: string, code: string, description: string, permissions: Array }> } } }; +export type CreateAdministratorMutation = { + createAdministrator: { + id: string; + firstName: string; + lastName: string; + emailAddress: string; + user: { + id: string; + identifier: string; + lastLogin?: any | null; + roles: Array<{ id: string; code: string; description: string; permissions: Array }>; + }; + }; +}; export type UpdateProductMutationVariables = Exact<{ - input: UpdateProductInput; -}>; - - -export type UpdateProductMutation = { updateProduct: { id: string, enabled: boolean, languageCode: LanguageCode, name: string, slug: string, description: string, featuredAsset?: { id: string, name: string, fileSize: number, mimeType: string, type: AssetType, preview: string, source: string } | null, assets: Array<{ id: string, name: string, fileSize: number, mimeType: string, type: AssetType, preview: string, source: string }>, translations: Array<{ languageCode: LanguageCode, name: string, slug: string, description: string }>, optionGroups: Array<{ id: string, languageCode: LanguageCode, code: string, name: string }>, variants: Array<{ id: string, createdAt: any, updatedAt: any, enabled: boolean, languageCode: LanguageCode, name: string, currencyCode: CurrencyCode, price: number, priceWithTax: number, stockOnHand: number, trackInventory: GlobalFlag, sku: string, taxRateApplied: { id: string, name: string, value: number }, taxCategory: { id: string, name: string }, options: Array<{ id: string, code: string, languageCode: LanguageCode, name: string }>, facetValues: Array<{ id: string, code: string, name: string, facet: { id: string, name: string } }>, featuredAsset?: { id: string, name: string, fileSize: number, mimeType: string, type: AssetType, preview: string, source: string } | null, assets: Array<{ id: string, name: string, fileSize: number, mimeType: string, type: AssetType, preview: string, source: string }>, translations: Array<{ id: string, languageCode: LanguageCode, name: string }>, channels: Array<{ id: string, code: string }> }>, facetValues: Array<{ id: string, code: string, name: string, facet: { id: string, name: string } }>, channels: Array<{ id: string, code: string }> } }; + input: UpdateProductInput; +}>; + +export type UpdateProductMutation = { + updateProduct: { + id: string; + enabled: boolean; + languageCode: LanguageCode; + name: string; + slug: string; + description: string; + featuredAsset?: { + id: string; + name: string; + fileSize: number; + mimeType: string; + type: AssetType; + preview: string; + source: string; + } | null; + assets: Array<{ + id: string; + name: string; + fileSize: number; + mimeType: string; + type: AssetType; + preview: string; + source: string; + }>; + translations: Array<{ languageCode: LanguageCode; name: string; slug: string; description: string }>; + optionGroups: Array<{ id: string; languageCode: LanguageCode; code: string; name: string }>; + variants: Array<{ + id: string; + createdAt: any; + updatedAt: any; + enabled: boolean; + languageCode: LanguageCode; + name: string; + currencyCode: CurrencyCode; + price: number; + priceWithTax: number; + stockOnHand: number; + trackInventory: GlobalFlag; + sku: string; + taxRateApplied: { id: string; name: string; value: number }; + taxCategory: { id: string; name: string }; + options: Array<{ id: string; code: string; languageCode: LanguageCode; name: string }>; + facetValues: Array<{ + id: string; + code: string; + name: string; + facet: { id: string; name: string }; + }>; + featuredAsset?: { + id: string; + name: string; + fileSize: number; + mimeType: string; + type: AssetType; + preview: string; + source: string; + } | null; + assets: Array<{ + id: string; + name: string; + fileSize: number; + mimeType: string; + type: AssetType; + preview: string; + source: string; + }>; + translations: Array<{ id: string; languageCode: LanguageCode; name: string }>; + channels: Array<{ id: string; code: string }>; + }>; + facetValues: Array<{ id: string; code: string; name: string; facet: { id: string; name: string } }>; + channels: Array<{ id: string; code: string }>; + }; +}; export type CreateProductMutationVariables = Exact<{ - input: CreateProductInput; -}>; - - -export type CreateProductMutation = { createProduct: { id: string, enabled: boolean, languageCode: LanguageCode, name: string, slug: string, description: string, featuredAsset?: { id: string, name: string, fileSize: number, mimeType: string, type: AssetType, preview: string, source: string } | null, assets: Array<{ id: string, name: string, fileSize: number, mimeType: string, type: AssetType, preview: string, source: string }>, translations: Array<{ languageCode: LanguageCode, name: string, slug: string, description: string }>, optionGroups: Array<{ id: string, languageCode: LanguageCode, code: string, name: string }>, variants: Array<{ id: string, createdAt: any, updatedAt: any, enabled: boolean, languageCode: LanguageCode, name: string, currencyCode: CurrencyCode, price: number, priceWithTax: number, stockOnHand: number, trackInventory: GlobalFlag, sku: string, taxRateApplied: { id: string, name: string, value: number }, taxCategory: { id: string, name: string }, options: Array<{ id: string, code: string, languageCode: LanguageCode, name: string }>, facetValues: Array<{ id: string, code: string, name: string, facet: { id: string, name: string } }>, featuredAsset?: { id: string, name: string, fileSize: number, mimeType: string, type: AssetType, preview: string, source: string } | null, assets: Array<{ id: string, name: string, fileSize: number, mimeType: string, type: AssetType, preview: string, source: string }>, translations: Array<{ id: string, languageCode: LanguageCode, name: string }>, channels: Array<{ id: string, code: string }> }>, facetValues: Array<{ id: string, code: string, name: string, facet: { id: string, name: string } }>, channels: Array<{ id: string, code: string }> } }; + input: CreateProductInput; +}>; + +export type CreateProductMutation = { + createProduct: { + id: string; + enabled: boolean; + languageCode: LanguageCode; + name: string; + slug: string; + description: string; + featuredAsset?: { + id: string; + name: string; + fileSize: number; + mimeType: string; + type: AssetType; + preview: string; + source: string; + } | null; + assets: Array<{ + id: string; + name: string; + fileSize: number; + mimeType: string; + type: AssetType; + preview: string; + source: string; + }>; + translations: Array<{ languageCode: LanguageCode; name: string; slug: string; description: string }>; + optionGroups: Array<{ id: string; languageCode: LanguageCode; code: string; name: string }>; + variants: Array<{ + id: string; + createdAt: any; + updatedAt: any; + enabled: boolean; + languageCode: LanguageCode; + name: string; + currencyCode: CurrencyCode; + price: number; + priceWithTax: number; + stockOnHand: number; + trackInventory: GlobalFlag; + sku: string; + taxRateApplied: { id: string; name: string; value: number }; + taxCategory: { id: string; name: string }; + options: Array<{ id: string; code: string; languageCode: LanguageCode; name: string }>; + facetValues: Array<{ + id: string; + code: string; + name: string; + facet: { id: string; name: string }; + }>; + featuredAsset?: { + id: string; + name: string; + fileSize: number; + mimeType: string; + type: AssetType; + preview: string; + source: string; + } | null; + assets: Array<{ + id: string; + name: string; + fileSize: number; + mimeType: string; + type: AssetType; + preview: string; + source: string; + }>; + translations: Array<{ id: string; languageCode: LanguageCode; name: string }>; + channels: Array<{ id: string; code: string }>; + }>; + facetValues: Array<{ id: string; code: string; name: string; facet: { id: string; name: string } }>; + channels: Array<{ id: string; code: string }>; + }; +}; export type GetProductWithVariantsQueryVariables = Exact<{ - id?: InputMaybe; - slug?: InputMaybe; -}>; - - -export type GetProductWithVariantsQuery = { product?: { id: string, enabled: boolean, languageCode: LanguageCode, name: string, slug: string, description: string, featuredAsset?: { id: string, name: string, fileSize: number, mimeType: string, type: AssetType, preview: string, source: string } | null, assets: Array<{ id: string, name: string, fileSize: number, mimeType: string, type: AssetType, preview: string, source: string }>, translations: Array<{ languageCode: LanguageCode, name: string, slug: string, description: string }>, optionGroups: Array<{ id: string, languageCode: LanguageCode, code: string, name: string }>, variants: Array<{ id: string, createdAt: any, updatedAt: any, enabled: boolean, languageCode: LanguageCode, name: string, currencyCode: CurrencyCode, price: number, priceWithTax: number, stockOnHand: number, trackInventory: GlobalFlag, sku: string, taxRateApplied: { id: string, name: string, value: number }, taxCategory: { id: string, name: string }, options: Array<{ id: string, code: string, languageCode: LanguageCode, name: string }>, facetValues: Array<{ id: string, code: string, name: string, facet: { id: string, name: string } }>, featuredAsset?: { id: string, name: string, fileSize: number, mimeType: string, type: AssetType, preview: string, source: string } | null, assets: Array<{ id: string, name: string, fileSize: number, mimeType: string, type: AssetType, preview: string, source: string }>, translations: Array<{ id: string, languageCode: LanguageCode, name: string }>, channels: Array<{ id: string, code: string }> }>, facetValues: Array<{ id: string, code: string, name: string, facet: { id: string, name: string } }>, channels: Array<{ id: string, code: string }> } | null }; + id?: InputMaybe; + slug?: InputMaybe; +}>; + +export type GetProductWithVariantsQuery = { + product?: { + id: string; + enabled: boolean; + languageCode: LanguageCode; + name: string; + slug: string; + description: string; + featuredAsset?: { + id: string; + name: string; + fileSize: number; + mimeType: string; + type: AssetType; + preview: string; + source: string; + } | null; + assets: Array<{ + id: string; + name: string; + fileSize: number; + mimeType: string; + type: AssetType; + preview: string; + source: string; + }>; + translations: Array<{ languageCode: LanguageCode; name: string; slug: string; description: string }>; + optionGroups: Array<{ id: string; languageCode: LanguageCode; code: string; name: string }>; + variants: Array<{ + id: string; + createdAt: any; + updatedAt: any; + enabled: boolean; + languageCode: LanguageCode; + name: string; + currencyCode: CurrencyCode; + price: number; + priceWithTax: number; + stockOnHand: number; + trackInventory: GlobalFlag; + sku: string; + taxRateApplied: { id: string; name: string; value: number }; + taxCategory: { id: string; name: string }; + options: Array<{ id: string; code: string; languageCode: LanguageCode; name: string }>; + facetValues: Array<{ + id: string; + code: string; + name: string; + facet: { id: string; name: string }; + }>; + featuredAsset?: { + id: string; + name: string; + fileSize: number; + mimeType: string; + type: AssetType; + preview: string; + source: string; + } | null; + assets: Array<{ + id: string; + name: string; + fileSize: number; + mimeType: string; + type: AssetType; + preview: string; + source: string; + }>; + translations: Array<{ id: string; languageCode: LanguageCode; name: string }>; + channels: Array<{ id: string; code: string }>; + }>; + facetValues: Array<{ id: string; code: string; name: string; facet: { id: string; name: string } }>; + channels: Array<{ id: string; code: string }>; + } | null; +}; export type GetProductListQueryVariables = Exact<{ - options?: InputMaybe; + options?: InputMaybe; }>; - -export type GetProductListQuery = { products: { totalItems: number, items: Array<{ id: string, languageCode: LanguageCode, name: string, slug: string, featuredAsset?: { id: string, preview: string } | null }> } }; +export type GetProductListQuery = { + products: { + totalItems: number; + items: Array<{ + id: string; + languageCode: LanguageCode; + name: string; + slug: string; + featuredAsset?: { id: string; preview: string } | null; + }>; + }; +}; export type CreateProductVariantsMutationVariables = Exact<{ - input: Array | CreateProductVariantInput; -}>; - - -export type CreateProductVariantsMutation = { createProductVariants: Array<{ id: string, createdAt: any, updatedAt: any, enabled: boolean, languageCode: LanguageCode, name: string, currencyCode: CurrencyCode, price: number, priceWithTax: number, stockOnHand: number, trackInventory: GlobalFlag, sku: string, taxRateApplied: { id: string, name: string, value: number }, taxCategory: { id: string, name: string }, options: Array<{ id: string, code: string, languageCode: LanguageCode, name: string }>, facetValues: Array<{ id: string, code: string, name: string, facet: { id: string, name: string } }>, featuredAsset?: { id: string, name: string, fileSize: number, mimeType: string, type: AssetType, preview: string, source: string } | null, assets: Array<{ id: string, name: string, fileSize: number, mimeType: string, type: AssetType, preview: string, source: string }>, translations: Array<{ id: string, languageCode: LanguageCode, name: string }>, channels: Array<{ id: string, code: string }> } | null> }; + input: Array | CreateProductVariantInput; +}>; + +export type CreateProductVariantsMutation = { + createProductVariants: Array<{ + id: string; + createdAt: any; + updatedAt: any; + enabled: boolean; + languageCode: LanguageCode; + name: string; + currencyCode: CurrencyCode; + price: number; + priceWithTax: number; + stockOnHand: number; + trackInventory: GlobalFlag; + sku: string; + taxRateApplied: { id: string; name: string; value: number }; + taxCategory: { id: string; name: string }; + options: Array<{ id: string; code: string; languageCode: LanguageCode; name: string }>; + facetValues: Array<{ id: string; code: string; name: string; facet: { id: string; name: string } }>; + featuredAsset?: { + id: string; + name: string; + fileSize: number; + mimeType: string; + type: AssetType; + preview: string; + source: string; + } | null; + assets: Array<{ + id: string; + name: string; + fileSize: number; + mimeType: string; + type: AssetType; + preview: string; + source: string; + }>; + translations: Array<{ id: string; languageCode: LanguageCode; name: string }>; + channels: Array<{ id: string; code: string }>; + } | null>; +}; export type UpdateProductVariantsMutationVariables = Exact<{ - input: Array | UpdateProductVariantInput; -}>; - - -export type UpdateProductVariantsMutation = { updateProductVariants: Array<{ id: string, createdAt: any, updatedAt: any, enabled: boolean, languageCode: LanguageCode, name: string, currencyCode: CurrencyCode, price: number, priceWithTax: number, stockOnHand: number, trackInventory: GlobalFlag, sku: string, taxRateApplied: { id: string, name: string, value: number }, taxCategory: { id: string, name: string }, options: Array<{ id: string, code: string, languageCode: LanguageCode, name: string }>, facetValues: Array<{ id: string, code: string, name: string, facet: { id: string, name: string } }>, featuredAsset?: { id: string, name: string, fileSize: number, mimeType: string, type: AssetType, preview: string, source: string } | null, assets: Array<{ id: string, name: string, fileSize: number, mimeType: string, type: AssetType, preview: string, source: string }>, translations: Array<{ id: string, languageCode: LanguageCode, name: string }>, channels: Array<{ id: string, code: string }> } | null> }; + input: Array | UpdateProductVariantInput; +}>; + +export type UpdateProductVariantsMutation = { + updateProductVariants: Array<{ + id: string; + createdAt: any; + updatedAt: any; + enabled: boolean; + languageCode: LanguageCode; + name: string; + currencyCode: CurrencyCode; + price: number; + priceWithTax: number; + stockOnHand: number; + trackInventory: GlobalFlag; + sku: string; + taxRateApplied: { id: string; name: string; value: number }; + taxCategory: { id: string; name: string }; + options: Array<{ id: string; code: string; languageCode: LanguageCode; name: string }>; + facetValues: Array<{ id: string; code: string; name: string; facet: { id: string; name: string } }>; + featuredAsset?: { + id: string; + name: string; + fileSize: number; + mimeType: string; + type: AssetType; + preview: string; + source: string; + } | null; + assets: Array<{ + id: string; + name: string; + fileSize: number; + mimeType: string; + type: AssetType; + preview: string; + source: string; + }>; + translations: Array<{ id: string; languageCode: LanguageCode; name: string }>; + channels: Array<{ id: string; code: string }>; + } | null>; +}; export type UpdateTaxRateMutationVariables = Exact<{ - input: UpdateTaxRateInput; + input: UpdateTaxRateInput; }>; - -export type UpdateTaxRateMutation = { updateTaxRate: { id: string, name: string, enabled: boolean, value: number, category: { id: string, name: string }, zone: { id: string, name: string }, customerGroup?: { id: string, name: string } | null } }; +export type UpdateTaxRateMutation = { + updateTaxRate: { + id: string; + name: string; + enabled: boolean; + value: number; + category: { id: string; name: string }; + zone: { id: string; name: string }; + customerGroup?: { id: string; name: string } | null; + }; +}; export type CreateFacetMutationVariables = Exact<{ - input: CreateFacetInput; -}>; - - -export type CreateFacetMutation = { createFacet: { id: string, languageCode: LanguageCode, isPrivate: boolean, code: string, name: string, translations: Array<{ id: string, languageCode: LanguageCode, name: string }>, values: Array<{ id: string, languageCode: LanguageCode, code: string, name: string, translations: Array<{ id: string, languageCode: LanguageCode, name: string }>, facet: { id: string, name: string } }> } }; + input: CreateFacetInput; +}>; + +export type CreateFacetMutation = { + createFacet: { + id: string; + languageCode: LanguageCode; + isPrivate: boolean; + code: string; + name: string; + translations: Array<{ id: string; languageCode: LanguageCode; name: string }>; + values: Array<{ + id: string; + languageCode: LanguageCode; + code: string; + name: string; + translations: Array<{ id: string; languageCode: LanguageCode; name: string }>; + facet: { id: string; name: string }; + }>; + }; +}; export type UpdateFacetMutationVariables = Exact<{ - input: UpdateFacetInput; -}>; - - -export type UpdateFacetMutation = { updateFacet: { id: string, languageCode: LanguageCode, isPrivate: boolean, code: string, name: string, translations: Array<{ id: string, languageCode: LanguageCode, name: string }>, values: Array<{ id: string, languageCode: LanguageCode, code: string, name: string, translations: Array<{ id: string, languageCode: LanguageCode, name: string }>, facet: { id: string, name: string } }> } }; + input: UpdateFacetInput; +}>; + +export type UpdateFacetMutation = { + updateFacet: { + id: string; + languageCode: LanguageCode; + isPrivate: boolean; + code: string; + name: string; + translations: Array<{ id: string; languageCode: LanguageCode; name: string }>; + values: Array<{ + id: string; + languageCode: LanguageCode; + code: string; + name: string; + translations: Array<{ id: string; languageCode: LanguageCode; name: string }>; + facet: { id: string; name: string }; + }>; + }; +}; export type GetCustomerListQueryVariables = Exact<{ - options?: InputMaybe; + options?: InputMaybe; }>; - -export type GetCustomerListQuery = { customers: { totalItems: number, items: Array<{ id: string, title?: string | null, firstName: string, lastName: string, emailAddress: string, phoneNumber?: string | null, user?: { id: string, verified: boolean } | null }> } }; +export type GetCustomerListQuery = { + customers: { + totalItems: number; + items: Array<{ + id: string; + title?: string | null; + firstName: string; + lastName: string; + emailAddress: string; + phoneNumber?: string | null; + user?: { id: string; verified: boolean } | null; + }>; + }; +}; export type GetAssetListQueryVariables = Exact<{ - options?: InputMaybe; + options?: InputMaybe; }>; - -export type GetAssetListQuery = { assets: { totalItems: number, items: Array<{ id: string, name: string, fileSize: number, mimeType: string, type: AssetType, preview: string, source: string }> } }; +export type GetAssetListQuery = { + assets: { + totalItems: number; + items: Array<{ + id: string; + name: string; + fileSize: number; + mimeType: string; + type: AssetType; + preview: string; + source: string; + }>; + }; +}; export type CreateRoleMutationVariables = Exact<{ - input: CreateRoleInput; + input: CreateRoleInput; }>; - -export type CreateRoleMutation = { createRole: { id: string, code: string, description: string, permissions: Array, channels: Array<{ id: string, code: string, token: string }> } }; +export type CreateRoleMutation = { + createRole: { + id: string; + code: string; + description: string; + permissions: Array; + channels: Array<{ id: string; code: string; token: string }>; + }; +}; export type CreateCollectionMutationVariables = Exact<{ - input: CreateCollectionInput; -}>; - - -export type CreateCollectionMutation = { createCollection: { id: string, name: string, slug: string, description: string, isPrivate: boolean, languageCode?: LanguageCode | null, featuredAsset?: { id: string, name: string, fileSize: number, mimeType: string, type: AssetType, preview: string, source: string } | null, assets: Array<{ id: string, name: string, fileSize: number, mimeType: string, type: AssetType, preview: string, source: string }>, filters: Array<{ code: string, args: Array<{ name: string, value: string }> }>, translations: Array<{ id: string, languageCode: LanguageCode, name: string, slug: string, description: string }>, parent?: { id: string, name: string } | null, children?: Array<{ id: string, name: string, position: number }> | null } }; + input: CreateCollectionInput; +}>; + +export type CreateCollectionMutation = { + createCollection: { + id: string; + name: string; + slug: string; + description: string; + isPrivate: boolean; + languageCode?: LanguageCode | null; + featuredAsset?: { + id: string; + name: string; + fileSize: number; + mimeType: string; + type: AssetType; + preview: string; + source: string; + } | null; + assets: Array<{ + id: string; + name: string; + fileSize: number; + mimeType: string; + type: AssetType; + preview: string; + source: string; + }>; + filters: Array<{ code: string; args: Array<{ name: string; value: string }> }>; + translations: Array<{ + id: string; + languageCode: LanguageCode; + name: string; + slug: string; + description: string; + }>; + parent?: { id: string; name: string } | null; + children?: Array<{ id: string; name: string; position: number }> | null; + }; +}; export type UpdateCollectionMutationVariables = Exact<{ - input: UpdateCollectionInput; -}>; - - -export type UpdateCollectionMutation = { updateCollection: { id: string, name: string, slug: string, description: string, isPrivate: boolean, languageCode?: LanguageCode | null, featuredAsset?: { id: string, name: string, fileSize: number, mimeType: string, type: AssetType, preview: string, source: string } | null, assets: Array<{ id: string, name: string, fileSize: number, mimeType: string, type: AssetType, preview: string, source: string }>, filters: Array<{ code: string, args: Array<{ name: string, value: string }> }>, translations: Array<{ id: string, languageCode: LanguageCode, name: string, slug: string, description: string }>, parent?: { id: string, name: string } | null, children?: Array<{ id: string, name: string, position: number }> | null } }; + input: UpdateCollectionInput; +}>; + +export type UpdateCollectionMutation = { + updateCollection: { + id: string; + name: string; + slug: string; + description: string; + isPrivate: boolean; + languageCode?: LanguageCode | null; + featuredAsset?: { + id: string; + name: string; + fileSize: number; + mimeType: string; + type: AssetType; + preview: string; + source: string; + } | null; + assets: Array<{ + id: string; + name: string; + fileSize: number; + mimeType: string; + type: AssetType; + preview: string; + source: string; + }>; + filters: Array<{ code: string; args: Array<{ name: string; value: string }> }>; + translations: Array<{ + id: string; + languageCode: LanguageCode; + name: string; + slug: string; + description: string; + }>; + parent?: { id: string; name: string } | null; + children?: Array<{ id: string; name: string; position: number }> | null; + }; +}; export type GetCustomerQueryVariables = Exact<{ - id: Scalars['ID']; - orderListOptions?: InputMaybe; -}>; - - -export type GetCustomerQuery = { customer?: { id: string, title?: string | null, firstName: string, lastName: string, phoneNumber?: string | null, emailAddress: string, orders: { totalItems: number, items: Array<{ id: string, code: string, state: string, total: number, currencyCode: CurrencyCode, updatedAt: any }> }, user?: { id: string, identifier: string, verified: boolean, lastLogin?: any | null } | null, addresses?: Array<{ id: string, fullName?: string | null, company?: string | null, streetLine1: string, streetLine2?: string | null, city?: string | null, province?: string | null, postalCode?: string | null, phoneNumber?: string | null, defaultShippingAddress?: boolean | null, defaultBillingAddress?: boolean | null, country: { id: string, code: string, name: string } }> | null } | null }; + id: Scalars['ID']; + orderListOptions?: InputMaybe; +}>; + +export type GetCustomerQuery = { + customer?: { + id: string; + title?: string | null; + firstName: string; + lastName: string; + phoneNumber?: string | null; + emailAddress: string; + orders: { + totalItems: number; + items: Array<{ + id: string; + code: string; + state: string; + total: number; + currencyCode: CurrencyCode; + updatedAt: any; + }>; + }; + user?: { id: string; identifier: string; verified: boolean; lastLogin?: any | null } | null; + addresses?: Array<{ + id: string; + fullName?: string | null; + company?: string | null; + streetLine1: string; + streetLine2?: string | null; + city?: string | null; + province?: string | null; + postalCode?: string | null; + phoneNumber?: string | null; + defaultShippingAddress?: boolean | null; + defaultBillingAddress?: boolean | null; + country: { id: string; code: string; name: string }; + }> | null; + } | null; +}; export type AttemptLoginMutationVariables = Exact<{ - username: Scalars['String']; - password: Scalars['String']; - rememberMe?: InputMaybe; + username: Scalars['String']; + password: Scalars['String']; + rememberMe?: InputMaybe; }>; - -export type AttemptLoginMutation = { login: { id: string, identifier: string, channels: Array<{ code: string, token: string, permissions: Array }> } | {} }; +export type AttemptLoginMutation = { + login: + | { + id: string; + identifier: string; + channels: Array<{ code: string; token: string; permissions: Array }>; + } + | {}; +}; export type GetCountryListQueryVariables = Exact<{ - options?: InputMaybe; + options?: InputMaybe; }>; - -export type GetCountryListQuery = { countries: { totalItems: number, items: Array<{ id: string, code: string, name: string, enabled: boolean }> } }; +export type GetCountryListQuery = { + countries: { + totalItems: number; + items: Array<{ id: string; code: string; name: string; enabled: boolean }>; + }; +}; export type UpdateCountryMutationVariables = Exact<{ - input: UpdateCountryInput; + input: UpdateCountryInput; }>; - -export type UpdateCountryMutation = { updateCountry: { id: string, code: string, name: string, enabled: boolean, translations: Array<{ id: string, languageCode: LanguageCode, name: string }> } }; +export type UpdateCountryMutation = { + updateCountry: { + id: string; + code: string; + name: string; + enabled: boolean; + translations: Array<{ id: string; languageCode: LanguageCode; name: string }>; + }; +}; export type GetFacetListQueryVariables = Exact<{ - options?: InputMaybe; -}>; - - -export type GetFacetListQuery = { facets: { totalItems: number, items: Array<{ id: string, languageCode: LanguageCode, isPrivate: boolean, code: string, name: string, translations: Array<{ id: string, languageCode: LanguageCode, name: string }>, values: Array<{ id: string, languageCode: LanguageCode, code: string, name: string, translations: Array<{ id: string, languageCode: LanguageCode, name: string }>, facet: { id: string, name: string } }> }> } }; + options?: InputMaybe; +}>; + +export type GetFacetListQuery = { + facets: { + totalItems: number; + items: Array<{ + id: string; + languageCode: LanguageCode; + isPrivate: boolean; + code: string; + name: string; + translations: Array<{ id: string; languageCode: LanguageCode; name: string }>; + values: Array<{ + id: string; + languageCode: LanguageCode; + code: string; + name: string; + translations: Array<{ id: string; languageCode: LanguageCode; name: string }>; + facet: { id: string; name: string }; + }>; + }>; + }; +}; export type GetFacetListSimpleQueryVariables = Exact<{ - options?: InputMaybe; + options?: InputMaybe; }>; - -export type GetFacetListSimpleQuery = { facets: { totalItems: number, items: Array<{ id: string, name: string }> } }; +export type GetFacetListSimpleQuery = { + facets: { totalItems: number; items: Array<{ id: string; name: string }> }; +}; export type DeleteProductMutationVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; - export type DeleteProductMutation = { deleteProduct: { result: DeletionResult } }; export type GetProductSimpleQueryVariables = Exact<{ - id?: InputMaybe; - slug?: InputMaybe; + id?: InputMaybe; + slug?: InputMaybe; }>; - -export type GetProductSimpleQuery = { product?: { id: string, slug: string } | null }; +export type GetProductSimpleQuery = { product?: { id: string; slug: string } | null }; export type GetStockMovementQueryVariables = Exact<{ - id: Scalars['ID']; -}>; - - -export type GetStockMovementQuery = { product?: { id: string, variants: Array<{ id: string, stockOnHand: number, stockAllocated: number, stockMovements: { totalItems: number, items: Array<{ id: string, type: StockMovementType, quantity: number } | { id: string, type: StockMovementType, quantity: number } | { id: string, type: StockMovementType, quantity: number } | { id: string, type: StockMovementType, quantity: number } | { id: string, type: StockMovementType, quantity: number } | { id: string, type: StockMovementType, quantity: number }> } }> } | null }; + id: Scalars['ID']; +}>; + +export type GetStockMovementQuery = { + product?: { + id: string; + variants: Array<{ + id: string; + stockOnHand: number; + stockAllocated: number; + stockMovements: { + totalItems: number; + items: Array< + | { id: string; type: StockMovementType; quantity: number } + | { id: string; type: StockMovementType; quantity: number } + | { id: string; type: StockMovementType; quantity: number } + | { id: string; type: StockMovementType; quantity: number } + | { id: string; type: StockMovementType; quantity: number } + | { id: string; type: StockMovementType; quantity: number } + >; + }; + }>; + } | null; +}; export type GetRunningJobsQueryVariables = Exact<{ - options?: InputMaybe; + options?: InputMaybe; }>; - -export type GetRunningJobsQuery = { jobs: { totalItems: number, items: Array<{ id: string, queueName: string, state: JobState, isSettled: boolean, duration: number }> } }; +export type GetRunningJobsQuery = { + jobs: { + totalItems: number; + items: Array<{ + id: string; + queueName: string; + state: JobState; + isSettled: boolean; + duration: number; + }>; + }; +}; export type CreatePromotionMutationVariables = Exact<{ - input: CreatePromotionInput; + input: CreatePromotionInput; }>; +export type CreatePromotionMutation = { + createPromotion: + | { errorCode: ErrorCode; message: string } + | { + id: string; + createdAt: any; + updatedAt: any; + couponCode?: string | null; + startsAt?: any | null; + endsAt?: any | null; + name: string; + enabled: boolean; + conditions: Array<{ code: string; args: Array<{ name: string; value: string }> }>; + actions: Array<{ code: string; args: Array<{ name: string; value: string }> }>; + }; +}; -export type CreatePromotionMutation = { createPromotion: { errorCode: ErrorCode, message: string } | { id: string, createdAt: any, updatedAt: any, couponCode?: string | null, startsAt?: any | null, endsAt?: any | null, name: string, enabled: boolean, conditions: Array<{ code: string, args: Array<{ name: string, value: string }> }>, actions: Array<{ code: string, args: Array<{ name: string, value: string }> }> } }; - -export type MeQueryVariables = Exact<{ [key: string]: never; }>; - +export type MeQueryVariables = Exact<{ [key: string]: never }>; -export type MeQuery = { me?: { id: string, identifier: string, channels: Array<{ code: string, token: string, permissions: Array }> } | null }; +export type MeQuery = { + me?: { + id: string; + identifier: string; + channels: Array<{ code: string; token: string; permissions: Array }>; + } | null; +}; export type CreateChannelMutationVariables = Exact<{ - input: CreateChannelInput; + input: CreateChannelInput; }>; - -export type CreateChannelMutation = { createChannel: { id: string, code: string, token: string, currencyCode: CurrencyCode, defaultLanguageCode: LanguageCode, pricesIncludeTax: boolean, defaultShippingZone?: { id: string } | null, defaultTaxZone?: { id: string } | null } | { errorCode: ErrorCode, message: string, languageCode: string } }; +export type CreateChannelMutation = { + createChannel: + | { + id: string; + code: string; + token: string; + currencyCode: CurrencyCode; + defaultLanguageCode: LanguageCode; + pricesIncludeTax: boolean; + defaultShippingZone?: { id: string } | null; + defaultTaxZone?: { id: string } | null; + } + | { errorCode: ErrorCode; message: string; languageCode: string }; +}; export type DeleteProductVariantMutationVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; - -export type DeleteProductVariantMutation = { deleteProductVariant: { result: DeletionResult, message?: string | null } }; +export type DeleteProductVariantMutation = { + deleteProductVariant: { result: DeletionResult; message?: string | null }; +}; export type AssignProductsToChannelMutationVariables = Exact<{ - input: AssignProductsToChannelInput; -}>; - - -export type AssignProductsToChannelMutation = { assignProductsToChannel: Array<{ id: string, enabled: boolean, languageCode: LanguageCode, name: string, slug: string, description: string, featuredAsset?: { id: string, name: string, fileSize: number, mimeType: string, type: AssetType, preview: string, source: string } | null, assets: Array<{ id: string, name: string, fileSize: number, mimeType: string, type: AssetType, preview: string, source: string }>, translations: Array<{ languageCode: LanguageCode, name: string, slug: string, description: string }>, optionGroups: Array<{ id: string, languageCode: LanguageCode, code: string, name: string }>, variants: Array<{ id: string, createdAt: any, updatedAt: any, enabled: boolean, languageCode: LanguageCode, name: string, currencyCode: CurrencyCode, price: number, priceWithTax: number, stockOnHand: number, trackInventory: GlobalFlag, sku: string, taxRateApplied: { id: string, name: string, value: number }, taxCategory: { id: string, name: string }, options: Array<{ id: string, code: string, languageCode: LanguageCode, name: string }>, facetValues: Array<{ id: string, code: string, name: string, facet: { id: string, name: string } }>, featuredAsset?: { id: string, name: string, fileSize: number, mimeType: string, type: AssetType, preview: string, source: string } | null, assets: Array<{ id: string, name: string, fileSize: number, mimeType: string, type: AssetType, preview: string, source: string }>, translations: Array<{ id: string, languageCode: LanguageCode, name: string }>, channels: Array<{ id: string, code: string }> }>, facetValues: Array<{ id: string, code: string, name: string, facet: { id: string, name: string } }>, channels: Array<{ id: string, code: string }> }> }; + input: AssignProductsToChannelInput; +}>; + +export type AssignProductsToChannelMutation = { + assignProductsToChannel: Array<{ + id: string; + enabled: boolean; + languageCode: LanguageCode; + name: string; + slug: string; + description: string; + featuredAsset?: { + id: string; + name: string; + fileSize: number; + mimeType: string; + type: AssetType; + preview: string; + source: string; + } | null; + assets: Array<{ + id: string; + name: string; + fileSize: number; + mimeType: string; + type: AssetType; + preview: string; + source: string; + }>; + translations: Array<{ languageCode: LanguageCode; name: string; slug: string; description: string }>; + optionGroups: Array<{ id: string; languageCode: LanguageCode; code: string; name: string }>; + variants: Array<{ + id: string; + createdAt: any; + updatedAt: any; + enabled: boolean; + languageCode: LanguageCode; + name: string; + currencyCode: CurrencyCode; + price: number; + priceWithTax: number; + stockOnHand: number; + trackInventory: GlobalFlag; + sku: string; + taxRateApplied: { id: string; name: string; value: number }; + taxCategory: { id: string; name: string }; + options: Array<{ id: string; code: string; languageCode: LanguageCode; name: string }>; + facetValues: Array<{ + id: string; + code: string; + name: string; + facet: { id: string; name: string }; + }>; + featuredAsset?: { + id: string; + name: string; + fileSize: number; + mimeType: string; + type: AssetType; + preview: string; + source: string; + } | null; + assets: Array<{ + id: string; + name: string; + fileSize: number; + mimeType: string; + type: AssetType; + preview: string; + source: string; + }>; + translations: Array<{ id: string; languageCode: LanguageCode; name: string }>; + channels: Array<{ id: string; code: string }>; + }>; + facetValues: Array<{ id: string; code: string; name: string; facet: { id: string; name: string } }>; + channels: Array<{ id: string; code: string }>; + }>; +}; export type RemoveProductsFromChannelMutationVariables = Exact<{ - input: RemoveProductsFromChannelInput; -}>; - - -export type RemoveProductsFromChannelMutation = { removeProductsFromChannel: Array<{ id: string, enabled: boolean, languageCode: LanguageCode, name: string, slug: string, description: string, featuredAsset?: { id: string, name: string, fileSize: number, mimeType: string, type: AssetType, preview: string, source: string } | null, assets: Array<{ id: string, name: string, fileSize: number, mimeType: string, type: AssetType, preview: string, source: string }>, translations: Array<{ languageCode: LanguageCode, name: string, slug: string, description: string }>, optionGroups: Array<{ id: string, languageCode: LanguageCode, code: string, name: string }>, variants: Array<{ id: string, createdAt: any, updatedAt: any, enabled: boolean, languageCode: LanguageCode, name: string, currencyCode: CurrencyCode, price: number, priceWithTax: number, stockOnHand: number, trackInventory: GlobalFlag, sku: string, taxRateApplied: { id: string, name: string, value: number }, taxCategory: { id: string, name: string }, options: Array<{ id: string, code: string, languageCode: LanguageCode, name: string }>, facetValues: Array<{ id: string, code: string, name: string, facet: { id: string, name: string } }>, featuredAsset?: { id: string, name: string, fileSize: number, mimeType: string, type: AssetType, preview: string, source: string } | null, assets: Array<{ id: string, name: string, fileSize: number, mimeType: string, type: AssetType, preview: string, source: string }>, translations: Array<{ id: string, languageCode: LanguageCode, name: string }>, channels: Array<{ id: string, code: string }> }>, facetValues: Array<{ id: string, code: string, name: string, facet: { id: string, name: string } }>, channels: Array<{ id: string, code: string }> }> }; + input: RemoveProductsFromChannelInput; +}>; + +export type RemoveProductsFromChannelMutation = { + removeProductsFromChannel: Array<{ + id: string; + enabled: boolean; + languageCode: LanguageCode; + name: string; + slug: string; + description: string; + featuredAsset?: { + id: string; + name: string; + fileSize: number; + mimeType: string; + type: AssetType; + preview: string; + source: string; + } | null; + assets: Array<{ + id: string; + name: string; + fileSize: number; + mimeType: string; + type: AssetType; + preview: string; + source: string; + }>; + translations: Array<{ languageCode: LanguageCode; name: string; slug: string; description: string }>; + optionGroups: Array<{ id: string; languageCode: LanguageCode; code: string; name: string }>; + variants: Array<{ + id: string; + createdAt: any; + updatedAt: any; + enabled: boolean; + languageCode: LanguageCode; + name: string; + currencyCode: CurrencyCode; + price: number; + priceWithTax: number; + stockOnHand: number; + trackInventory: GlobalFlag; + sku: string; + taxRateApplied: { id: string; name: string; value: number }; + taxCategory: { id: string; name: string }; + options: Array<{ id: string; code: string; languageCode: LanguageCode; name: string }>; + facetValues: Array<{ + id: string; + code: string; + name: string; + facet: { id: string; name: string }; + }>; + featuredAsset?: { + id: string; + name: string; + fileSize: number; + mimeType: string; + type: AssetType; + preview: string; + source: string; + } | null; + assets: Array<{ + id: string; + name: string; + fileSize: number; + mimeType: string; + type: AssetType; + preview: string; + source: string; + }>; + translations: Array<{ id: string; languageCode: LanguageCode; name: string }>; + channels: Array<{ id: string; code: string }>; + }>; + facetValues: Array<{ id: string; code: string; name: string; facet: { id: string; name: string } }>; + channels: Array<{ id: string; code: string }>; + }>; +}; export type AssignProductVariantsToChannelMutationVariables = Exact<{ - input: AssignProductVariantsToChannelInput; -}>; - - -export type AssignProductVariantsToChannelMutation = { assignProductVariantsToChannel: Array<{ id: string, createdAt: any, updatedAt: any, enabled: boolean, languageCode: LanguageCode, name: string, currencyCode: CurrencyCode, price: number, priceWithTax: number, stockOnHand: number, trackInventory: GlobalFlag, sku: string, taxRateApplied: { id: string, name: string, value: number }, taxCategory: { id: string, name: string }, options: Array<{ id: string, code: string, languageCode: LanguageCode, name: string }>, facetValues: Array<{ id: string, code: string, name: string, facet: { id: string, name: string } }>, featuredAsset?: { id: string, name: string, fileSize: number, mimeType: string, type: AssetType, preview: string, source: string } | null, assets: Array<{ id: string, name: string, fileSize: number, mimeType: string, type: AssetType, preview: string, source: string }>, translations: Array<{ id: string, languageCode: LanguageCode, name: string }>, channels: Array<{ id: string, code: string }> }> }; + input: AssignProductVariantsToChannelInput; +}>; + +export type AssignProductVariantsToChannelMutation = { + assignProductVariantsToChannel: Array<{ + id: string; + createdAt: any; + updatedAt: any; + enabled: boolean; + languageCode: LanguageCode; + name: string; + currencyCode: CurrencyCode; + price: number; + priceWithTax: number; + stockOnHand: number; + trackInventory: GlobalFlag; + sku: string; + taxRateApplied: { id: string; name: string; value: number }; + taxCategory: { id: string; name: string }; + options: Array<{ id: string; code: string; languageCode: LanguageCode; name: string }>; + facetValues: Array<{ id: string; code: string; name: string; facet: { id: string; name: string } }>; + featuredAsset?: { + id: string; + name: string; + fileSize: number; + mimeType: string; + type: AssetType; + preview: string; + source: string; + } | null; + assets: Array<{ + id: string; + name: string; + fileSize: number; + mimeType: string; + type: AssetType; + preview: string; + source: string; + }>; + translations: Array<{ id: string; languageCode: LanguageCode; name: string }>; + channels: Array<{ id: string; code: string }>; + }>; +}; export type RemoveProductVariantsFromChannelMutationVariables = Exact<{ - input: RemoveProductVariantsFromChannelInput; -}>; - - -export type RemoveProductVariantsFromChannelMutation = { removeProductVariantsFromChannel: Array<{ id: string, createdAt: any, updatedAt: any, enabled: boolean, languageCode: LanguageCode, name: string, currencyCode: CurrencyCode, price: number, priceWithTax: number, stockOnHand: number, trackInventory: GlobalFlag, sku: string, taxRateApplied: { id: string, name: string, value: number }, taxCategory: { id: string, name: string }, options: Array<{ id: string, code: string, languageCode: LanguageCode, name: string }>, facetValues: Array<{ id: string, code: string, name: string, facet: { id: string, name: string } }>, featuredAsset?: { id: string, name: string, fileSize: number, mimeType: string, type: AssetType, preview: string, source: string } | null, assets: Array<{ id: string, name: string, fileSize: number, mimeType: string, type: AssetType, preview: string, source: string }>, translations: Array<{ id: string, languageCode: LanguageCode, name: string }>, channels: Array<{ id: string, code: string }> }> }; + input: RemoveProductVariantsFromChannelInput; +}>; + +export type RemoveProductVariantsFromChannelMutation = { + removeProductVariantsFromChannel: Array<{ + id: string; + createdAt: any; + updatedAt: any; + enabled: boolean; + languageCode: LanguageCode; + name: string; + currencyCode: CurrencyCode; + price: number; + priceWithTax: number; + stockOnHand: number; + trackInventory: GlobalFlag; + sku: string; + taxRateApplied: { id: string; name: string; value: number }; + taxCategory: { id: string; name: string }; + options: Array<{ id: string; code: string; languageCode: LanguageCode; name: string }>; + facetValues: Array<{ id: string; code: string; name: string; facet: { id: string; name: string } }>; + featuredAsset?: { + id: string; + name: string; + fileSize: number; + mimeType: string; + type: AssetType; + preview: string; + source: string; + } | null; + assets: Array<{ + id: string; + name: string; + fileSize: number; + mimeType: string; + type: AssetType; + preview: string; + source: string; + }>; + translations: Array<{ id: string; languageCode: LanguageCode; name: string }>; + channels: Array<{ id: string; code: string }>; + }>; +}; export type UpdateAssetMutationVariables = Exact<{ - input: UpdateAssetInput; + input: UpdateAssetInput; }>; - -export type UpdateAssetMutation = { updateAsset: { id: string, name: string, fileSize: number, mimeType: string, type: AssetType, preview: string, source: string, tags: Array<{ id: string, value: string }>, focalPoint?: { x: number, y: number } | null } }; +export type UpdateAssetMutation = { + updateAsset: { + id: string; + name: string; + fileSize: number; + mimeType: string; + type: AssetType; + preview: string; + source: string; + tags: Array<{ id: string; value: string }>; + focalPoint?: { x: number; y: number } | null; + }; +}; export type DeleteAssetMutationVariables = Exact<{ - input: DeleteAssetInput; + input: DeleteAssetInput; }>; - -export type DeleteAssetMutation = { deleteAsset: { result: DeletionResult, message?: string | null } }; +export type DeleteAssetMutation = { deleteAsset: { result: DeletionResult; message?: string | null } }; export type UpdateChannelMutationVariables = Exact<{ - input: UpdateChannelInput; + input: UpdateChannelInput; }>; - -export type UpdateChannelMutation = { updateChannel: { id: string, code: string, token: string, currencyCode: CurrencyCode, defaultLanguageCode: LanguageCode, pricesIncludeTax: boolean, defaultShippingZone?: { id: string } | null, defaultTaxZone?: { id: string } | null } | { errorCode: ErrorCode, message: string, languageCode: string } }; +export type UpdateChannelMutation = { + updateChannel: + | { + id: string; + code: string; + token: string; + currencyCode: CurrencyCode; + defaultLanguageCode: LanguageCode; + pricesIncludeTax: boolean; + defaultShippingZone?: { id: string } | null; + defaultTaxZone?: { id: string } | null; + } + | { errorCode: ErrorCode; message: string; languageCode: string }; +}; export type GetCustomerHistoryQueryVariables = Exact<{ - id: Scalars['ID']; - options?: InputMaybe; + id: Scalars['ID']; + options?: InputMaybe; }>; - -export type GetCustomerHistoryQuery = { customer?: { id: string, history: { totalItems: number, items: Array<{ id: string, type: HistoryEntryType, data: any, administrator?: { id: string } | null }> } } | null }; +export type GetCustomerHistoryQuery = { + customer?: { + id: string; + history: { + totalItems: number; + items: Array<{ + id: string; + type: HistoryEntryType; + data: any; + administrator?: { id: string } | null; + }>; + }; + } | null; +}; export type GetOrderQueryVariables = Exact<{ - id: Scalars['ID']; -}>; - - -export type GetOrderQuery = { order?: { id: string, createdAt: any, updatedAt: any, code: string, state: string, active: boolean, subTotal: number, subTotalWithTax: number, total: number, totalWithTax: number, totalQuantity: number, currencyCode: CurrencyCode, shipping: number, shippingWithTax: number, customer?: { id: string, firstName: string, lastName: string } | null, lines: Array<{ id: string, unitPrice: number, unitPriceWithTax: number, quantity: number, linePriceWithTax: number, featuredAsset?: { preview: string } | null, productVariant: { id: string, name: string, sku: string }, items: Array<{ id: string, cancelled: boolean, unitPrice: number, unitPriceWithTax: number, taxRate: number, fulfillment?: { id: string } | null }> }>, surcharges: Array<{ id: string, description: string, sku?: string | null, price: number, priceWithTax: number }>, shippingLines: Array<{ priceWithTax: number, shippingMethod: { id: string, code: string, name: string, description: string } }>, shippingAddress?: { fullName?: string | null, company?: string | null, streetLine1?: string | null, streetLine2?: string | null, city?: string | null, province?: string | null, postalCode?: string | null, country?: string | null, phoneNumber?: string | null } | null, payments?: Array<{ id: string, transactionId?: string | null, amount: number, method: string, state: string, nextStates: Array, metadata?: any | null, refunds: Array<{ id: string, total: number, reason?: string | null }> }> | null } | null }; + id: Scalars['ID']; +}>; + +export type GetOrderQuery = { + order?: { + id: string; + createdAt: any; + updatedAt: any; + code: string; + state: string; + active: boolean; + subTotal: number; + subTotalWithTax: number; + total: number; + totalWithTax: number; + totalQuantity: number; + currencyCode: CurrencyCode; + shipping: number; + shippingWithTax: number; + customer?: { id: string; firstName: string; lastName: string } | null; + lines: Array<{ + id: string; + unitPrice: number; + unitPriceWithTax: number; + quantity: number; + linePriceWithTax: number; + featuredAsset?: { preview: string } | null; + productVariant: { id: string; name: string; sku: string }; + items: Array<{ + id: string; + cancelled: boolean; + unitPrice: number; + unitPriceWithTax: number; + taxRate: number; + fulfillment?: { id: string } | null; + }>; + }>; + surcharges: Array<{ + id: string; + description: string; + sku?: string | null; + price: number; + priceWithTax: number; + }>; + shippingLines: Array<{ + priceWithTax: number; + shippingMethod: { id: string; code: string; name: string; description: string }; + }>; + shippingAddress?: { + fullName?: string | null; + company?: string | null; + streetLine1?: string | null; + streetLine2?: string | null; + city?: string | null; + province?: string | null; + postalCode?: string | null; + country?: string | null; + phoneNumber?: string | null; + } | null; + payments?: Array<{ + id: string; + transactionId?: string | null; + amount: number; + method: string; + state: string; + nextStates: Array; + metadata?: any | null; + refunds: Array<{ id: string; total: number; reason?: string | null }>; + }> | null; + } | null; +}; export type CreateCustomerGroupMutationVariables = Exact<{ - input: CreateCustomerGroupInput; + input: CreateCustomerGroupInput; }>; - -export type CreateCustomerGroupMutation = { createCustomerGroup: { id: string, name: string, customers: { totalItems: number, items: Array<{ id: string }> } } }; +export type CreateCustomerGroupMutation = { + createCustomerGroup: { + id: string; + name: string; + customers: { totalItems: number; items: Array<{ id: string }> }; + }; +}; export type RemoveCustomersFromGroupMutationVariables = Exact<{ - groupId: Scalars['ID']; - customerIds: Array | Scalars['ID']; + groupId: Scalars['ID']; + customerIds: Array | Scalars['ID']; }>; - -export type RemoveCustomersFromGroupMutation = { removeCustomersFromGroup: { id: string, name: string, customers: { totalItems: number, items: Array<{ id: string }> } } }; +export type RemoveCustomersFromGroupMutation = { + removeCustomersFromGroup: { + id: string; + name: string; + customers: { totalItems: number; items: Array<{ id: string }> }; + }; +}; export type CreateFulfillmentMutationVariables = Exact<{ - input: FulfillOrderInput; -}>; - - -export type CreateFulfillmentMutation = { addFulfillmentToOrder: { errorCode: ErrorCode, message: string, fulfillmentHandlerError: string } | { errorCode: ErrorCode, message: string } | { id: string, state: string, nextStates: Array, method: string, trackingCode?: string | null, orderItems: Array<{ id: string }> } | { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } }; + input: FulfillOrderInput; +}>; + +export type CreateFulfillmentMutation = { + addFulfillmentToOrder: + | { errorCode: ErrorCode; message: string; fulfillmentHandlerError: string } + | { errorCode: ErrorCode; message: string } + | { + id: string; + state: string; + nextStates: Array; + method: string; + trackingCode?: string | null; + orderItems: Array<{ id: string }>; + } + | { errorCode: ErrorCode; message: string } + | { errorCode: ErrorCode; message: string } + | { errorCode: ErrorCode; message: string } + | { errorCode: ErrorCode; message: string }; +}; export type TransitFulfillmentMutationVariables = Exact<{ - id: Scalars['ID']; - state: Scalars['String']; -}>; - - -export type TransitFulfillmentMutation = { transitionFulfillmentToState: { id: string, state: string, nextStates: Array, method: string, trackingCode?: string | null, orderItems: Array<{ id: string }> } | { errorCode: ErrorCode, message: string, transitionError: string, fromState: string, toState: string } }; + id: Scalars['ID']; + state: Scalars['String']; +}>; + +export type TransitFulfillmentMutation = { + transitionFulfillmentToState: + | { + id: string; + state: string; + nextStates: Array; + method: string; + trackingCode?: string | null; + orderItems: Array<{ id: string }>; + } + | { + errorCode: ErrorCode; + message: string; + transitionError: string; + fromState: string; + toState: string; + }; +}; export type GetOrderFulfillmentsQueryVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; - -export type GetOrderFulfillmentsQuery = { order?: { id: string, state: string, fulfillments?: Array<{ id: string, state: string, nextStates: Array, method: string, summary: Array<{ quantity: number, orderLine: { id: string } }> }> | null } | null }; +export type GetOrderFulfillmentsQuery = { + order?: { + id: string; + state: string; + fulfillments?: Array<{ + id: string; + state: string; + nextStates: Array; + method: string; + summary: Array<{ quantity: number; orderLine: { id: string } }>; + }> | null; + } | null; +}; export type GetOrderListQueryVariables = Exact<{ - options?: InputMaybe; -}>; - - -export type GetOrderListQuery = { orders: { totalItems: number, items: Array<{ id: string, createdAt: any, updatedAt: any, code: string, active: boolean, state: string, total: number, totalWithTax: number, totalQuantity: number, currencyCode: CurrencyCode, customer?: { id: string, firstName: string, lastName: string } | null }> } }; + options?: InputMaybe; +}>; + +export type GetOrderListQuery = { + orders: { + totalItems: number; + items: Array<{ + id: string; + createdAt: any; + updatedAt: any; + code: string; + active: boolean; + state: string; + total: number; + totalWithTax: number; + totalQuantity: number; + currencyCode: CurrencyCode; + customer?: { id: string; firstName: string; lastName: string } | null; + }>; + }; +}; export type CreateAddressMutationVariables = Exact<{ - id: Scalars['ID']; - input: CreateAddressInput; -}>; - - -export type CreateAddressMutation = { createCustomerAddress: { id: string, fullName?: string | null, company?: string | null, streetLine1: string, streetLine2?: string | null, city?: string | null, province?: string | null, postalCode?: string | null, phoneNumber?: string | null, defaultShippingAddress?: boolean | null, defaultBillingAddress?: boolean | null, country: { code: string, name: string } } }; + id: Scalars['ID']; + input: CreateAddressInput; +}>; + +export type CreateAddressMutation = { + createCustomerAddress: { + id: string; + fullName?: string | null; + company?: string | null; + streetLine1: string; + streetLine2?: string | null; + city?: string | null; + province?: string | null; + postalCode?: string | null; + phoneNumber?: string | null; + defaultShippingAddress?: boolean | null; + defaultBillingAddress?: boolean | null; + country: { code: string; name: string }; + }; +}; export type UpdateAddressMutationVariables = Exact<{ - input: UpdateAddressInput; + input: UpdateAddressInput; }>; - -export type UpdateAddressMutation = { updateCustomerAddress: { id: string, defaultShippingAddress?: boolean | null, defaultBillingAddress?: boolean | null, country: { code: string, name: string } } }; +export type UpdateAddressMutation = { + updateCustomerAddress: { + id: string; + defaultShippingAddress?: boolean | null; + defaultBillingAddress?: boolean | null; + country: { code: string; name: string }; + }; +}; export type CreateCustomerMutationVariables = Exact<{ - input: CreateCustomerInput; - password?: InputMaybe; -}>; - - -export type CreateCustomerMutation = { createCustomer: { id: string, title?: string | null, firstName: string, lastName: string, phoneNumber?: string | null, emailAddress: string, user?: { id: string, identifier: string, verified: boolean, lastLogin?: any | null } | null, addresses?: Array<{ id: string, fullName?: string | null, company?: string | null, streetLine1: string, streetLine2?: string | null, city?: string | null, province?: string | null, postalCode?: string | null, phoneNumber?: string | null, defaultShippingAddress?: boolean | null, defaultBillingAddress?: boolean | null, country: { id: string, code: string, name: string } }> | null } | { errorCode: ErrorCode, message: string } }; + input: CreateCustomerInput; + password?: InputMaybe; +}>; + +export type CreateCustomerMutation = { + createCustomer: + | { + id: string; + title?: string | null; + firstName: string; + lastName: string; + phoneNumber?: string | null; + emailAddress: string; + user?: { id: string; identifier: string; verified: boolean; lastLogin?: any | null } | null; + addresses?: Array<{ + id: string; + fullName?: string | null; + company?: string | null; + streetLine1: string; + streetLine2?: string | null; + city?: string | null; + province?: string | null; + postalCode?: string | null; + phoneNumber?: string | null; + defaultShippingAddress?: boolean | null; + defaultBillingAddress?: boolean | null; + country: { id: string; code: string; name: string }; + }> | null; + } + | { errorCode: ErrorCode; message: string }; +}; export type UpdateCustomerMutationVariables = Exact<{ - input: UpdateCustomerInput; -}>; - - -export type UpdateCustomerMutation = { updateCustomer: { id: string, title?: string | null, firstName: string, lastName: string, phoneNumber?: string | null, emailAddress: string, user?: { id: string, identifier: string, verified: boolean, lastLogin?: any | null } | null, addresses?: Array<{ id: string, fullName?: string | null, company?: string | null, streetLine1: string, streetLine2?: string | null, city?: string | null, province?: string | null, postalCode?: string | null, phoneNumber?: string | null, defaultShippingAddress?: boolean | null, defaultBillingAddress?: boolean | null, country: { id: string, code: string, name: string } }> | null } | { errorCode: ErrorCode, message: string } }; + input: UpdateCustomerInput; +}>; + +export type UpdateCustomerMutation = { + updateCustomer: + | { + id: string; + title?: string | null; + firstName: string; + lastName: string; + phoneNumber?: string | null; + emailAddress: string; + user?: { id: string; identifier: string; verified: boolean; lastLogin?: any | null } | null; + addresses?: Array<{ + id: string; + fullName?: string | null; + company?: string | null; + streetLine1: string; + streetLine2?: string | null; + city?: string | null; + province?: string | null; + postalCode?: string | null; + phoneNumber?: string | null; + defaultShippingAddress?: boolean | null; + defaultBillingAddress?: boolean | null; + country: { id: string; code: string; name: string }; + }> | null; + } + | { errorCode: ErrorCode; message: string }; +}; export type DeleteCustomerMutationVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; - export type DeleteCustomerMutation = { deleteCustomer: { result: DeletionResult } }; export type UpdateCustomerNoteMutationVariables = Exact<{ - input: UpdateCustomerNoteInput; + input: UpdateCustomerNoteInput; }>; - -export type UpdateCustomerNoteMutation = { updateCustomerNote: { id: string, data: any, isPublic: boolean } }; +export type UpdateCustomerNoteMutation = { updateCustomerNote: { id: string; data: any; isPublic: boolean } }; export type DeleteCustomerNoteMutationVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; - -export type DeleteCustomerNoteMutation = { deleteCustomerNote: { result: DeletionResult, message?: string | null } }; +export type DeleteCustomerNoteMutation = { + deleteCustomerNote: { result: DeletionResult; message?: string | null }; +}; export type UpdateCustomerGroupMutationVariables = Exact<{ - input: UpdateCustomerGroupInput; + input: UpdateCustomerGroupInput; }>; - -export type UpdateCustomerGroupMutation = { updateCustomerGroup: { id: string, name: string, customers: { totalItems: number, items: Array<{ id: string }> } } }; +export type UpdateCustomerGroupMutation = { + updateCustomerGroup: { + id: string; + name: string; + customers: { totalItems: number; items: Array<{ id: string }> }; + }; +}; export type DeleteCustomerGroupMutationVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; - -export type DeleteCustomerGroupMutation = { deleteCustomerGroup: { result: DeletionResult, message?: string | null } }; +export type DeleteCustomerGroupMutation = { + deleteCustomerGroup: { result: DeletionResult; message?: string | null }; +}; export type GetCustomerGroupsQueryVariables = Exact<{ - options?: InputMaybe; + options?: InputMaybe; }>; - -export type GetCustomerGroupsQuery = { customerGroups: { totalItems: number, items: Array<{ id: string, name: string }> } }; +export type GetCustomerGroupsQuery = { + customerGroups: { totalItems: number; items: Array<{ id: string; name: string }> }; +}; export type GetCustomerGroupQueryVariables = Exact<{ - id: Scalars['ID']; - options?: InputMaybe; + id: Scalars['ID']; + options?: InputMaybe; }>; - -export type GetCustomerGroupQuery = { customerGroup?: { id: string, name: string, customers: { totalItems: number, items: Array<{ id: string }> } } | null }; +export type GetCustomerGroupQuery = { + customerGroup?: { + id: string; + name: string; + customers: { totalItems: number; items: Array<{ id: string }> }; + } | null; +}; export type AddCustomersToGroupMutationVariables = Exact<{ - groupId: Scalars['ID']; - customerIds: Array | Scalars['ID']; + groupId: Scalars['ID']; + customerIds: Array | Scalars['ID']; }>; - -export type AddCustomersToGroupMutation = { addCustomersToGroup: { id: string, name: string, customers: { totalItems: number, items: Array<{ id: string }> } } }; +export type AddCustomersToGroupMutation = { + addCustomersToGroup: { + id: string; + name: string; + customers: { totalItems: number; items: Array<{ id: string }> }; + }; +}; export type GetCustomerWithGroupsQueryVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; - -export type GetCustomerWithGroupsQuery = { customer?: { id: string, groups: Array<{ id: string, name: string }> } | null }; +export type GetCustomerWithGroupsQuery = { + customer?: { id: string; groups: Array<{ id: string; name: string }> } | null; +}; export type AdminTransitionMutationVariables = Exact<{ - id: Scalars['ID']; - state: Scalars['String']; -}>; - - -export type AdminTransitionMutation = { transitionOrderToState?: { id: string, createdAt: any, updatedAt: any, code: string, active: boolean, state: string, total: number, totalWithTax: number, totalQuantity: number, currencyCode: CurrencyCode, customer?: { id: string, firstName: string, lastName: string } | null } | { errorCode: ErrorCode, message: string, transitionError: string, fromState: string, toState: string } | null }; + id: Scalars['ID']; + state: Scalars['String']; +}>; + +export type AdminTransitionMutation = { + transitionOrderToState?: + | { + id: string; + createdAt: any; + updatedAt: any; + code: string; + active: boolean; + state: string; + total: number; + totalWithTax: number; + totalQuantity: number; + currencyCode: CurrencyCode; + customer?: { id: string; firstName: string; lastName: string } | null; + } + | { + errorCode: ErrorCode; + message: string; + transitionError: string; + fromState: string; + toState: string; + } + | null; +}; export type CancelOrderMutationVariables = Exact<{ - input: CancelOrderInput; + input: CancelOrderInput; }>; +export type CancelOrderMutation = { + cancelOrder: + | { errorCode: ErrorCode; message: string } + | { errorCode: ErrorCode; message: string } + | { errorCode: ErrorCode; message: string } + | { + id: string; + state: string; + lines: Array<{ quantity: number; items: Array<{ id: string; cancelled: boolean }> }>; + } + | { errorCode: ErrorCode; message: string } + | { errorCode: ErrorCode; message: string }; +}; -export type CancelOrderMutation = { cancelOrder: { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } | { id: string, state: string, lines: Array<{ quantity: number, items: Array<{ id: string, cancelled: boolean }> }> } | { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } }; - -export type CanceledOrderFragment = { id: string, state: string, lines: Array<{ quantity: number, items: Array<{ id: string, cancelled: boolean }> }> }; +export type CanceledOrderFragment = { + id: string; + state: string; + lines: Array<{ quantity: number; items: Array<{ id: string; cancelled: boolean }> }>; +}; export type UpdateGlobalSettingsMutationVariables = Exact<{ - input: UpdateGlobalSettingsInput; -}>; - - -export type UpdateGlobalSettingsMutation = { updateGlobalSettings: { errorCode: ErrorCode, message: string } | { id: string, availableLanguages: Array, trackInventory: boolean, outOfStockThreshold: number, serverConfig: { permittedAssetTypes: Array, orderProcess: Array<{ name: string, to: Array }>, permissions: Array<{ name: string, description: string, assignable: boolean }>, customFieldConfig: { Customer: Array<{ name: string } | { name: string } | { name: string } | { name: string } | { name: string } | { name: string } | { name: string } | { name: string }> } } } }; + input: UpdateGlobalSettingsInput; +}>; + +export type UpdateGlobalSettingsMutation = { + updateGlobalSettings: + | { errorCode: ErrorCode; message: string } + | { + id: string; + availableLanguages: Array; + trackInventory: boolean; + outOfStockThreshold: number; + serverConfig: { + permittedAssetTypes: Array; + orderProcess: Array<{ name: string; to: Array }>; + permissions: Array<{ name: string; description: string; assignable: boolean }>; + customFieldConfig: { + Customer: Array< + | { name: string } + | { name: string } + | { name: string } + | { name: string } + | { name: string } + | { name: string } + | { name: string } + | { name: string } + >; + }; + }; + }; +}; export type UpdateRoleMutationVariables = Exact<{ - input: UpdateRoleInput; + input: UpdateRoleInput; }>; +export type UpdateRoleMutation = { + updateRole: { + id: string; + code: string; + description: string; + permissions: Array; + channels: Array<{ id: string; code: string; token: string }>; + }; +}; -export type UpdateRoleMutation = { updateRole: { id: string, code: string, description: string, permissions: Array, channels: Array<{ id: string, code: string, token: string }> } }; - -export type GetProductsWithVariantPricesQueryVariables = Exact<{ [key: string]: never; }>; - +export type GetProductsWithVariantPricesQueryVariables = Exact<{ [key: string]: never }>; -export type GetProductsWithVariantPricesQuery = { products: { items: Array<{ id: string, slug: string, variants: Array<{ id: string, price: number, priceWithTax: number, sku: string, facetValues: Array<{ id: string, code: string }> }> }> } }; +export type GetProductsWithVariantPricesQuery = { + products: { + items: Array<{ + id: string; + slug: string; + variants: Array<{ + id: string; + price: number; + priceWithTax: number; + sku: string; + facetValues: Array<{ id: string; code: string }>; + }>; + }>; + }; +}; export type CreateProductOptionGroupMutationVariables = Exact<{ - input: CreateProductOptionGroupInput; + input: CreateProductOptionGroupInput; }>; - -export type CreateProductOptionGroupMutation = { createProductOptionGroup: { id: string, code: string, name: string, options: Array<{ id: string, code: string, name: string }>, translations: Array<{ id: string, languageCode: LanguageCode, name: string }> } }; +export type CreateProductOptionGroupMutation = { + createProductOptionGroup: { + id: string; + code: string; + name: string; + options: Array<{ id: string; code: string; name: string }>; + translations: Array<{ id: string; languageCode: LanguageCode; name: string }>; + }; +}; export type AddOptionGroupToProductMutationVariables = Exact<{ - productId: Scalars['ID']; - optionGroupId: Scalars['ID']; + productId: Scalars['ID']; + optionGroupId: Scalars['ID']; }>; - -export type AddOptionGroupToProductMutation = { addOptionGroupToProduct: { id: string, optionGroups: Array<{ id: string, code: string, options: Array<{ id: string, code: string }> }> } }; +export type AddOptionGroupToProductMutation = { + addOptionGroupToProduct: { + id: string; + optionGroups: Array<{ id: string; code: string; options: Array<{ id: string; code: string }> }>; + }; +}; export type CreateShippingMethodMutationVariables = Exact<{ - input: CreateShippingMethodInput; + input: CreateShippingMethodInput; }>; - -export type CreateShippingMethodMutation = { createShippingMethod: { id: string, code: string, name: string, description: string, calculator: { code: string, args: Array<{ name: string, value: string }> }, checker: { code: string, args: Array<{ name: string, value: string }> } } }; +export type CreateShippingMethodMutation = { + createShippingMethod: { + id: string; + code: string; + name: string; + description: string; + calculator: { code: string; args: Array<{ name: string; value: string }> }; + checker: { code: string; args: Array<{ name: string; value: string }> }; + }; +}; export type SettlePaymentMutationVariables = Exact<{ - id: Scalars['ID']; -}>; - - -export type SettlePaymentMutation = { settlePayment: { errorCode: ErrorCode, message: string } | { id: string, transactionId?: string | null, amount: number, method: string, state: string, nextStates: Array, metadata?: any | null, refunds: Array<{ id: string, total: number, reason?: string | null }> } | { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string, paymentErrorMessage: string } }; + id: Scalars['ID']; +}>; + +export type SettlePaymentMutation = { + settlePayment: + | { errorCode: ErrorCode; message: string } + | { + id: string; + transactionId?: string | null; + amount: number; + method: string; + state: string; + nextStates: Array; + metadata?: any | null; + refunds: Array<{ id: string; total: number; reason?: string | null }>; + } + | { errorCode: ErrorCode; message: string } + | { errorCode: ErrorCode; message: string; paymentErrorMessage: string }; +}; export type GetOrderHistoryQueryVariables = Exact<{ - id: Scalars['ID']; - options?: InputMaybe; + id: Scalars['ID']; + options?: InputMaybe; }>; - -export type GetOrderHistoryQuery = { order?: { id: string, history: { totalItems: number, items: Array<{ id: string, type: HistoryEntryType, data: any, administrator?: { id: string } | null }> } } | null }; +export type GetOrderHistoryQuery = { + order?: { + id: string; + history: { + totalItems: number; + items: Array<{ + id: string; + type: HistoryEntryType; + data: any; + administrator?: { id: string } | null; + }>; + }; + } | null; +}; export type UpdateShippingMethodMutationVariables = Exact<{ - input: UpdateShippingMethodInput; + input: UpdateShippingMethodInput; }>; - -export type UpdateShippingMethodMutation = { updateShippingMethod: { id: string, code: string, name: string, description: string, calculator: { code: string, args: Array<{ name: string, value: string }> }, checker: { code: string, args: Array<{ name: string, value: string }> } } }; +export type UpdateShippingMethodMutation = { + updateShippingMethod: { + id: string; + code: string; + name: string; + description: string; + calculator: { code: string; args: Array<{ name: string; value: string }> }; + checker: { code: string; args: Array<{ name: string; value: string }> }; + }; +}; export type GetAssetQueryVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; +export type GetAssetQuery = { + asset?: { + width: number; + height: number; + id: string; + name: string; + fileSize: number; + mimeType: string; + type: AssetType; + preview: string; + source: string; + } | null; +}; -export type GetAssetQuery = { asset?: { width: number, height: number, id: string, name: string, fileSize: number, mimeType: string, type: AssetType, preview: string, source: string } | null }; - -export type AssetFragFirstFragment = { id: string, preview: string }; +export type AssetFragFirstFragment = { id: string; preview: string }; export type GetAssetFragmentFirstQueryVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; +export type GetAssetFragmentFirstQuery = { asset?: { id: string; preview: string } | null }; -export type GetAssetFragmentFirstQuery = { asset?: { id: string, preview: string } | null }; - -export type AssetWithTagsAndFocalPointFragment = { id: string, name: string, fileSize: number, mimeType: string, type: AssetType, preview: string, source: string, focalPoint?: { x: number, y: number } | null, tags: Array<{ id: string, value: string }> }; +export type AssetWithTagsAndFocalPointFragment = { + id: string; + name: string; + fileSize: number; + mimeType: string; + type: AssetType; + preview: string; + source: string; + focalPoint?: { x: number; y: number } | null; + tags: Array<{ id: string; value: string }>; +}; export type CreateAssetsMutationVariables = Exact<{ - input: Array | CreateAssetInput; -}>; - - -export type CreateAssetsMutation = { createAssets: Array<{ id: string, name: string, fileSize: number, mimeType: string, type: AssetType, preview: string, source: string, focalPoint?: { x: number, y: number } | null, tags: Array<{ id: string, value: string }> } | { message: string, fileName: string, mimeType: string }> }; + input: Array | CreateAssetInput; +}>; + +export type CreateAssetsMutation = { + createAssets: Array< + | { + id: string; + name: string; + fileSize: number; + mimeType: string; + type: AssetType; + preview: string; + source: string; + focalPoint?: { x: number; y: number } | null; + tags: Array<{ id: string; value: string }>; + } + | { message: string; fileName: string; mimeType: string } + >; +}; export type DeleteShippingMethodMutationVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; - -export type DeleteShippingMethodMutation = { deleteShippingMethod: { result: DeletionResult, message?: string | null } }; +export type DeleteShippingMethodMutation = { + deleteShippingMethod: { result: DeletionResult; message?: string | null }; +}; export type AssignPromotionToChannelMutationVariables = Exact<{ - input: AssignPromotionsToChannelInput; + input: AssignPromotionsToChannelInput; }>; - -export type AssignPromotionToChannelMutation = { assignPromotionsToChannel: Array<{ id: string, name: string }> }; +export type AssignPromotionToChannelMutation = { + assignPromotionsToChannel: Array<{ id: string; name: string }>; +}; export type RemovePromotionFromChannelMutationVariables = Exact<{ - input: RemovePromotionsFromChannelInput; + input: RemovePromotionsFromChannelInput; }>; - -export type RemovePromotionFromChannelMutation = { removePromotionsFromChannel: Array<{ id: string, name: string }> }; +export type RemovePromotionFromChannelMutation = { + removePromotionsFromChannel: Array<{ id: string; name: string }>; +}; export type GetTaxRatesQueryVariables = Exact<{ - options?: InputMaybe; -}>; - - -export type GetTaxRatesQuery = { taxRates: { totalItems: number, items: Array<{ id: string, name: string, enabled: boolean, value: number, category: { id: string, name: string }, zone: { id: string, name: string }, customerGroup?: { id: string, name: string } | null }> } }; - -export type GetShippingMethodListQueryVariables = Exact<{ [key: string]: never; }>; - - -export type GetShippingMethodListQuery = { shippingMethods: { totalItems: number, items: Array<{ id: string, code: string, name: string, description: string, calculator: { code: string, args: Array<{ name: string, value: string }> }, checker: { code: string, args: Array<{ name: string, value: string }> } }> } }; - -export type GetCollectionsQueryVariables = Exact<{ [key: string]: never; }>; - - -export type GetCollectionsQuery = { collections: { items: Array<{ id: string, name: string, position: number, parent?: { id: string, name: string } | null }> } }; + options?: InputMaybe; +}>; + +export type GetTaxRatesQuery = { + taxRates: { + totalItems: number; + items: Array<{ + id: string; + name: string; + enabled: boolean; + value: number; + category: { id: string; name: string }; + zone: { id: string; name: string }; + customerGroup?: { id: string; name: string } | null; + }>; + }; +}; + +export type GetShippingMethodListQueryVariables = Exact<{ [key: string]: never }>; + +export type GetShippingMethodListQuery = { + shippingMethods: { + totalItems: number; + items: Array<{ + id: string; + code: string; + name: string; + description: string; + calculator: { code: string; args: Array<{ name: string; value: string }> }; + checker: { code: string; args: Array<{ name: string; value: string }> }; + }>; + }; +}; + +export type GetCollectionsQueryVariables = Exact<{ [key: string]: never }>; + +export type GetCollectionsQuery = { + collections: { + items: Array<{ + id: string; + name: string; + position: number; + parent?: { id: string; name: string } | null; + }>; + }; +}; export type TransitionPaymentToStateMutationVariables = Exact<{ - id: Scalars['ID']; - state: Scalars['String']; + id: Scalars['ID']; + state: Scalars['String']; }>; - -export type TransitionPaymentToStateMutation = { transitionPaymentToState: { id: string, transactionId?: string | null, amount: number, method: string, state: string, nextStates: Array, metadata?: any | null, refunds: Array<{ id: string, total: number, reason?: string | null }> } | { errorCode: ErrorCode, message: string, transitionError: string } }; +export type TransitionPaymentToStateMutation = { + transitionPaymentToState: + | { + id: string; + transactionId?: string | null; + amount: number; + method: string; + state: string; + nextStates: Array; + metadata?: any | null; + refunds: Array<{ id: string; total: number; reason?: string | null }>; + } + | { errorCode: ErrorCode; message: string; transitionError: string }; +}; export type GetProductVariantListQueryVariables = Exact<{ - options?: InputMaybe; - productId?: InputMaybe; + options?: InputMaybe; + productId?: InputMaybe; }>; - -export type GetProductVariantListQuery = { productVariants: { totalItems: number, items: Array<{ id: string, name: string, sku: string, price: number, priceWithTax: number }> } }; +export type GetProductVariantListQuery = { + productVariants: { + totalItems: number; + items: Array<{ id: string; name: string; sku: string; price: number; priceWithTax: number }>; + }; +}; export type DeletePromotionMutationVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; - export type DeletePromotionMutation = { deletePromotion: { result: DeletionResult } }; -export type GetChannelsQueryVariables = Exact<{ [key: string]: never; }>; +export type GetChannelsQueryVariables = Exact<{ [key: string]: never }>; - -export type GetChannelsQuery = { channels: Array<{ id: string, code: string, token: string }> }; +export type GetChannelsQuery = { channels: Array<{ id: string; code: string; token: string }> }; export type UpdateAdministratorMutationVariables = Exact<{ - input: UpdateAdministratorInput; + input: UpdateAdministratorInput; }>; - -export type UpdateAdministratorMutation = { updateAdministrator: { id: string, firstName: string, lastName: string, emailAddress: string, user: { id: string, identifier: string, lastLogin?: any | null, roles: Array<{ id: string, code: string, description: string, permissions: Array }> } } }; +export type UpdateAdministratorMutation = { + updateAdministrator: { + id: string; + firstName: string; + lastName: string; + emailAddress: string; + user: { + id: string; + identifier: string; + lastLogin?: any | null; + roles: Array<{ id: string; code: string; description: string; permissions: Array }>; + }; + }; +}; export type CancelJobMutationVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; - -export type CancelJobMutation = { cancelJob: { id: string, state: JobState, isSettled: boolean, settledAt?: any | null } }; +export type CancelJobMutation = { + cancelJob: { id: string; state: JobState; isSettled: boolean; settledAt?: any | null }; +}; export type UpdateOptionGroupMutationVariables = Exact<{ - input: UpdateProductOptionGroupInput; + input: UpdateProductOptionGroupInput; }>; - export type UpdateOptionGroupMutation = { updateProductOptionGroup: { id: string } }; -export type GetFulfillmentHandlersQueryVariables = Exact<{ [key: string]: never; }>; - - -export type GetFulfillmentHandlersQuery = { fulfillmentHandlers: Array<{ code: string, description: string, args: Array<{ name: string, type: string, description?: string | null, label?: string | null, ui?: any | null }> }> }; - -export type OrderWithModificationsFragment = { id: string, state: string, subTotal: number, subTotalWithTax: number, shipping: number, shippingWithTax: number, total: number, totalWithTax: number, lines: Array<{ id: string, quantity: number, linePrice: number, linePriceWithTax: number, discountedLinePriceWithTax: number, proratedLinePriceWithTax: number, discounts: Array<{ description: string, amountWithTax: number }>, productVariant: { id: string, name: string }, items: Array<{ id: string, createdAt: any, updatedAt: any, cancelled: boolean, unitPrice: number }> }>, surcharges: Array<{ id: string, description: string, sku?: string | null, price: number, priceWithTax: number, taxRate: number }>, payments?: Array<{ id: string, transactionId?: string | null, state: string, amount: number, method: string, metadata?: any | null, refunds: Array<{ id: string, state: string, total: number, paymentId: string }> }> | null, modifications: Array<{ id: string, note: string, priceChange: number, isSettled: boolean, orderItems?: Array<{ id: string }> | null, surcharges?: Array<{ id: string }> | null, payment?: { id: string, state: string, amount: number, method: string } | null, refund?: { id: string, state: string, total: number, paymentId: string } | null }>, promotions: Array<{ id: string, name: string, couponCode?: string | null }>, discounts: Array<{ description: string, adjustmentSource: string, amount: number, amountWithTax: number }>, shippingAddress?: { streetLine1?: string | null, city?: string | null, postalCode?: string | null, province?: string | null, countryCode?: string | null, country?: string | null } | null, billingAddress?: { streetLine1?: string | null, city?: string | null, postalCode?: string | null, province?: string | null, countryCode?: string | null, country?: string | null } | null }; +export type GetFulfillmentHandlersQueryVariables = Exact<{ [key: string]: never }>; + +export type GetFulfillmentHandlersQuery = { + fulfillmentHandlers: Array<{ + code: string; + description: string; + args: Array<{ + name: string; + type: string; + description?: string | null; + label?: string | null; + ui?: any | null; + }>; + }>; +}; + +export type OrderWithModificationsFragment = { + id: string; + state: string; + subTotal: number; + subTotalWithTax: number; + shipping: number; + shippingWithTax: number; + total: number; + totalWithTax: number; + lines: Array<{ + id: string; + quantity: number; + linePrice: number; + linePriceWithTax: number; + discountedLinePriceWithTax: number; + proratedLinePriceWithTax: number; + discounts: Array<{ description: string; amountWithTax: number }>; + productVariant: { id: string; name: string }; + items: Array<{ id: string; createdAt: any; updatedAt: any; cancelled: boolean; unitPrice: number }>; + }>; + surcharges: Array<{ + id: string; + description: string; + sku?: string | null; + price: number; + priceWithTax: number; + taxRate: number; + }>; + payments?: Array<{ + id: string; + transactionId?: string | null; + state: string; + amount: number; + method: string; + metadata?: any | null; + refunds: Array<{ id: string; state: string; total: number; paymentId: string }>; + }> | null; + modifications: Array<{ + id: string; + note: string; + priceChange: number; + isSettled: boolean; + orderItems?: Array<{ id: string }> | null; + surcharges?: Array<{ id: string }> | null; + payment?: { id: string; state: string; amount: number; method: string } | null; + refund?: { id: string; state: string; total: number; paymentId: string } | null; + }>; + promotions: Array<{ id: string; name: string; couponCode?: string | null }>; + discounts: Array<{ + description: string; + adjustmentSource: string; + amount: number; + amountWithTax: number; + }>; + shippingAddress?: { + streetLine1?: string | null; + city?: string | null; + postalCode?: string | null; + province?: string | null; + countryCode?: string | null; + country?: string | null; + } | null; + billingAddress?: { + streetLine1?: string | null; + city?: string | null; + postalCode?: string | null; + province?: string | null; + countryCode?: string | null; + country?: string | null; + } | null; +}; export type GetOrderWithModificationsQueryVariables = Exact<{ - id: Scalars['ID']; -}>; - - -export type GetOrderWithModificationsQuery = { order?: { id: string, state: string, subTotal: number, subTotalWithTax: number, shipping: number, shippingWithTax: number, total: number, totalWithTax: number, lines: Array<{ id: string, quantity: number, linePrice: number, linePriceWithTax: number, discountedLinePriceWithTax: number, proratedLinePriceWithTax: number, discounts: Array<{ description: string, amountWithTax: number }>, productVariant: { id: string, name: string }, items: Array<{ id: string, createdAt: any, updatedAt: any, cancelled: boolean, unitPrice: number }> }>, surcharges: Array<{ id: string, description: string, sku?: string | null, price: number, priceWithTax: number, taxRate: number }>, payments?: Array<{ id: string, transactionId?: string | null, state: string, amount: number, method: string, metadata?: any | null, refunds: Array<{ id: string, state: string, total: number, paymentId: string }> }> | null, modifications: Array<{ id: string, note: string, priceChange: number, isSettled: boolean, orderItems?: Array<{ id: string }> | null, surcharges?: Array<{ id: string }> | null, payment?: { id: string, state: string, amount: number, method: string } | null, refund?: { id: string, state: string, total: number, paymentId: string } | null }>, promotions: Array<{ id: string, name: string, couponCode?: string | null }>, discounts: Array<{ description: string, adjustmentSource: string, amount: number, amountWithTax: number }>, shippingAddress?: { streetLine1?: string | null, city?: string | null, postalCode?: string | null, province?: string | null, countryCode?: string | null, country?: string | null } | null, billingAddress?: { streetLine1?: string | null, city?: string | null, postalCode?: string | null, province?: string | null, countryCode?: string | null, country?: string | null } | null } | null }; + id: Scalars['ID']; +}>; + +export type GetOrderWithModificationsQuery = { + order?: { + id: string; + state: string; + subTotal: number; + subTotalWithTax: number; + shipping: number; + shippingWithTax: number; + total: number; + totalWithTax: number; + lines: Array<{ + id: string; + quantity: number; + linePrice: number; + linePriceWithTax: number; + discountedLinePriceWithTax: number; + proratedLinePriceWithTax: number; + discounts: Array<{ description: string; amountWithTax: number }>; + productVariant: { id: string; name: string }; + items: Array<{ + id: string; + createdAt: any; + updatedAt: any; + cancelled: boolean; + unitPrice: number; + }>; + }>; + surcharges: Array<{ + id: string; + description: string; + sku?: string | null; + price: number; + priceWithTax: number; + taxRate: number; + }>; + payments?: Array<{ + id: string; + transactionId?: string | null; + state: string; + amount: number; + method: string; + metadata?: any | null; + refunds: Array<{ id: string; state: string; total: number; paymentId: string }>; + }> | null; + modifications: Array<{ + id: string; + note: string; + priceChange: number; + isSettled: boolean; + orderItems?: Array<{ id: string }> | null; + surcharges?: Array<{ id: string }> | null; + payment?: { id: string; state: string; amount: number; method: string } | null; + refund?: { id: string; state: string; total: number; paymentId: string } | null; + }>; + promotions: Array<{ id: string; name: string; couponCode?: string | null }>; + discounts: Array<{ + description: string; + adjustmentSource: string; + amount: number; + amountWithTax: number; + }>; + shippingAddress?: { + streetLine1?: string | null; + city?: string | null; + postalCode?: string | null; + province?: string | null; + countryCode?: string | null; + country?: string | null; + } | null; + billingAddress?: { + streetLine1?: string | null; + city?: string | null; + postalCode?: string | null; + province?: string | null; + countryCode?: string | null; + country?: string | null; + } | null; + } | null; +}; export type ModifyOrderMutationVariables = Exact<{ - input: ModifyOrderInput; -}>; - - -export type ModifyOrderMutation = { modifyOrder: { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } | { id: string, state: string, subTotal: number, subTotalWithTax: number, shipping: number, shippingWithTax: number, total: number, totalWithTax: number, lines: Array<{ id: string, quantity: number, linePrice: number, linePriceWithTax: number, discountedLinePriceWithTax: number, proratedLinePriceWithTax: number, discounts: Array<{ description: string, amountWithTax: number }>, productVariant: { id: string, name: string }, items: Array<{ id: string, createdAt: any, updatedAt: any, cancelled: boolean, unitPrice: number }> }>, surcharges: Array<{ id: string, description: string, sku?: string | null, price: number, priceWithTax: number, taxRate: number }>, payments?: Array<{ id: string, transactionId?: string | null, state: string, amount: number, method: string, metadata?: any | null, refunds: Array<{ id: string, state: string, total: number, paymentId: string }> }> | null, modifications: Array<{ id: string, note: string, priceChange: number, isSettled: boolean, orderItems?: Array<{ id: string }> | null, surcharges?: Array<{ id: string }> | null, payment?: { id: string, state: string, amount: number, method: string } | null, refund?: { id: string, state: string, total: number, paymentId: string } | null }>, promotions: Array<{ id: string, name: string, couponCode?: string | null }>, discounts: Array<{ description: string, adjustmentSource: string, amount: number, amountWithTax: number }>, shippingAddress?: { streetLine1?: string | null, city?: string | null, postalCode?: string | null, province?: string | null, countryCode?: string | null, country?: string | null } | null, billingAddress?: { streetLine1?: string | null, city?: string | null, postalCode?: string | null, province?: string | null, countryCode?: string | null, country?: string | null } | null } | { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } }; + input: ModifyOrderInput; +}>; + +export type ModifyOrderMutation = { + modifyOrder: + | { errorCode: ErrorCode; message: string } + | { errorCode: ErrorCode; message: string } + | { errorCode: ErrorCode; message: string } + | { errorCode: ErrorCode; message: string } + | { errorCode: ErrorCode; message: string } + | { errorCode: ErrorCode; message: string } + | { + id: string; + state: string; + subTotal: number; + subTotalWithTax: number; + shipping: number; + shippingWithTax: number; + total: number; + totalWithTax: number; + lines: Array<{ + id: string; + quantity: number; + linePrice: number; + linePriceWithTax: number; + discountedLinePriceWithTax: number; + proratedLinePriceWithTax: number; + discounts: Array<{ description: string; amountWithTax: number }>; + productVariant: { id: string; name: string }; + items: Array<{ + id: string; + createdAt: any; + updatedAt: any; + cancelled: boolean; + unitPrice: number; + }>; + }>; + surcharges: Array<{ + id: string; + description: string; + sku?: string | null; + price: number; + priceWithTax: number; + taxRate: number; + }>; + payments?: Array<{ + id: string; + transactionId?: string | null; + state: string; + amount: number; + method: string; + metadata?: any | null; + refunds: Array<{ id: string; state: string; total: number; paymentId: string }>; + }> | null; + modifications: Array<{ + id: string; + note: string; + priceChange: number; + isSettled: boolean; + orderItems?: Array<{ id: string }> | null; + surcharges?: Array<{ id: string }> | null; + payment?: { id: string; state: string; amount: number; method: string } | null; + refund?: { id: string; state: string; total: number; paymentId: string } | null; + }>; + promotions: Array<{ id: string; name: string; couponCode?: string | null }>; + discounts: Array<{ + description: string; + adjustmentSource: string; + amount: number; + amountWithTax: number; + }>; + shippingAddress?: { + streetLine1?: string | null; + city?: string | null; + postalCode?: string | null; + province?: string | null; + countryCode?: string | null; + country?: string | null; + } | null; + billingAddress?: { + streetLine1?: string | null; + city?: string | null; + postalCode?: string | null; + province?: string | null; + countryCode?: string | null; + country?: string | null; + } | null; + } + | { errorCode: ErrorCode; message: string } + | { errorCode: ErrorCode; message: string } + | { errorCode: ErrorCode; message: string } + | { errorCode: ErrorCode; message: string }; +}; export type AddManualPaymentMutationVariables = Exact<{ - input: ManualPaymentInput; -}>; - - -export type AddManualPaymentMutation = { addManualPaymentToOrder: { errorCode: ErrorCode, message: string } | { id: string, state: string, subTotal: number, subTotalWithTax: number, shipping: number, shippingWithTax: number, total: number, totalWithTax: number, lines: Array<{ id: string, quantity: number, linePrice: number, linePriceWithTax: number, discountedLinePriceWithTax: number, proratedLinePriceWithTax: number, discounts: Array<{ description: string, amountWithTax: number }>, productVariant: { id: string, name: string }, items: Array<{ id: string, createdAt: any, updatedAt: any, cancelled: boolean, unitPrice: number }> }>, surcharges: Array<{ id: string, description: string, sku?: string | null, price: number, priceWithTax: number, taxRate: number }>, payments?: Array<{ id: string, transactionId?: string | null, state: string, amount: number, method: string, metadata?: any | null, refunds: Array<{ id: string, state: string, total: number, paymentId: string }> }> | null, modifications: Array<{ id: string, note: string, priceChange: number, isSettled: boolean, orderItems?: Array<{ id: string }> | null, surcharges?: Array<{ id: string }> | null, payment?: { id: string, state: string, amount: number, method: string } | null, refund?: { id: string, state: string, total: number, paymentId: string } | null }>, promotions: Array<{ id: string, name: string, couponCode?: string | null }>, discounts: Array<{ description: string, adjustmentSource: string, amount: number, amountWithTax: number }>, shippingAddress?: { streetLine1?: string | null, city?: string | null, postalCode?: string | null, province?: string | null, countryCode?: string | null, country?: string | null } | null, billingAddress?: { streetLine1?: string | null, city?: string | null, postalCode?: string | null, province?: string | null, countryCode?: string | null, country?: string | null } | null } }; - -export type DeletePromotionAdHoc1MutationVariables = Exact<{ [key: string]: never; }>; - + input: ManualPaymentInput; +}>; + +export type AddManualPaymentMutation = { + addManualPaymentToOrder: + | { errorCode: ErrorCode; message: string } + | { + id: string; + state: string; + subTotal: number; + subTotalWithTax: number; + shipping: number; + shippingWithTax: number; + total: number; + totalWithTax: number; + lines: Array<{ + id: string; + quantity: number; + linePrice: number; + linePriceWithTax: number; + discountedLinePriceWithTax: number; + proratedLinePriceWithTax: number; + discounts: Array<{ description: string; amountWithTax: number }>; + productVariant: { id: string; name: string }; + items: Array<{ + id: string; + createdAt: any; + updatedAt: any; + cancelled: boolean; + unitPrice: number; + }>; + }>; + surcharges: Array<{ + id: string; + description: string; + sku?: string | null; + price: number; + priceWithTax: number; + taxRate: number; + }>; + payments?: Array<{ + id: string; + transactionId?: string | null; + state: string; + amount: number; + method: string; + metadata?: any | null; + refunds: Array<{ id: string; state: string; total: number; paymentId: string }>; + }> | null; + modifications: Array<{ + id: string; + note: string; + priceChange: number; + isSettled: boolean; + orderItems?: Array<{ id: string }> | null; + surcharges?: Array<{ id: string }> | null; + payment?: { id: string; state: string; amount: number; method: string } | null; + refund?: { id: string; state: string; total: number; paymentId: string } | null; + }>; + promotions: Array<{ id: string; name: string; couponCode?: string | null }>; + discounts: Array<{ + description: string; + adjustmentSource: string; + amount: number; + amountWithTax: number; + }>; + shippingAddress?: { + streetLine1?: string | null; + city?: string | null; + postalCode?: string | null; + province?: string | null; + countryCode?: string | null; + country?: string | null; + } | null; + billingAddress?: { + streetLine1?: string | null; + city?: string | null; + postalCode?: string | null; + province?: string | null; + countryCode?: string | null; + country?: string | null; + } | null; + }; +}; + +export type DeletePromotionAdHoc1MutationVariables = Exact<{ [key: string]: never }>; export type DeletePromotionAdHoc1Mutation = { deletePromotion: { result: DeletionResult } }; export type GetTaxRateListQueryVariables = Exact<{ - options?: InputMaybe; + options?: InputMaybe; }>; - -export type GetTaxRateListQuery = { taxRates: { totalItems: number, items: Array<{ id: string, name: string, enabled: boolean, value: number, category: { id: string, name: string }, zone: { id: string, name: string } }> } }; +export type GetTaxRateListQuery = { + taxRates: { + totalItems: number; + items: Array<{ + id: string; + name: string; + enabled: boolean; + value: number; + category: { id: string; name: string }; + zone: { id: string; name: string }; + }>; + }; +}; export type GetOrderWithLineCalculatedPropsQueryVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; +export type GetOrderWithLineCalculatedPropsQuery = { + order?: { id: string; lines: Array<{ id: string; linePriceWithTax: number; quantity: number }> } | null; +}; -export type GetOrderWithLineCalculatedPropsQuery = { order?: { id: string, lines: Array<{ id: string, linePriceWithTax: number, quantity: number }> } | null }; - -export type GetOrderListFulfillmentsQueryVariables = Exact<{ [key: string]: never; }>; - +export type GetOrderListFulfillmentsQueryVariables = Exact<{ [key: string]: never }>; -export type GetOrderListFulfillmentsQuery = { orders: { items: Array<{ id: string, state: string, fulfillments?: Array<{ id: string, state: string, nextStates: Array, method: string }> | null }> } }; +export type GetOrderListFulfillmentsQuery = { + orders: { + items: Array<{ + id: string; + state: string; + fulfillments?: Array<{ + id: string; + state: string; + nextStates: Array; + method: string; + }> | null; + }>; + }; +}; export type GetOrderFulfillmentItemsQueryVariables = Exact<{ - id: Scalars['ID']; -}>; - - -export type GetOrderFulfillmentItemsQuery = { order?: { id: string, state: string, fulfillments?: Array<{ id: string, state: string, nextStates: Array, method: string, trackingCode?: string | null, orderItems: Array<{ id: string }> }> | null } | null }; - -export type RefundFragment = { id: string, state: string, items: number, transactionId?: string | null, shipping: number, total: number, metadata?: any | null }; + id: Scalars['ID']; +}>; + +export type GetOrderFulfillmentItemsQuery = { + order?: { + id: string; + state: string; + fulfillments?: Array<{ + id: string; + state: string; + nextStates: Array; + method: string; + trackingCode?: string | null; + orderItems: Array<{ id: string }>; + }> | null; + } | null; +}; + +export type RefundFragment = { + id: string; + state: string; + items: number; + transactionId?: string | null; + shipping: number; + total: number; + metadata?: any | null; +}; export type RefundOrderMutationVariables = Exact<{ - input: RefundOrderInput; -}>; - - -export type RefundOrderMutation = { refundOrder: { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } | { id: string, state: string, items: number, transactionId?: string | null, shipping: number, total: number, metadata?: any | null } | { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } }; + input: RefundOrderInput; +}>; + +export type RefundOrderMutation = { + refundOrder: + | { errorCode: ErrorCode; message: string } + | { errorCode: ErrorCode; message: string } + | { errorCode: ErrorCode; message: string } + | { errorCode: ErrorCode; message: string } + | { errorCode: ErrorCode; message: string } + | { errorCode: ErrorCode; message: string } + | { + id: string; + state: string; + items: number; + transactionId?: string | null; + shipping: number; + total: number; + metadata?: any | null; + } + | { errorCode: ErrorCode; message: string } + | { errorCode: ErrorCode; message: string }; +}; export type SettleRefundMutationVariables = Exact<{ - input: SettleRefundInput; + input: SettleRefundInput; }>; - -export type SettleRefundMutation = { settleRefund: { id: string, state: string, items: number, transactionId?: string | null, shipping: number, total: number, metadata?: any | null } | { errorCode: ErrorCode, message: string } }; +export type SettleRefundMutation = { + settleRefund: + | { + id: string; + state: string; + items: number; + transactionId?: string | null; + shipping: number; + total: number; + metadata?: any | null; + } + | { errorCode: ErrorCode; message: string }; +}; export type AddNoteToOrderMutationVariables = Exact<{ - input: AddNoteToOrderInput; + input: AddNoteToOrderInput; }>; - export type AddNoteToOrderMutation = { addNoteToOrder: { id: string } }; export type UpdateOrderNoteMutationVariables = Exact<{ - input: UpdateOrderNoteInput; + input: UpdateOrderNoteInput; }>; - -export type UpdateOrderNoteMutation = { updateOrderNote: { id: string, data: any, isPublic: boolean } }; +export type UpdateOrderNoteMutation = { updateOrderNote: { id: string; data: any; isPublic: boolean } }; export type DeleteOrderNoteMutationVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; - -export type DeleteOrderNoteMutation = { deleteOrderNote: { result: DeletionResult, message?: string | null } }; +export type DeleteOrderNoteMutation = { + deleteOrderNote: { result: DeletionResult; message?: string | null }; +}; export type GetOrderWithPaymentsQueryVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; - -export type GetOrderWithPaymentsQuery = { order?: { id: string, payments?: Array<{ id: string, errorMessage?: string | null, metadata?: any | null, refunds: Array<{ id: string, total: number }> }> | null } | null }; +export type GetOrderWithPaymentsQuery = { + order?: { + id: string; + payments?: Array<{ + id: string; + errorMessage?: string | null; + metadata?: any | null; + refunds: Array<{ id: string; total: number }>; + }> | null; + } | null; +}; export type GetOrderLineFulfillmentsQueryVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; - -export type GetOrderLineFulfillmentsQuery = { order?: { id: string, lines: Array<{ id: string, fulfillments?: Array<{ id: string, state: string, summary: Array<{ quantity: number, orderLine: { id: string } }> }> | null }> } | null }; +export type GetOrderLineFulfillmentsQuery = { + order?: { + id: string; + lines: Array<{ + id: string; + fulfillments?: Array<{ + id: string; + state: string; + summary: Array<{ quantity: number; orderLine: { id: string } }>; + }> | null; + }>; + } | null; +}; export type GetOrderListWithQtyQueryVariables = Exact<{ - options?: InputMaybe; + options?: InputMaybe; }>; - -export type GetOrderListWithQtyQuery = { orders: { items: Array<{ id: string, code: string, totalQuantity: number, lines: Array<{ id: string, quantity: number }> }> } }; +export type GetOrderListWithQtyQuery = { + orders: { + items: Array<{ + id: string; + code: string; + totalQuantity: number; + lines: Array<{ id: string; quantity: number }>; + }>; + }; +}; export type CancelPaymentMutationVariables = Exact<{ - paymentId: Scalars['ID']; -}>; - - -export type CancelPaymentMutation = { cancelPayment: { errorCode: ErrorCode, message: string, paymentErrorMessage: string } | { id: string, transactionId?: string | null, amount: number, method: string, state: string, nextStates: Array, metadata?: any | null, refunds: Array<{ id: string, total: number, reason?: string | null }> } | { errorCode: ErrorCode, message: string, transitionError: string } }; - -export type PaymentMethodFragment = { id: string, code: string, name: string, description: string, enabled: boolean, checker?: { code: string, args: Array<{ name: string, value: string }> } | null, handler: { code: string, args: Array<{ name: string, value: string }> } }; + paymentId: Scalars['ID']; +}>; + +export type CancelPaymentMutation = { + cancelPayment: + | { errorCode: ErrorCode; message: string; paymentErrorMessage: string } + | { + id: string; + transactionId?: string | null; + amount: number; + method: string; + state: string; + nextStates: Array; + metadata?: any | null; + refunds: Array<{ id: string; total: number; reason?: string | null }>; + } + | { errorCode: ErrorCode; message: string; transitionError: string }; +}; + +export type PaymentMethodFragment = { + id: string; + code: string; + name: string; + description: string; + enabled: boolean; + checker?: { code: string; args: Array<{ name: string; value: string }> } | null; + handler: { code: string; args: Array<{ name: string; value: string }> }; +}; export type CreatePaymentMethodMutationVariables = Exact<{ - input: CreatePaymentMethodInput; + input: CreatePaymentMethodInput; }>; - -export type CreatePaymentMethodMutation = { createPaymentMethod: { id: string, code: string, name: string, description: string, enabled: boolean, checker?: { code: string, args: Array<{ name: string, value: string }> } | null, handler: { code: string, args: Array<{ name: string, value: string }> } } }; +export type CreatePaymentMethodMutation = { + createPaymentMethod: { + id: string; + code: string; + name: string; + description: string; + enabled: boolean; + checker?: { code: string; args: Array<{ name: string; value: string }> } | null; + handler: { code: string; args: Array<{ name: string; value: string }> }; + }; +}; export type UpdatePaymentMethodMutationVariables = Exact<{ - input: UpdatePaymentMethodInput; + input: UpdatePaymentMethodInput; }>; +export type UpdatePaymentMethodMutation = { + updatePaymentMethod: { + id: string; + code: string; + name: string; + description: string; + enabled: boolean; + checker?: { code: string; args: Array<{ name: string; value: string }> } | null; + handler: { code: string; args: Array<{ name: string; value: string }> }; + }; +}; -export type UpdatePaymentMethodMutation = { updatePaymentMethod: { id: string, code: string, name: string, description: string, enabled: boolean, checker?: { code: string, args: Array<{ name: string, value: string }> } | null, handler: { code: string, args: Array<{ name: string, value: string }> } } }; - -export type GetPaymentMethodHandlersQueryVariables = Exact<{ [key: string]: never; }>; - - -export type GetPaymentMethodHandlersQuery = { paymentMethodHandlers: Array<{ code: string, args: Array<{ name: string, type: string }> }> }; +export type GetPaymentMethodHandlersQueryVariables = Exact<{ [key: string]: never }>; -export type GetPaymentMethodCheckersQueryVariables = Exact<{ [key: string]: never; }>; +export type GetPaymentMethodHandlersQuery = { + paymentMethodHandlers: Array<{ code: string; args: Array<{ name: string; type: string }> }>; +}; +export type GetPaymentMethodCheckersQueryVariables = Exact<{ [key: string]: never }>; -export type GetPaymentMethodCheckersQuery = { paymentMethodEligibilityCheckers: Array<{ code: string, args: Array<{ name: string, type: string }> }> }; +export type GetPaymentMethodCheckersQuery = { + paymentMethodEligibilityCheckers: Array<{ code: string; args: Array<{ name: string; type: string }> }>; +}; export type GetPaymentMethodQueryVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; - -export type GetPaymentMethodQuery = { paymentMethod?: { id: string, code: string, name: string, description: string, enabled: boolean, checker?: { code: string, args: Array<{ name: string, value: string }> } | null, handler: { code: string, args: Array<{ name: string, value: string }> } } | null }; +export type GetPaymentMethodQuery = { + paymentMethod?: { + id: string; + code: string; + name: string; + description: string; + enabled: boolean; + checker?: { code: string; args: Array<{ name: string; value: string }> } | null; + handler: { code: string; args: Array<{ name: string; value: string }> }; + } | null; +}; export type GetPaymentMethodListQueryVariables = Exact<{ - options?: InputMaybe; + options?: InputMaybe; }>; - -export type GetPaymentMethodListQuery = { paymentMethods: { totalItems: number, items: Array<{ id: string, code: string, name: string, description: string, enabled: boolean, checker?: { code: string, args: Array<{ name: string, value: string }> } | null, handler: { code: string, args: Array<{ name: string, value: string }> } }> } }; +export type GetPaymentMethodListQuery = { + paymentMethods: { + totalItems: number; + items: Array<{ + id: string; + code: string; + name: string; + description: string; + enabled: boolean; + checker?: { code: string; args: Array<{ name: string; value: string }> } | null; + handler: { code: string; args: Array<{ name: string; value: string }> }; + }>; + }; +}; export type DeletePaymentMethodMutationVariables = Exact<{ - id: Scalars['ID']; - force?: InputMaybe; + id: Scalars['ID']; + force?: InputMaybe; }>; - -export type DeletePaymentMethodMutation = { deletePaymentMethod: { message?: string | null, result: DeletionResult } }; +export type DeletePaymentMethodMutation = { + deletePaymentMethod: { message?: string | null; result: DeletionResult }; +}; export type AddManualPayment2MutationVariables = Exact<{ - input: ManualPaymentInput; -}>; - - -export type AddManualPayment2Mutation = { addManualPaymentToOrder: { errorCode: ErrorCode, message: string } | { id: string, createdAt: any, updatedAt: any, code: string, state: string, active: boolean, subTotal: number, subTotalWithTax: number, total: number, totalWithTax: number, totalQuantity: number, currencyCode: CurrencyCode, shipping: number, shippingWithTax: number, customer?: { id: string, firstName: string, lastName: string } | null, lines: Array<{ id: string, unitPrice: number, unitPriceWithTax: number, quantity: number, linePriceWithTax: number, featuredAsset?: { preview: string } | null, productVariant: { id: string, name: string, sku: string }, items: Array<{ id: string, cancelled: boolean, unitPrice: number, unitPriceWithTax: number, taxRate: number, fulfillment?: { id: string } | null }> }>, surcharges: Array<{ id: string, description: string, sku?: string | null, price: number, priceWithTax: number }>, shippingLines: Array<{ priceWithTax: number, shippingMethod: { id: string, code: string, name: string, description: string } }>, shippingAddress?: { fullName?: string | null, company?: string | null, streetLine1?: string | null, streetLine2?: string | null, city?: string | null, province?: string | null, postalCode?: string | null, country?: string | null, phoneNumber?: string | null } | null, payments?: Array<{ id: string, transactionId?: string | null, amount: number, method: string, state: string, nextStates: Array, metadata?: any | null, refunds: Array<{ id: string, total: number, reason?: string | null }> }> | null } }; + input: ManualPaymentInput; +}>; + +export type AddManualPayment2Mutation = { + addManualPaymentToOrder: + | { errorCode: ErrorCode; message: string } + | { + id: string; + createdAt: any; + updatedAt: any; + code: string; + state: string; + active: boolean; + subTotal: number; + subTotalWithTax: number; + total: number; + totalWithTax: number; + totalQuantity: number; + currencyCode: CurrencyCode; + shipping: number; + shippingWithTax: number; + customer?: { id: string; firstName: string; lastName: string } | null; + lines: Array<{ + id: string; + unitPrice: number; + unitPriceWithTax: number; + quantity: number; + linePriceWithTax: number; + featuredAsset?: { preview: string } | null; + productVariant: { id: string; name: string; sku: string }; + items: Array<{ + id: string; + cancelled: boolean; + unitPrice: number; + unitPriceWithTax: number; + taxRate: number; + fulfillment?: { id: string } | null; + }>; + }>; + surcharges: Array<{ + id: string; + description: string; + sku?: string | null; + price: number; + priceWithTax: number; + }>; + shippingLines: Array<{ + priceWithTax: number; + shippingMethod: { id: string; code: string; name: string; description: string }; + }>; + shippingAddress?: { + fullName?: string | null; + company?: string | null; + streetLine1?: string | null; + streetLine2?: string | null; + city?: string | null; + province?: string | null; + postalCode?: string | null; + country?: string | null; + phoneNumber?: string | null; + } | null; + payments?: Array<{ + id: string; + transactionId?: string | null; + amount: number; + method: string; + state: string; + nextStates: Array; + metadata?: any | null; + refunds: Array<{ id: string; total: number; reason?: string | null }>; + }> | null; + }; +}; export type GetProductOptionGroupQueryVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; - -export type GetProductOptionGroupQuery = { productOptionGroup?: { id: string, code: string, name: string, options: Array<{ id: string, code: string, name: string }> } | null }; +export type GetProductOptionGroupQuery = { + productOptionGroup?: { + id: string; + code: string; + name: string; + options: Array<{ id: string; code: string; name: string }>; + } | null; +}; export type UpdateProductOptionGroupMutationVariables = Exact<{ - input: UpdateProductOptionGroupInput; + input: UpdateProductOptionGroupInput; }>; - -export type UpdateProductOptionGroupMutation = { updateProductOptionGroup: { id: string, code: string, name: string, options: Array<{ id: string, code: string, name: string }>, translations: Array<{ id: string, languageCode: LanguageCode, name: string }> } }; +export type UpdateProductOptionGroupMutation = { + updateProductOptionGroup: { + id: string; + code: string; + name: string; + options: Array<{ id: string; code: string; name: string }>; + translations: Array<{ id: string; languageCode: LanguageCode; name: string }>; + }; +}; export type CreateProductOptionMutationVariables = Exact<{ - input: CreateProductOptionInput; + input: CreateProductOptionInput; }>; - -export type CreateProductOptionMutation = { createProductOption: { id: string, code: string, name: string, groupId: string, translations: Array<{ id: string, languageCode: LanguageCode, name: string }> } }; +export type CreateProductOptionMutation = { + createProductOption: { + id: string; + code: string; + name: string; + groupId: string; + translations: Array<{ id: string; languageCode: LanguageCode; name: string }>; + }; +}; export type UpdateProductOptionMutationVariables = Exact<{ - input: UpdateProductOptionInput; + input: UpdateProductOptionInput; }>; - -export type UpdateProductOptionMutation = { updateProductOption: { id: string, code: string, name: string, groupId: string } }; +export type UpdateProductOptionMutation = { + updateProductOption: { id: string; code: string; name: string; groupId: string }; +}; export type DeleteProductOptionMutationVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; - -export type DeleteProductOptionMutation = { deleteProductOption: { result: DeletionResult, message?: string | null } }; +export type DeleteProductOptionMutation = { + deleteProductOption: { result: DeletionResult; message?: string | null }; +}; export type RemoveOptionGroupFromProductMutationVariables = Exact<{ - productId: Scalars['ID']; - optionGroupId: Scalars['ID']; + productId: Scalars['ID']; + optionGroupId: Scalars['ID']; }>; - -export type RemoveOptionGroupFromProductMutation = { removeOptionGroupFromProduct: { id: string, optionGroups: Array<{ id: string, code: string, options: Array<{ id: string, code: string }> }> } | { errorCode: ErrorCode, message: string, optionGroupCode: string, productVariantCount: number } }; +export type RemoveOptionGroupFromProductMutation = { + removeOptionGroupFromProduct: + | { + id: string; + optionGroups: Array<{ id: string; code: string; options: Array<{ id: string; code: string }> }>; + } + | { errorCode: ErrorCode; message: string; optionGroupCode: string; productVariantCount: number }; +}; export type GetOptionGroupQueryVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; - -export type GetOptionGroupQuery = { productOptionGroup?: { id: string, code: string, options: Array<{ id: string, code: string }> } | null }; +export type GetOptionGroupQuery = { + productOptionGroup?: { id: string; code: string; options: Array<{ id: string; code: string }> } | null; +}; export type GetProductVariantQueryVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; - -export type GetProductVariantQuery = { productVariant?: { id: string, name: string } | null }; +export type GetProductVariantQuery = { productVariant?: { id: string; name: string } | null }; export type GetProductWithVariantListQueryVariables = Exact<{ - id?: InputMaybe; - variantListOptions?: InputMaybe; -}>; - - -export type GetProductWithVariantListQuery = { product?: { id: string, variantList: { totalItems: number, items: Array<{ id: string, createdAt: any, updatedAt: any, enabled: boolean, languageCode: LanguageCode, name: string, currencyCode: CurrencyCode, price: number, priceWithTax: number, stockOnHand: number, trackInventory: GlobalFlag, sku: string, taxRateApplied: { id: string, name: string, value: number }, taxCategory: { id: string, name: string }, options: Array<{ id: string, code: string, languageCode: LanguageCode, name: string }>, facetValues: Array<{ id: string, code: string, name: string, facet: { id: string, name: string } }>, featuredAsset?: { id: string, name: string, fileSize: number, mimeType: string, type: AssetType, preview: string, source: string } | null, assets: Array<{ id: string, name: string, fileSize: number, mimeType: string, type: AssetType, preview: string, source: string }>, translations: Array<{ id: string, languageCode: LanguageCode, name: string }>, channels: Array<{ id: string, code: string }> }> } } | null }; + id?: InputMaybe; + variantListOptions?: InputMaybe; +}>; + +export type GetProductWithVariantListQuery = { + product?: { + id: string; + variantList: { + totalItems: number; + items: Array<{ + id: string; + createdAt: any; + updatedAt: any; + enabled: boolean; + languageCode: LanguageCode; + name: string; + currencyCode: CurrencyCode; + price: number; + priceWithTax: number; + stockOnHand: number; + trackInventory: GlobalFlag; + sku: string; + taxRateApplied: { id: string; name: string; value: number }; + taxCategory: { id: string; name: string }; + options: Array<{ id: string; code: string; languageCode: LanguageCode; name: string }>; + facetValues: Array<{ + id: string; + code: string; + name: string; + facet: { id: string; name: string }; + }>; + featuredAsset?: { + id: string; + name: string; + fileSize: number; + mimeType: string; + type: AssetType; + preview: string; + source: string; + } | null; + assets: Array<{ + id: string; + name: string; + fileSize: number; + mimeType: string; + type: AssetType; + preview: string; + source: string; + }>; + translations: Array<{ id: string; languageCode: LanguageCode; name: string }>; + channels: Array<{ id: string; code: string }>; + }>; + }; + } | null; +}; export type GetPromotionListQueryVariables = Exact<{ - options?: InputMaybe; -}>; - - -export type GetPromotionListQuery = { promotions: { totalItems: number, items: Array<{ id: string, createdAt: any, updatedAt: any, couponCode?: string | null, startsAt?: any | null, endsAt?: any | null, name: string, enabled: boolean, conditions: Array<{ code: string, args: Array<{ name: string, value: string }> }>, actions: Array<{ code: string, args: Array<{ name: string, value: string }> }> }> } }; + options?: InputMaybe; +}>; + +export type GetPromotionListQuery = { + promotions: { + totalItems: number; + items: Array<{ + id: string; + createdAt: any; + updatedAt: any; + couponCode?: string | null; + startsAt?: any | null; + endsAt?: any | null; + name: string; + enabled: boolean; + conditions: Array<{ code: string; args: Array<{ name: string; value: string }> }>; + actions: Array<{ code: string; args: Array<{ name: string; value: string }> }>; + }>; + }; +}; export type GetPromotionQueryVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; - -export type GetPromotionQuery = { promotion?: { id: string, createdAt: any, updatedAt: any, couponCode?: string | null, startsAt?: any | null, endsAt?: any | null, name: string, enabled: boolean, conditions: Array<{ code: string, args: Array<{ name: string, value: string }> }>, actions: Array<{ code: string, args: Array<{ name: string, value: string }> }> } | null }; +export type GetPromotionQuery = { + promotion?: { + id: string; + createdAt: any; + updatedAt: any; + couponCode?: string | null; + startsAt?: any | null; + endsAt?: any | null; + name: string; + enabled: boolean; + conditions: Array<{ code: string; args: Array<{ name: string; value: string }> }>; + actions: Array<{ code: string; args: Array<{ name: string; value: string }> }>; + } | null; +}; export type UpdatePromotionMutationVariables = Exact<{ - input: UpdatePromotionInput; -}>; - - -export type UpdatePromotionMutation = { updatePromotion: { errorCode: ErrorCode, message: string } | { id: string, createdAt: any, updatedAt: any, couponCode?: string | null, startsAt?: any | null, endsAt?: any | null, name: string, enabled: boolean, conditions: Array<{ code: string, args: Array<{ name: string, value: string }> }>, actions: Array<{ code: string, args: Array<{ name: string, value: string }> }> } }; - -export type ConfigurableOperationDefFragment = { code: string, description: string, args: Array<{ name: string, type: string, ui?: any | null }> }; - -export type GetAdjustmentOperationsQueryVariables = Exact<{ [key: string]: never; }>; - - -export type GetAdjustmentOperationsQuery = { promotionActions: Array<{ code: string, description: string, args: Array<{ name: string, type: string, ui?: any | null }> }>, promotionConditions: Array<{ code: string, description: string, args: Array<{ name: string, type: string, ui?: any | null }> }> }; + input: UpdatePromotionInput; +}>; + +export type UpdatePromotionMutation = { + updatePromotion: + | { errorCode: ErrorCode; message: string } + | { + id: string; + createdAt: any; + updatedAt: any; + couponCode?: string | null; + startsAt?: any | null; + endsAt?: any | null; + name: string; + enabled: boolean; + conditions: Array<{ code: string; args: Array<{ name: string; value: string }> }>; + actions: Array<{ code: string; args: Array<{ name: string; value: string }> }>; + }; +}; + +export type ConfigurableOperationDefFragment = { + code: string; + description: string; + args: Array<{ name: string; type: string; ui?: any | null }>; +}; + +export type GetAdjustmentOperationsQueryVariables = Exact<{ [key: string]: never }>; + +export type GetAdjustmentOperationsQuery = { + promotionActions: Array<{ + code: string; + description: string; + args: Array<{ name: string; type: string; ui?: any | null }>; + }>; + promotionConditions: Array<{ + code: string; + description: string; + args: Array<{ name: string; type: string; ui?: any | null }>; + }>; +}; export type GetRolesQueryVariables = Exact<{ - options?: InputMaybe; + options?: InputMaybe; }>; - -export type GetRolesQuery = { roles: { totalItems: number, items: Array<{ id: string, code: string, description: string, permissions: Array, channels: Array<{ id: string, code: string, token: string }> }> } }; +export type GetRolesQuery = { + roles: { + totalItems: number; + items: Array<{ + id: string; + code: string; + description: string; + permissions: Array; + channels: Array<{ id: string; code: string; token: string }>; + }>; + }; +}; export type GetRoleQueryVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; - -export type GetRoleQuery = { role?: { id: string, code: string, description: string, permissions: Array, channels: Array<{ id: string, code: string, token: string }> } | null }; +export type GetRoleQuery = { + role?: { + id: string; + code: string; + description: string; + permissions: Array; + channels: Array<{ id: string; code: string; token: string }>; + } | null; +}; export type DeleteRoleMutationVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; +export type DeleteRoleMutation = { deleteRole: { result: DeletionResult; message?: string | null } }; -export type DeleteRoleMutation = { deleteRole: { result: DeletionResult, message?: string | null } }; - -export type LogoutMutationVariables = Exact<{ [key: string]: never; }>; - +export type LogoutMutationVariables = Exact<{ [key: string]: never }>; export type LogoutMutation = { logout: { success: boolean } }; export type GetShippingMethodQueryVariables = Exact<{ - id: Scalars['ID']; -}>; - - -export type GetShippingMethodQuery = { shippingMethod?: { id: string, code: string, name: string, description: string, calculator: { code: string, args: Array<{ name: string, value: string }> }, checker: { code: string, args: Array<{ name: string, value: string }> } } | null }; - -export type GetEligibilityCheckersQueryVariables = Exact<{ [key: string]: never; }>; - - -export type GetEligibilityCheckersQuery = { shippingEligibilityCheckers: Array<{ code: string, description: string, args: Array<{ name: string, type: string, description?: string | null, label?: string | null, ui?: any | null }> }> }; - -export type GetCalculatorsQueryVariables = Exact<{ [key: string]: never; }>; - - -export type GetCalculatorsQuery = { shippingCalculators: Array<{ code: string, description: string, args: Array<{ name: string, type: string, description?: string | null, label?: string | null, ui?: any | null }> }> }; + id: Scalars['ID']; +}>; + +export type GetShippingMethodQuery = { + shippingMethod?: { + id: string; + code: string; + name: string; + description: string; + calculator: { code: string; args: Array<{ name: string; value: string }> }; + checker: { code: string; args: Array<{ name: string; value: string }> }; + } | null; +}; + +export type GetEligibilityCheckersQueryVariables = Exact<{ [key: string]: never }>; + +export type GetEligibilityCheckersQuery = { + shippingEligibilityCheckers: Array<{ + code: string; + description: string; + args: Array<{ + name: string; + type: string; + description?: string | null; + label?: string | null; + ui?: any | null; + }>; + }>; +}; + +export type GetCalculatorsQueryVariables = Exact<{ [key: string]: never }>; + +export type GetCalculatorsQuery = { + shippingCalculators: Array<{ + code: string; + description: string; + args: Array<{ + name: string; + type: string; + description?: string | null; + label?: string | null; + ui?: any | null; + }>; + }>; +}; export type TestShippingMethodQueryVariables = Exact<{ - input: TestShippingMethodInput; + input: TestShippingMethodInput; }>; - -export type TestShippingMethodQuery = { testShippingMethod: { eligible: boolean, quote?: { price: number, priceWithTax: number, metadata?: any | null } | null } }; +export type TestShippingMethodQuery = { + testShippingMethod: { + eligible: boolean; + quote?: { price: number; priceWithTax: number; metadata?: any | null } | null; + }; +}; export type TestEligibleMethodsQueryVariables = Exact<{ - input: TestEligibleShippingMethodsInput; + input: TestEligibleShippingMethodsInput; }>; +export type TestEligibleMethodsQuery = { + testEligibleShippingMethods: Array<{ + id: string; + name: string; + description: string; + price: number; + priceWithTax: number; + metadata?: any | null; + }>; +}; -export type TestEligibleMethodsQuery = { testEligibleShippingMethods: Array<{ id: string, name: string, description: string, price: number, priceWithTax: number, metadata?: any | null }> }; - -export type GetMeQueryVariables = Exact<{ [key: string]: never; }>; - +export type GetMeQueryVariables = Exact<{ [key: string]: never }>; export type GetMeQuery = { me?: { identifier: string } | null }; -export type GetProductsTake3QueryVariables = Exact<{ [key: string]: never; }>; - +export type GetProductsTake3QueryVariables = Exact<{ [key: string]: never }>; export type GetProductsTake3Query = { products: { items: Array<{ id: string }> } }; -export type GetProduct1QueryVariables = Exact<{ [key: string]: never; }>; - +export type GetProduct1QueryVariables = Exact<{ [key: string]: never }>; export type GetProduct1Query = { product?: { id: string } | null }; -export type GetProduct2VariantsQueryVariables = Exact<{ [key: string]: never; }>; - +export type GetProduct2VariantsQueryVariables = Exact<{ [key: string]: never }>; -export type GetProduct2VariantsQuery = { product?: { id: string, variants: Array<{ id: string, name: string }> } | null }; - -export type GetProductCollectionQueryVariables = Exact<{ [key: string]: never; }>; +export type GetProduct2VariantsQuery = { + product?: { id: string; variants: Array<{ id: string; name: string }> } | null; +}; +export type GetProductCollectionQueryVariables = Exact<{ [key: string]: never }>; -export type GetProductCollectionQuery = { product?: { collections: Array<{ id: string, name: string }> } | null }; +export type GetProductCollectionQuery = { + product?: { collections: Array<{ id: string; name: string }> } | null; +}; export type GetCollectionShopQueryVariables = Exact<{ - id?: InputMaybe; - slug?: InputMaybe; + id?: InputMaybe; + slug?: InputMaybe; }>; - -export type GetCollectionShopQuery = { collection?: { id: string, name: string, slug: string, description: string, parent?: { id: string, name: string } | null, children?: Array<{ id: string, name: string }> | null } | null }; +export type GetCollectionShopQuery = { + collection?: { + id: string; + name: string; + slug: string; + description: string; + parent?: { id: string; name: string } | null; + children?: Array<{ id: string; name: string }> | null; + } | null; +}; export type DisableProductMutationVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; - export type DisableProductMutation = { updateProduct: { id: string } }; export type GetCollectionVariantsQueryVariables = Exact<{ - id?: InputMaybe; - slug?: InputMaybe; + id?: InputMaybe; + slug?: InputMaybe; }>; +export type GetCollectionVariantsQuery = { + collection?: { id: string; productVariants: { items: Array<{ id: string; name: string }> } } | null; +}; -export type GetCollectionVariantsQuery = { collection?: { id: string, productVariants: { items: Array<{ id: string, name: string }> } } | null }; - -export type GetCollectionListQueryVariables = Exact<{ [key: string]: never; }>; - +export type GetCollectionListQueryVariables = Exact<{ [key: string]: never }>; -export type GetCollectionListQuery = { collections: { items: Array<{ id: string, name: string }> } }; +export type GetCollectionListQuery = { collections: { items: Array<{ id: string; name: string }> } }; export type GetProductFacetValuesQueryVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; - -export type GetProductFacetValuesQuery = { product?: { id: string, name: string, facetValues: Array<{ name: string }> } | null }; +export type GetProductFacetValuesQuery = { + product?: { id: string; name: string; facetValues: Array<{ name: string }> } | null; +}; export type GetVariantFacetValuesQueryVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; +export type GetVariantFacetValuesQuery = { + product?: { + id: string; + name: string; + variants: Array<{ id: string; facetValues: Array<{ name: string }> }>; + } | null; +}; -export type GetVariantFacetValuesQuery = { product?: { id: string, name: string, variants: Array<{ id: string, facetValues: Array<{ name: string }> }> } | null }; - -export type GetCustomerIdsQueryVariables = Exact<{ [key: string]: never; }>; - +export type GetCustomerIdsQueryVariables = Exact<{ [key: string]: never }>; export type GetCustomerIdsQuery = { customers: { items: Array<{ id: string }> } }; export type UpdateStockMutationVariables = Exact<{ - input: Array | UpdateProductVariantInput; -}>; - - -export type UpdateStockMutation = { updateProductVariants: Array<{ id: string, stockOnHand: number, stockAllocated: number, stockMovements: { totalItems: number, items: Array<{ id: string, type: StockMovementType, quantity: number } | { id: string, type: StockMovementType, quantity: number } | { id: string, type: StockMovementType, quantity: number } | { id: string, type: StockMovementType, quantity: number } | { id: string, type: StockMovementType, quantity: number } | { id: string, type: StockMovementType, quantity: number }> } } | null> }; + input: Array | UpdateProductVariantInput; +}>; + +export type UpdateStockMutation = { + updateProductVariants: Array<{ + id: string; + stockOnHand: number; + stockAllocated: number; + stockMovements: { + totalItems: number; + items: Array< + | { id: string; type: StockMovementType; quantity: number } + | { id: string; type: StockMovementType; quantity: number } + | { id: string; type: StockMovementType; quantity: number } + | { id: string; type: StockMovementType; quantity: number } + | { id: string; type: StockMovementType; quantity: number } + | { id: string; type: StockMovementType; quantity: number } + >; + }; + } | null>; +}; export type TransitionFulfillmentToStateMutationVariables = Exact<{ - id: Scalars['ID']; - state: Scalars['String']; + id: Scalars['ID']; + state: Scalars['String']; }>; - -export type TransitionFulfillmentToStateMutation = { transitionFulfillmentToState: { id: string, state: string, nextStates: Array, createdAt: any } | { errorCode: ErrorCode, message: string, transitionError: string } }; +export type TransitionFulfillmentToStateMutation = { + transitionFulfillmentToState: + | { id: string; state: string; nextStates: Array; createdAt: any } + | { errorCode: ErrorCode; message: string; transitionError: string }; +}; export type UpdateOrderCustomFieldsMutationVariables = Exact<{ - input: UpdateOrderInput; + input: UpdateOrderInput; }>; - export type UpdateOrderCustomFieldsMutation = { setOrderCustomFields?: { id: string } | null }; export type GetTagListQueryVariables = Exact<{ - options?: InputMaybe; + options?: InputMaybe; }>; - -export type GetTagListQuery = { tags: { totalItems: number, items: Array<{ id: string, value: string }> } }; +export type GetTagListQuery = { tags: { totalItems: number; items: Array<{ id: string; value: string }> } }; export type GetTagQueryVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; - -export type GetTagQuery = { tag: { id: string, value: string } }; +export type GetTagQuery = { tag: { id: string; value: string } }; export type CreateTagMutationVariables = Exact<{ - input: CreateTagInput; + input: CreateTagInput; }>; - -export type CreateTagMutation = { createTag: { id: string, value: string } }; +export type CreateTagMutation = { createTag: { id: string; value: string } }; export type UpdateTagMutationVariables = Exact<{ - input: UpdateTagInput; + input: UpdateTagInput; }>; - -export type UpdateTagMutation = { updateTag: { id: string, value: string } }; +export type UpdateTagMutation = { updateTag: { id: string; value: string } }; export type DeleteTagMutationVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; +export type DeleteTagMutation = { deleteTag: { message?: string | null; result: DeletionResult } }; -export type DeleteTagMutation = { deleteTag: { message?: string | null, result: DeletionResult } }; - -export type GetTaxCategoryListQueryVariables = Exact<{ [key: string]: never; }>; +export type GetTaxCategoryListQueryVariables = Exact<{ [key: string]: never }>; - -export type GetTaxCategoryListQuery = { taxCategories: Array<{ id: string, name: string, isDefault: boolean }> }; +export type GetTaxCategoryListQuery = { + taxCategories: Array<{ id: string; name: string; isDefault: boolean }>; +}; export type GetTaxCategoryQueryVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; - -export type GetTaxCategoryQuery = { taxCategory?: { id: string, name: string, isDefault: boolean } | null }; +export type GetTaxCategoryQuery = { taxCategory?: { id: string; name: string; isDefault: boolean } | null }; export type CreateTaxCategoryMutationVariables = Exact<{ - input: CreateTaxCategoryInput; + input: CreateTaxCategoryInput; }>; - -export type CreateTaxCategoryMutation = { createTaxCategory: { id: string, name: string, isDefault: boolean } }; +export type CreateTaxCategoryMutation = { + createTaxCategory: { id: string; name: string; isDefault: boolean }; +}; export type UpdateTaxCategoryMutationVariables = Exact<{ - input: UpdateTaxCategoryInput; + input: UpdateTaxCategoryInput; }>; - -export type UpdateTaxCategoryMutation = { updateTaxCategory: { id: string, name: string, isDefault: boolean } }; +export type UpdateTaxCategoryMutation = { + updateTaxCategory: { id: string; name: string; isDefault: boolean }; +}; export type DeleteTaxCategoryMutationVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; - -export type DeleteTaxCategoryMutation = { deleteTaxCategory: { result: DeletionResult, message?: string | null } }; +export type DeleteTaxCategoryMutation = { + deleteTaxCategory: { result: DeletionResult; message?: string | null }; +}; export type GetTaxRateQueryVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; - -export type GetTaxRateQuery = { taxRate?: { id: string, name: string, enabled: boolean, value: number, category: { id: string, name: string }, zone: { id: string, name: string }, customerGroup?: { id: string, name: string } | null } | null }; +export type GetTaxRateQuery = { + taxRate?: { + id: string; + name: string; + enabled: boolean; + value: number; + category: { id: string; name: string }; + zone: { id: string; name: string }; + customerGroup?: { id: string; name: string } | null; + } | null; +}; export type CreateTaxRateMutationVariables = Exact<{ - input: CreateTaxRateInput; + input: CreateTaxRateInput; }>; - -export type CreateTaxRateMutation = { createTaxRate: { id: string, name: string, enabled: boolean, value: number, category: { id: string, name: string }, zone: { id: string, name: string }, customerGroup?: { id: string, name: string } | null } }; +export type CreateTaxRateMutation = { + createTaxRate: { + id: string; + name: string; + enabled: boolean; + value: number; + category: { id: string; name: string }; + zone: { id: string; name: string }; + customerGroup?: { id: string; name: string } | null; + }; +}; export type DeleteTaxRateMutationVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; - -export type DeleteTaxRateMutation = { deleteTaxRate: { result: DeletionResult, message?: string | null } }; +export type DeleteTaxRateMutation = { deleteTaxRate: { result: DeletionResult; message?: string | null } }; export type DeleteZoneMutationVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; +export type DeleteZoneMutation = { deleteZone: { result: DeletionResult; message?: string | null } }; -export type DeleteZoneMutation = { deleteZone: { result: DeletionResult, message?: string | null } }; +export type GetZonesQueryVariables = Exact<{ [key: string]: never }>; -export type GetZonesQueryVariables = Exact<{ [key: string]: never; }>; - - -export type GetZonesQuery = { zones: Array<{ id: string, name: string }> }; +export type GetZonesQuery = { zones: Array<{ id: string; name: string }> }; export type GetZoneQueryVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; +export type GetZoneQuery = { + zone?: { + id: string; + name: string; + members: Array<{ + id: string; + code: string; + name: string; + enabled: boolean; + translations: Array<{ id: string; languageCode: LanguageCode; name: string }>; + }>; + } | null; +}; -export type GetZoneQuery = { zone?: { id: string, name: string, members: Array<{ id: string, code: string, name: string, enabled: boolean, translations: Array<{ id: string, languageCode: LanguageCode, name: string }> }> } | null }; - -export type GetActiveChannelWithZoneMembersQueryVariables = Exact<{ [key: string]: never; }>; - +export type GetActiveChannelWithZoneMembersQueryVariables = Exact<{ [key: string]: never }>; -export type GetActiveChannelWithZoneMembersQuery = { activeChannel: { id: string, defaultShippingZone?: { id: string, members: Array<{ name: string }> } | null } }; +export type GetActiveChannelWithZoneMembersQuery = { + activeChannel: { + id: string; + defaultShippingZone?: { id: string; members: Array<{ name: string }> } | null; + }; +}; export type CreateZoneMutationVariables = Exact<{ - input: CreateZoneInput; + input: CreateZoneInput; }>; - -export type CreateZoneMutation = { createZone: { id: string, name: string, members: Array<{ id: string, code: string, name: string, enabled: boolean, translations: Array<{ id: string, languageCode: LanguageCode, name: string }> }> } }; +export type CreateZoneMutation = { + createZone: { + id: string; + name: string; + members: Array<{ + id: string; + code: string; + name: string; + enabled: boolean; + translations: Array<{ id: string; languageCode: LanguageCode; name: string }>; + }>; + }; +}; export type UpdateZoneMutationVariables = Exact<{ - input: UpdateZoneInput; + input: UpdateZoneInput; }>; - -export type UpdateZoneMutation = { updateZone: { id: string, name: string, members: Array<{ id: string, code: string, name: string, enabled: boolean, translations: Array<{ id: string, languageCode: LanguageCode, name: string }> }> } }; +export type UpdateZoneMutation = { + updateZone: { + id: string; + name: string; + members: Array<{ + id: string; + code: string; + name: string; + enabled: boolean; + translations: Array<{ id: string; languageCode: LanguageCode; name: string }>; + }>; + }; +}; export type AddMembersToZoneMutationVariables = Exact<{ - zoneId: Scalars['ID']; - memberIds: Array | Scalars['ID']; + zoneId: Scalars['ID']; + memberIds: Array | Scalars['ID']; }>; - -export type AddMembersToZoneMutation = { addMembersToZone: { id: string, name: string, members: Array<{ id: string, code: string, name: string, enabled: boolean, translations: Array<{ id: string, languageCode: LanguageCode, name: string }> }> } }; +export type AddMembersToZoneMutation = { + addMembersToZone: { + id: string; + name: string; + members: Array<{ + id: string; + code: string; + name: string; + enabled: boolean; + translations: Array<{ id: string; languageCode: LanguageCode; name: string }>; + }>; + }; +}; export type RemoveMembersFromZoneMutationVariables = Exact<{ - zoneId: Scalars['ID']; - memberIds: Array | Scalars['ID']; -}>; - - -export type RemoveMembersFromZoneMutation = { removeMembersFromZone: { id: string, name: string, members: Array<{ id: string, code: string, name: string, enabled: boolean, translations: Array<{ id: string, languageCode: LanguageCode, name: string }> }> } }; + zoneId: Scalars['ID']; + memberIds: Array | Scalars['ID']; +}>; + +export type RemoveMembersFromZoneMutation = { + removeMembersFromZone: { + id: string; + name: string; + members: Array<{ + id: string; + code: string; + name: string; + enabled: boolean; + translations: Array<{ id: string; languageCode: LanguageCode; name: string }>; + }>; + }; +}; diff --git a/packages/core/e2e/graphql/generated-e2e-shop-types.ts b/packages/core/e2e/graphql/generated-e2e-shop-types.ts index 3c5a112751..67ec3be5d2 100644 --- a/packages/core/e2e/graphql/generated-e2e-shop-types.ts +++ b/packages/core/e2e/graphql/generated-e2e-shop-types.ts @@ -6,199 +6,209 @@ export type MakeOptional = Omit & { [SubKey in K]?: export type MakeMaybe = Omit & { [SubKey in K]: Maybe }; /** All built-in and custom scalars, mapped to their actual values */ export type Scalars = { - ID: string; - String: string; - Boolean: boolean; - Int: number; - Float: number; - /** A date-time string at UTC, such as 2007-12-03T10:15:30Z, compliant with the `date-time` format outlined in section 5.6 of the RFC 3339 profile of the ISO 8601 standard for representation of dates and times using the Gregorian calendar. */ - DateTime: any; - /** The `JSON` scalar type represents JSON values as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf). */ - JSON: any; - /** The `Upload` scalar type represents a file upload. */ - Upload: any; + ID: string; + String: string; + Boolean: boolean; + Int: number; + Float: number; + /** A date-time string at UTC, such as 2007-12-03T10:15:30Z, compliant with the `date-time` format outlined in section 5.6 of the RFC 3339 profile of the ISO 8601 standard for representation of dates and times using the Gregorian calendar. */ + DateTime: any; + /** The `JSON` scalar type represents JSON values as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf). */ + JSON: any; + /** The `Upload` scalar type represents a file upload. */ + Upload: any; }; export type ActiveOrderResult = NoActiveOrderError | Order; -export type AddPaymentToOrderResult = IneligiblePaymentMethodError | NoActiveOrderError | Order | OrderPaymentStateError | OrderStateTransitionError | PaymentDeclinedError | PaymentFailedError; +export type AddPaymentToOrderResult = + | IneligiblePaymentMethodError + | NoActiveOrderError + | Order + | OrderPaymentStateError + | OrderStateTransitionError + | PaymentDeclinedError + | PaymentFailedError; export type Address = Node & { - city?: Maybe; - company?: Maybe; - country: Country; - createdAt: Scalars['DateTime']; - customFields?: Maybe; - defaultBillingAddress?: Maybe; - defaultShippingAddress?: Maybe; - fullName?: Maybe; - id: Scalars['ID']; - phoneNumber?: Maybe; - postalCode?: Maybe; - province?: Maybe; - streetLine1: Scalars['String']; - streetLine2?: Maybe; - updatedAt: Scalars['DateTime']; + city?: Maybe; + company?: Maybe; + country: Country; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + defaultBillingAddress?: Maybe; + defaultShippingAddress?: Maybe; + fullName?: Maybe; + id: Scalars['ID']; + phoneNumber?: Maybe; + postalCode?: Maybe; + province?: Maybe; + streetLine1: Scalars['String']; + streetLine2?: Maybe; + updatedAt: Scalars['DateTime']; }; export type Adjustment = { - adjustmentSource: Scalars['String']; - amount: Scalars['Int']; - description: Scalars['String']; - type: AdjustmentType; + adjustmentSource: Scalars['String']; + amount: Scalars['Int']; + description: Scalars['String']; + type: AdjustmentType; }; export enum AdjustmentType { - DISTRIBUTED_ORDER_PROMOTION = 'DISTRIBUTED_ORDER_PROMOTION', - OTHER = 'OTHER', - PROMOTION = 'PROMOTION' + DISTRIBUTED_ORDER_PROMOTION = 'DISTRIBUTED_ORDER_PROMOTION', + OTHER = 'OTHER', + PROMOTION = 'PROMOTION', } /** Returned when attempting to set the Customer for an Order when already logged in. */ export type AlreadyLoggedInError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; }; -export type ApplyCouponCodeResult = CouponCodeExpiredError | CouponCodeInvalidError | CouponCodeLimitError | Order; +export type ApplyCouponCodeResult = + | CouponCodeExpiredError + | CouponCodeInvalidError + | CouponCodeLimitError + | Order; export type Asset = Node & { - createdAt: Scalars['DateTime']; - customFields?: Maybe; - fileSize: Scalars['Int']; - focalPoint?: Maybe; - height: Scalars['Int']; - id: Scalars['ID']; - mimeType: Scalars['String']; - name: Scalars['String']; - preview: Scalars['String']; - source: Scalars['String']; - 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']; - currencyCode: CurrencyCode; - customFields?: Maybe; - 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']; + currencyCode: CurrencyCode; + customFields?: Maybe; + 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; }; /** @@ -206,142 +216,142 @@ export type CollectionListOptions = { * by the search, and in what quantity. */ export type CollectionResult = { - collection: Collection; - count: Scalars['Int']; + collection: Collection; + count: Scalars['Int']; }; export type CollectionSortParameter = { - createdAt?: InputMaybe; - description?: InputMaybe; - id?: InputMaybe; - name?: InputMaybe; - position?: InputMaybe; - slug?: InputMaybe; - updatedAt?: InputMaybe; + createdAt?: InputMaybe; + description?: InputMaybe; + id?: InputMaybe; + name?: InputMaybe; + position?: InputMaybe; + slug?: InputMaybe; + updatedAt?: InputMaybe; }; export type CollectionTranslation = { - createdAt: Scalars['DateTime']; - description: Scalars['String']; - id: Scalars['ID']; - languageCode: LanguageCode; - name: Scalars['String']; - slug: Scalars['String']; - updatedAt: Scalars['DateTime']; + createdAt: Scalars['DateTime']; + description: Scalars['String']; + id: Scalars['ID']; + languageCode: LanguageCode; + name: Scalars['String']; + slug: Scalars['String']; + updatedAt: Scalars['DateTime']; }; export type ConfigArg = { - name: Scalars['String']; - value: Scalars['String']; + name: Scalars['String']; + value: Scalars['String']; }; export type ConfigArgDefinition = { - defaultValue?: Maybe; - description?: Maybe; - label?: Maybe; - list: Scalars['Boolean']; - name: Scalars['String']; - required: Scalars['Boolean']; - type: Scalars['String']; - ui?: Maybe; + defaultValue?: Maybe; + description?: Maybe; + label?: Maybe; + list: Scalars['Boolean']; + name: Scalars['String']; + required: Scalars['Boolean']; + type: Scalars['String']; + ui?: Maybe; }; export type ConfigArgInput = { - name: Scalars['String']; - /** A JSON stringified representation of the actual value */ - value: Scalars['String']; + name: Scalars['String']; + /** A JSON stringified representation of the actual value */ + value: Scalars['String']; }; export type ConfigurableOperation = { - args: Array; - code: Scalars['String']; + args: Array; + code: Scalars['String']; }; export type ConfigurableOperationDefinition = { - args: Array; - code: Scalars['String']; - description: Scalars['String']; + args: Array; + code: Scalars['String']; + description: Scalars['String']; }; export type ConfigurableOperationInput = { - arguments: Array; - code: Scalars['String']; + arguments: Array; + code: Scalars['String']; }; export type Coordinate = { - x: Scalars['Float']; - y: Scalars['Float']; + x: Scalars['Float']; + y: Scalars['Float']; }; export type Country = Node & { - code: Scalars['String']; - createdAt: Scalars['DateTime']; - customFields?: Maybe; - enabled: Scalars['Boolean']; - id: Scalars['ID']; - languageCode: LanguageCode; - name: Scalars['String']; - translations: Array; - updatedAt: Scalars['DateTime']; + code: Scalars['String']; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + enabled: Scalars['Boolean']; + id: Scalars['ID']; + languageCode: LanguageCode; + name: Scalars['String']; + translations: Array; + updatedAt: Scalars['DateTime']; }; export type CountryList = PaginatedList & { - items: Array; - totalItems: Scalars['Int']; + items: Array; + totalItems: Scalars['Int']; }; export type CountryTranslation = { - createdAt: Scalars['DateTime']; - id: Scalars['ID']; - languageCode: LanguageCode; - name: Scalars['String']; - updatedAt: Scalars['DateTime']; + createdAt: Scalars['DateTime']; + id: Scalars['ID']; + languageCode: LanguageCode; + name: Scalars['String']; + updatedAt: Scalars['DateTime']; }; /** Returned if the provided coupon code is invalid */ export type CouponCodeExpiredError = ErrorResult & { - couponCode: Scalars['String']; - errorCode: ErrorCode; - message: Scalars['String']; + couponCode: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; }; /** Returned if the provided coupon code is invalid */ export type CouponCodeInvalidError = ErrorResult & { - couponCode: Scalars['String']; - errorCode: ErrorCode; - message: Scalars['String']; + couponCode: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; }; /** Returned if the provided coupon code is invalid */ export type CouponCodeLimitError = ErrorResult & { - couponCode: Scalars['String']; - errorCode: ErrorCode; - limit: Scalars['Int']; - message: Scalars['String']; + couponCode: Scalars['String']; + errorCode: ErrorCode; + limit: Scalars['Int']; + message: Scalars['String']; }; export type CreateAddressInput = { - city?: InputMaybe; - company?: InputMaybe; - countryCode: Scalars['String']; - customFields?: InputMaybe; - defaultBillingAddress?: InputMaybe; - defaultShippingAddress?: InputMaybe; - fullName?: InputMaybe; - phoneNumber?: InputMaybe; - postalCode?: InputMaybe; - province?: InputMaybe; - streetLine1: Scalars['String']; - streetLine2?: InputMaybe; + city?: InputMaybe; + company?: InputMaybe; + countryCode: Scalars['String']; + customFields?: InputMaybe; + defaultBillingAddress?: InputMaybe; + defaultShippingAddress?: InputMaybe; + fullName?: InputMaybe; + phoneNumber?: InputMaybe; + postalCode?: InputMaybe; + province?: InputMaybe; + streetLine1: Scalars['String']; + streetLine2?: InputMaybe; }; export type CreateCustomerInput = { - customFields?: InputMaybe; - emailAddress: Scalars['String']; - firstName: Scalars['String']; - lastName: Scalars['String']; - phoneNumber?: InputMaybe; - title?: InputMaybe; + customFields?: InputMaybe; + emailAddress: Scalars['String']; + firstName: Scalars['String']; + lastName: Scalars['String']; + phoneNumber?: InputMaybe; + title?: InputMaybe; }; /** @@ -351,440 +361,446 @@ export type CreateCustomerInput = { * @docsCategory common */ export enum CurrencyCode { - /** United Arab Emirates dirham */ - AED = 'AED', - /** Afghan afghani */ - AFN = 'AFN', - /** Albanian lek */ - ALL = 'ALL', - /** Armenian dram */ - AMD = 'AMD', - /** Netherlands Antillean guilder */ - ANG = 'ANG', - /** Angolan kwanza */ - AOA = 'AOA', - /** Argentine peso */ - ARS = 'ARS', - /** Australian dollar */ - AUD = 'AUD', - /** Aruban florin */ - AWG = 'AWG', - /** Azerbaijani manat */ - AZN = 'AZN', - /** Bosnia and Herzegovina convertible mark */ - BAM = 'BAM', - /** Barbados dollar */ - BBD = 'BBD', - /** Bangladeshi taka */ - BDT = 'BDT', - /** Bulgarian lev */ - BGN = 'BGN', - /** Bahraini dinar */ - BHD = 'BHD', - /** Burundian franc */ - BIF = 'BIF', - /** Bermudian dollar */ - BMD = 'BMD', - /** Brunei dollar */ - BND = 'BND', - /** Boliviano */ - BOB = 'BOB', - /** Brazilian real */ - BRL = 'BRL', - /** Bahamian dollar */ - BSD = 'BSD', - /** Bhutanese ngultrum */ - BTN = 'BTN', - /** Botswana pula */ - BWP = 'BWP', - /** Belarusian ruble */ - BYN = 'BYN', - /** Belize dollar */ - BZD = 'BZD', - /** Canadian dollar */ - CAD = 'CAD', - /** Congolese franc */ - CDF = 'CDF', - /** Swiss franc */ - CHF = 'CHF', - /** Chilean peso */ - CLP = 'CLP', - /** Renminbi (Chinese) yuan */ - CNY = 'CNY', - /** Colombian peso */ - COP = 'COP', - /** Costa Rican colon */ - CRC = 'CRC', - /** Cuban convertible peso */ - CUC = 'CUC', - /** Cuban peso */ - CUP = 'CUP', - /** Cape Verde escudo */ - CVE = 'CVE', - /** Czech koruna */ - CZK = 'CZK', - /** Djiboutian franc */ - DJF = 'DJF', - /** Danish krone */ - DKK = 'DKK', - /** Dominican peso */ - DOP = 'DOP', - /** Algerian dinar */ - DZD = 'DZD', - /** Egyptian pound */ - EGP = 'EGP', - /** Eritrean nakfa */ - ERN = 'ERN', - /** Ethiopian birr */ - ETB = 'ETB', - /** Euro */ - EUR = 'EUR', - /** Fiji dollar */ - FJD = 'FJD', - /** Falkland Islands pound */ - FKP = 'FKP', - /** Pound sterling */ - GBP = 'GBP', - /** Georgian lari */ - GEL = 'GEL', - /** Ghanaian cedi */ - GHS = 'GHS', - /** Gibraltar pound */ - GIP = 'GIP', - /** Gambian dalasi */ - GMD = 'GMD', - /** Guinean franc */ - GNF = 'GNF', - /** Guatemalan quetzal */ - GTQ = 'GTQ', - /** Guyanese dollar */ - GYD = 'GYD', - /** Hong Kong dollar */ - HKD = 'HKD', - /** Honduran lempira */ - HNL = 'HNL', - /** Croatian kuna */ - HRK = 'HRK', - /** Haitian gourde */ - HTG = 'HTG', - /** Hungarian forint */ - HUF = 'HUF', - /** Indonesian rupiah */ - IDR = 'IDR', - /** Israeli new shekel */ - ILS = 'ILS', - /** Indian rupee */ - INR = 'INR', - /** Iraqi dinar */ - IQD = 'IQD', - /** Iranian rial */ - IRR = 'IRR', - /** Icelandic króna */ - ISK = 'ISK', - /** Jamaican dollar */ - JMD = 'JMD', - /** Jordanian dinar */ - JOD = 'JOD', - /** Japanese yen */ - JPY = 'JPY', - /** Kenyan shilling */ - KES = 'KES', - /** Kyrgyzstani som */ - KGS = 'KGS', - /** Cambodian riel */ - KHR = 'KHR', - /** Comoro franc */ - KMF = 'KMF', - /** North Korean won */ - KPW = 'KPW', - /** South Korean won */ - KRW = 'KRW', - /** Kuwaiti dinar */ - KWD = 'KWD', - /** Cayman Islands dollar */ - KYD = 'KYD', - /** Kazakhstani tenge */ - KZT = 'KZT', - /** Lao kip */ - LAK = 'LAK', - /** Lebanese pound */ - LBP = 'LBP', - /** Sri Lankan rupee */ - LKR = 'LKR', - /** Liberian dollar */ - LRD = 'LRD', - /** Lesotho loti */ - LSL = 'LSL', - /** Libyan dinar */ - LYD = 'LYD', - /** Moroccan dirham */ - MAD = 'MAD', - /** Moldovan leu */ - MDL = 'MDL', - /** Malagasy ariary */ - MGA = 'MGA', - /** Macedonian denar */ - MKD = 'MKD', - /** Myanmar kyat */ - MMK = 'MMK', - /** Mongolian tögrög */ - MNT = 'MNT', - /** Macanese pataca */ - MOP = 'MOP', - /** Mauritanian ouguiya */ - MRU = 'MRU', - /** Mauritian rupee */ - MUR = 'MUR', - /** Maldivian rufiyaa */ - MVR = 'MVR', - /** Malawian kwacha */ - MWK = 'MWK', - /** Mexican peso */ - MXN = 'MXN', - /** Malaysian ringgit */ - MYR = 'MYR', - /** Mozambican metical */ - MZN = 'MZN', - /** Namibian dollar */ - NAD = 'NAD', - /** Nigerian naira */ - NGN = 'NGN', - /** Nicaraguan córdoba */ - NIO = 'NIO', - /** Norwegian krone */ - NOK = 'NOK', - /** Nepalese rupee */ - NPR = 'NPR', - /** New Zealand dollar */ - NZD = 'NZD', - /** Omani rial */ - OMR = 'OMR', - /** Panamanian balboa */ - PAB = 'PAB', - /** Peruvian sol */ - PEN = 'PEN', - /** Papua New Guinean kina */ - PGK = 'PGK', - /** Philippine peso */ - PHP = 'PHP', - /** Pakistani rupee */ - PKR = 'PKR', - /** Polish złoty */ - PLN = 'PLN', - /** Paraguayan guaraní */ - PYG = 'PYG', - /** Qatari riyal */ - QAR = 'QAR', - /** Romanian leu */ - RON = 'RON', - /** Serbian dinar */ - RSD = 'RSD', - /** Russian ruble */ - RUB = 'RUB', - /** Rwandan franc */ - RWF = 'RWF', - /** Saudi riyal */ - SAR = 'SAR', - /** Solomon Islands dollar */ - SBD = 'SBD', - /** Seychelles rupee */ - SCR = 'SCR', - /** Sudanese pound */ - SDG = 'SDG', - /** Swedish krona/kronor */ - SEK = 'SEK', - /** Singapore dollar */ - SGD = 'SGD', - /** Saint Helena pound */ - SHP = 'SHP', - /** Sierra Leonean leone */ - SLL = 'SLL', - /** Somali shilling */ - SOS = 'SOS', - /** Surinamese dollar */ - SRD = 'SRD', - /** South Sudanese pound */ - SSP = 'SSP', - /** São Tomé and Príncipe dobra */ - STN = 'STN', - /** Salvadoran colón */ - SVC = 'SVC', - /** Syrian pound */ - SYP = 'SYP', - /** Swazi lilangeni */ - SZL = 'SZL', - /** Thai baht */ - THB = 'THB', - /** Tajikistani somoni */ - TJS = 'TJS', - /** Turkmenistan manat */ - TMT = 'TMT', - /** Tunisian dinar */ - TND = 'TND', - /** Tongan paʻanga */ - TOP = 'TOP', - /** Turkish lira */ - TRY = 'TRY', - /** Trinidad and Tobago dollar */ - TTD = 'TTD', - /** New Taiwan dollar */ - TWD = 'TWD', - /** Tanzanian shilling */ - TZS = 'TZS', - /** Ukrainian hryvnia */ - UAH = 'UAH', - /** Ugandan shilling */ - UGX = 'UGX', - /** United States dollar */ - USD = 'USD', - /** Uruguayan peso */ - UYU = 'UYU', - /** Uzbekistan som */ - UZS = 'UZS', - /** Venezuelan bolívar soberano */ - VES = 'VES', - /** Vietnamese đồng */ - VND = 'VND', - /** Vanuatu vatu */ - VUV = 'VUV', - /** Samoan tala */ - WST = 'WST', - /** CFA franc BEAC */ - XAF = 'XAF', - /** East Caribbean dollar */ - XCD = 'XCD', - /** CFA franc BCEAO */ - XOF = 'XOF', - /** CFP franc (franc Pacifique) */ - XPF = 'XPF', - /** Yemeni rial */ - YER = 'YER', - /** South African rand */ - ZAR = 'ZAR', - /** Zambian kwacha */ - ZMW = 'ZMW', - /** Zimbabwean dollar */ - ZWL = 'ZWL' + /** United Arab Emirates dirham */ + AED = 'AED', + /** Afghan afghani */ + AFN = 'AFN', + /** Albanian lek */ + ALL = 'ALL', + /** Armenian dram */ + AMD = 'AMD', + /** Netherlands Antillean guilder */ + ANG = 'ANG', + /** Angolan kwanza */ + AOA = 'AOA', + /** Argentine peso */ + ARS = 'ARS', + /** Australian dollar */ + AUD = 'AUD', + /** Aruban florin */ + AWG = 'AWG', + /** Azerbaijani manat */ + AZN = 'AZN', + /** Bosnia and Herzegovina convertible mark */ + BAM = 'BAM', + /** Barbados dollar */ + BBD = 'BBD', + /** Bangladeshi taka */ + BDT = 'BDT', + /** Bulgarian lev */ + BGN = 'BGN', + /** Bahraini dinar */ + BHD = 'BHD', + /** Burundian franc */ + BIF = 'BIF', + /** Bermudian dollar */ + BMD = 'BMD', + /** Brunei dollar */ + BND = 'BND', + /** Boliviano */ + BOB = 'BOB', + /** Brazilian real */ + BRL = 'BRL', + /** Bahamian dollar */ + BSD = 'BSD', + /** Bhutanese ngultrum */ + BTN = 'BTN', + /** Botswana pula */ + BWP = 'BWP', + /** Belarusian ruble */ + BYN = 'BYN', + /** Belize dollar */ + BZD = 'BZD', + /** Canadian dollar */ + CAD = 'CAD', + /** Congolese franc */ + CDF = 'CDF', + /** Swiss franc */ + CHF = 'CHF', + /** Chilean peso */ + CLP = 'CLP', + /** Renminbi (Chinese) yuan */ + CNY = 'CNY', + /** Colombian peso */ + COP = 'COP', + /** Costa Rican colon */ + CRC = 'CRC', + /** Cuban convertible peso */ + CUC = 'CUC', + /** Cuban peso */ + CUP = 'CUP', + /** Cape Verde escudo */ + CVE = 'CVE', + /** Czech koruna */ + CZK = 'CZK', + /** Djiboutian franc */ + DJF = 'DJF', + /** Danish krone */ + DKK = 'DKK', + /** Dominican peso */ + DOP = 'DOP', + /** Algerian dinar */ + DZD = 'DZD', + /** Egyptian pound */ + EGP = 'EGP', + /** Eritrean nakfa */ + ERN = 'ERN', + /** Ethiopian birr */ + ETB = 'ETB', + /** Euro */ + EUR = 'EUR', + /** Fiji dollar */ + FJD = 'FJD', + /** Falkland Islands pound */ + FKP = 'FKP', + /** Pound sterling */ + GBP = 'GBP', + /** Georgian lari */ + GEL = 'GEL', + /** Ghanaian cedi */ + GHS = 'GHS', + /** Gibraltar pound */ + GIP = 'GIP', + /** Gambian dalasi */ + GMD = 'GMD', + /** Guinean franc */ + GNF = 'GNF', + /** Guatemalan quetzal */ + GTQ = 'GTQ', + /** Guyanese dollar */ + GYD = 'GYD', + /** Hong Kong dollar */ + HKD = 'HKD', + /** Honduran lempira */ + HNL = 'HNL', + /** Croatian kuna */ + HRK = 'HRK', + /** Haitian gourde */ + HTG = 'HTG', + /** Hungarian forint */ + HUF = 'HUF', + /** Indonesian rupiah */ + IDR = 'IDR', + /** Israeli new shekel */ + ILS = 'ILS', + /** Indian rupee */ + INR = 'INR', + /** Iraqi dinar */ + IQD = 'IQD', + /** Iranian rial */ + IRR = 'IRR', + /** Icelandic króna */ + ISK = 'ISK', + /** Jamaican dollar */ + JMD = 'JMD', + /** Jordanian dinar */ + JOD = 'JOD', + /** Japanese yen */ + JPY = 'JPY', + /** Kenyan shilling */ + KES = 'KES', + /** Kyrgyzstani som */ + KGS = 'KGS', + /** Cambodian riel */ + KHR = 'KHR', + /** Comoro franc */ + KMF = 'KMF', + /** North Korean won */ + KPW = 'KPW', + /** South Korean won */ + KRW = 'KRW', + /** Kuwaiti dinar */ + KWD = 'KWD', + /** Cayman Islands dollar */ + KYD = 'KYD', + /** Kazakhstani tenge */ + KZT = 'KZT', + /** Lao kip */ + LAK = 'LAK', + /** Lebanese pound */ + LBP = 'LBP', + /** Sri Lankan rupee */ + LKR = 'LKR', + /** Liberian dollar */ + LRD = 'LRD', + /** Lesotho loti */ + LSL = 'LSL', + /** Libyan dinar */ + LYD = 'LYD', + /** Moroccan dirham */ + MAD = 'MAD', + /** Moldovan leu */ + MDL = 'MDL', + /** Malagasy ariary */ + MGA = 'MGA', + /** Macedonian denar */ + MKD = 'MKD', + /** Myanmar kyat */ + MMK = 'MMK', + /** Mongolian tögrög */ + MNT = 'MNT', + /** Macanese pataca */ + MOP = 'MOP', + /** Mauritanian ouguiya */ + MRU = 'MRU', + /** Mauritian rupee */ + MUR = 'MUR', + /** Maldivian rufiyaa */ + MVR = 'MVR', + /** Malawian kwacha */ + MWK = 'MWK', + /** Mexican peso */ + MXN = 'MXN', + /** Malaysian ringgit */ + MYR = 'MYR', + /** Mozambican metical */ + MZN = 'MZN', + /** Namibian dollar */ + NAD = 'NAD', + /** Nigerian naira */ + NGN = 'NGN', + /** Nicaraguan córdoba */ + NIO = 'NIO', + /** Norwegian krone */ + NOK = 'NOK', + /** Nepalese rupee */ + NPR = 'NPR', + /** New Zealand dollar */ + NZD = 'NZD', + /** Omani rial */ + OMR = 'OMR', + /** Panamanian balboa */ + PAB = 'PAB', + /** Peruvian sol */ + PEN = 'PEN', + /** Papua New Guinean kina */ + PGK = 'PGK', + /** Philippine peso */ + PHP = 'PHP', + /** Pakistani rupee */ + PKR = 'PKR', + /** Polish złoty */ + PLN = 'PLN', + /** Paraguayan guaraní */ + PYG = 'PYG', + /** Qatari riyal */ + QAR = 'QAR', + /** Romanian leu */ + RON = 'RON', + /** Serbian dinar */ + RSD = 'RSD', + /** Russian ruble */ + RUB = 'RUB', + /** Rwandan franc */ + RWF = 'RWF', + /** Saudi riyal */ + SAR = 'SAR', + /** Solomon Islands dollar */ + SBD = 'SBD', + /** Seychelles rupee */ + SCR = 'SCR', + /** Sudanese pound */ + SDG = 'SDG', + /** Swedish krona/kronor */ + SEK = 'SEK', + /** Singapore dollar */ + SGD = 'SGD', + /** Saint Helena pound */ + SHP = 'SHP', + /** Sierra Leonean leone */ + SLL = 'SLL', + /** Somali shilling */ + SOS = 'SOS', + /** Surinamese dollar */ + SRD = 'SRD', + /** South Sudanese pound */ + SSP = 'SSP', + /** São Tomé and Príncipe dobra */ + STN = 'STN', + /** Salvadoran colón */ + SVC = 'SVC', + /** Syrian pound */ + SYP = 'SYP', + /** Swazi lilangeni */ + SZL = 'SZL', + /** Thai baht */ + THB = 'THB', + /** Tajikistani somoni */ + TJS = 'TJS', + /** Turkmenistan manat */ + TMT = 'TMT', + /** Tunisian dinar */ + TND = 'TND', + /** Tongan paʻanga */ + TOP = 'TOP', + /** Turkish lira */ + TRY = 'TRY', + /** Trinidad and Tobago dollar */ + TTD = 'TTD', + /** New Taiwan dollar */ + TWD = 'TWD', + /** Tanzanian shilling */ + TZS = 'TZS', + /** Ukrainian hryvnia */ + UAH = 'UAH', + /** Ugandan shilling */ + UGX = 'UGX', + /** United States dollar */ + USD = 'USD', + /** Uruguayan peso */ + UYU = 'UYU', + /** Uzbekistan som */ + UZS = 'UZS', + /** Venezuelan bolívar soberano */ + VES = 'VES', + /** Vietnamese đồng */ + VND = 'VND', + /** Vanuatu vatu */ + VUV = 'VUV', + /** Samoan tala */ + WST = 'WST', + /** CFA franc BEAC */ + XAF = 'XAF', + /** East Caribbean dollar */ + XCD = 'XCD', + /** CFA franc BCEAO */ + XOF = 'XOF', + /** CFP franc (franc Pacifique) */ + XPF = 'XPF', + /** Yemeni rial */ + YER = 'YER', + /** South African rand */ + ZAR = 'ZAR', + /** Zambian kwacha */ + ZMW = 'ZMW', + /** Zimbabwean dollar */ + ZWL = 'ZWL', } export type CurrentUser = { - channels: Array; - id: Scalars['ID']; - identifier: Scalars['String']; + channels: Array; + id: Scalars['ID']; + identifier: Scalars['String']; }; export type CurrentUserChannel = { - code: Scalars['String']; - id: Scalars['ID']; - permissions: Array; - token: Scalars['String']; + code: Scalars['String']; + id: Scalars['ID']; + permissions: Array; + token: Scalars['String']; }; export type CustomField = { - description?: Maybe>; - internal?: Maybe; - label?: Maybe>; - list: Scalars['Boolean']; - name: Scalars['String']; - nullable?: Maybe; - readonly?: Maybe; - type: Scalars['String']; - ui?: Maybe; -}; - -export type CustomFieldConfig = BooleanCustomFieldConfig | DateTimeCustomFieldConfig | FloatCustomFieldConfig | IntCustomFieldConfig | LocaleStringCustomFieldConfig | RelationCustomFieldConfig | StringCustomFieldConfig | TextCustomFieldConfig; + description?: Maybe>; + internal?: Maybe; + label?: Maybe>; + list: Scalars['Boolean']; + name: Scalars['String']; + nullable?: Maybe; + readonly?: Maybe; + type: Scalars['String']; + ui?: Maybe; +}; + +export type CustomFieldConfig = + | BooleanCustomFieldConfig + | DateTimeCustomFieldConfig + | FloatCustomFieldConfig + | IntCustomFieldConfig + | LocaleStringCustomFieldConfig + | RelationCustomFieldConfig + | StringCustomFieldConfig + | TextCustomFieldConfig; export type Customer = Node & { - addresses?: Maybe>; - createdAt: Scalars['DateTime']; - customFields?: Maybe; - emailAddress: Scalars['String']; - firstName: Scalars['String']; - id: Scalars['ID']; - lastName: Scalars['String']; - orders: OrderList; - phoneNumber?: Maybe; - title?: Maybe; - updatedAt: Scalars['DateTime']; - user?: Maybe; + addresses?: Maybe>; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + emailAddress: Scalars['String']; + firstName: Scalars['String']; + id: Scalars['ID']; + lastName: Scalars['String']; + orders: OrderList; + phoneNumber?: Maybe; + title?: Maybe; + updatedAt: Scalars['DateTime']; + user?: Maybe; }; - export type CustomerOrdersArgs = { - options?: InputMaybe; + options?: InputMaybe; }; export type CustomerFilterParameter = { - createdAt?: InputMaybe; - emailAddress?: InputMaybe; - firstName?: InputMaybe; - id?: InputMaybe; - lastName?: InputMaybe; - phoneNumber?: InputMaybe; - title?: InputMaybe; - updatedAt?: InputMaybe; + createdAt?: InputMaybe; + emailAddress?: InputMaybe; + firstName?: InputMaybe; + id?: InputMaybe; + lastName?: InputMaybe; + phoneNumber?: InputMaybe; + title?: InputMaybe; + updatedAt?: InputMaybe; }; export type CustomerGroup = Node & { - createdAt: Scalars['DateTime']; - customFields?: Maybe; - customers: CustomerList; - id: Scalars['ID']; - name: Scalars['String']; - updatedAt: Scalars['DateTime']; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + customers: CustomerList; + id: Scalars['ID']; + name: Scalars['String']; + updatedAt: Scalars['DateTime']; }; - export type CustomerGroupCustomersArgs = { - options?: InputMaybe; + options?: InputMaybe; }; export type CustomerList = PaginatedList & { - items: Array; - totalItems: Scalars['Int']; + items: Array; + totalItems: Scalars['Int']; }; export type CustomerListOptions = { - /** Allows the results to be filtered */ - filter?: InputMaybe; - /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ - filterOperator?: InputMaybe; - /** Skips the first n results, for use in pagination */ - skip?: InputMaybe; - /** Specifies which properties to sort the results by */ - sort?: InputMaybe; - /** Takes n results, for use in pagination */ - take?: InputMaybe; + /** Allows the results to be filtered */ + filter?: InputMaybe; + /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ + filterOperator?: InputMaybe; + /** Skips the first n results, for use in pagination */ + skip?: InputMaybe; + /** Specifies which properties to sort the results by */ + sort?: InputMaybe; + /** Takes n results, for use in pagination */ + take?: InputMaybe; }; export type CustomerSortParameter = { - createdAt?: InputMaybe; - emailAddress?: InputMaybe; - firstName?: InputMaybe; - id?: InputMaybe; - lastName?: InputMaybe; - phoneNumber?: InputMaybe; - title?: InputMaybe; - updatedAt?: InputMaybe; + createdAt?: InputMaybe; + emailAddress?: InputMaybe; + firstName?: InputMaybe; + id?: InputMaybe; + lastName?: InputMaybe; + phoneNumber?: InputMaybe; + title?: InputMaybe; + updatedAt?: InputMaybe; }; /** Operators for filtering on a list of Date fields */ export type DateListOperators = { - inList: Scalars['DateTime']; + inList: Scalars['DateTime']; }; /** Operators for filtering on a DateTime field */ export type DateOperators = { - after?: InputMaybe; - before?: InputMaybe; - between?: InputMaybe; - eq?: InputMaybe; - isNull?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; + between?: InputMaybe; + eq?: InputMaybe; + isNull?: InputMaybe; }; export type DateRange = { - end: Scalars['DateTime']; - start: Scalars['DateTime']; + end: Scalars['DateTime']; + start: Scalars['DateTime']; }; /** @@ -792,148 +808,148 @@ export type DateRange = { * See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/datetime-local#Additional_attributes */ export type DateTimeCustomFieldConfig = CustomField & { - description?: Maybe>; - internal?: Maybe; - label?: Maybe>; - list: Scalars['Boolean']; - max?: Maybe; - min?: Maybe; - name: Scalars['String']; - nullable?: Maybe; - readonly?: Maybe; - step?: Maybe; - type: Scalars['String']; - ui?: Maybe; + description?: Maybe>; + internal?: Maybe; + label?: Maybe>; + list: Scalars['Boolean']; + max?: Maybe; + min?: Maybe; + name: Scalars['String']; + nullable?: Maybe; + readonly?: Maybe; + step?: Maybe; + type: Scalars['String']; + ui?: Maybe; }; export type DeletionResponse = { - message?: Maybe; - result: DeletionResult; + message?: Maybe; + result: DeletionResult; }; export enum DeletionResult { - /** The entity was successfully deleted */ - DELETED = 'DELETED', - /** Deletion did not take place, reason given in message */ - NOT_DELETED = 'NOT_DELETED' + /** The entity was successfully deleted */ + DELETED = 'DELETED', + /** Deletion did not take place, reason given in message */ + NOT_DELETED = 'NOT_DELETED', } export type Discount = { - adjustmentSource: Scalars['String']; - amount: Scalars['Int']; - amountWithTax: Scalars['Int']; - description: Scalars['String']; - type: AdjustmentType; + adjustmentSource: Scalars['String']; + amount: Scalars['Int']; + amountWithTax: Scalars['Int']; + description: Scalars['String']; + type: AdjustmentType; }; /** Returned when attempting to create a Customer with an email address already registered to an existing User. */ export type EmailAddressConflictError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; }; export enum ErrorCode { - ALREADY_LOGGED_IN_ERROR = 'ALREADY_LOGGED_IN_ERROR', - COUPON_CODE_EXPIRED_ERROR = 'COUPON_CODE_EXPIRED_ERROR', - COUPON_CODE_INVALID_ERROR = 'COUPON_CODE_INVALID_ERROR', - COUPON_CODE_LIMIT_ERROR = 'COUPON_CODE_LIMIT_ERROR', - EMAIL_ADDRESS_CONFLICT_ERROR = 'EMAIL_ADDRESS_CONFLICT_ERROR', - IDENTIFIER_CHANGE_TOKEN_EXPIRED_ERROR = 'IDENTIFIER_CHANGE_TOKEN_EXPIRED_ERROR', - IDENTIFIER_CHANGE_TOKEN_INVALID_ERROR = 'IDENTIFIER_CHANGE_TOKEN_INVALID_ERROR', - INELIGIBLE_PAYMENT_METHOD_ERROR = 'INELIGIBLE_PAYMENT_METHOD_ERROR', - INELIGIBLE_SHIPPING_METHOD_ERROR = 'INELIGIBLE_SHIPPING_METHOD_ERROR', - INSUFFICIENT_STOCK_ERROR = 'INSUFFICIENT_STOCK_ERROR', - INVALID_CREDENTIALS_ERROR = 'INVALID_CREDENTIALS_ERROR', - MISSING_PASSWORD_ERROR = 'MISSING_PASSWORD_ERROR', - NATIVE_AUTH_STRATEGY_ERROR = 'NATIVE_AUTH_STRATEGY_ERROR', - NEGATIVE_QUANTITY_ERROR = 'NEGATIVE_QUANTITY_ERROR', - NOT_VERIFIED_ERROR = 'NOT_VERIFIED_ERROR', - NO_ACTIVE_ORDER_ERROR = 'NO_ACTIVE_ORDER_ERROR', - ORDER_LIMIT_ERROR = 'ORDER_LIMIT_ERROR', - ORDER_MODIFICATION_ERROR = 'ORDER_MODIFICATION_ERROR', - ORDER_PAYMENT_STATE_ERROR = 'ORDER_PAYMENT_STATE_ERROR', - ORDER_STATE_TRANSITION_ERROR = 'ORDER_STATE_TRANSITION_ERROR', - PASSWORD_ALREADY_SET_ERROR = 'PASSWORD_ALREADY_SET_ERROR', - PASSWORD_RESET_TOKEN_EXPIRED_ERROR = 'PASSWORD_RESET_TOKEN_EXPIRED_ERROR', - PASSWORD_RESET_TOKEN_INVALID_ERROR = 'PASSWORD_RESET_TOKEN_INVALID_ERROR', - PASSWORD_VALIDATION_ERROR = 'PASSWORD_VALIDATION_ERROR', - PAYMENT_DECLINED_ERROR = 'PAYMENT_DECLINED_ERROR', - PAYMENT_FAILED_ERROR = 'PAYMENT_FAILED_ERROR', - UNKNOWN_ERROR = 'UNKNOWN_ERROR', - VERIFICATION_TOKEN_EXPIRED_ERROR = 'VERIFICATION_TOKEN_EXPIRED_ERROR', - VERIFICATION_TOKEN_INVALID_ERROR = 'VERIFICATION_TOKEN_INVALID_ERROR' + ALREADY_LOGGED_IN_ERROR = 'ALREADY_LOGGED_IN_ERROR', + COUPON_CODE_EXPIRED_ERROR = 'COUPON_CODE_EXPIRED_ERROR', + COUPON_CODE_INVALID_ERROR = 'COUPON_CODE_INVALID_ERROR', + COUPON_CODE_LIMIT_ERROR = 'COUPON_CODE_LIMIT_ERROR', + EMAIL_ADDRESS_CONFLICT_ERROR = 'EMAIL_ADDRESS_CONFLICT_ERROR', + IDENTIFIER_CHANGE_TOKEN_EXPIRED_ERROR = 'IDENTIFIER_CHANGE_TOKEN_EXPIRED_ERROR', + IDENTIFIER_CHANGE_TOKEN_INVALID_ERROR = 'IDENTIFIER_CHANGE_TOKEN_INVALID_ERROR', + INELIGIBLE_PAYMENT_METHOD_ERROR = 'INELIGIBLE_PAYMENT_METHOD_ERROR', + INELIGIBLE_SHIPPING_METHOD_ERROR = 'INELIGIBLE_SHIPPING_METHOD_ERROR', + INSUFFICIENT_STOCK_ERROR = 'INSUFFICIENT_STOCK_ERROR', + INVALID_CREDENTIALS_ERROR = 'INVALID_CREDENTIALS_ERROR', + MISSING_PASSWORD_ERROR = 'MISSING_PASSWORD_ERROR', + NATIVE_AUTH_STRATEGY_ERROR = 'NATIVE_AUTH_STRATEGY_ERROR', + NEGATIVE_QUANTITY_ERROR = 'NEGATIVE_QUANTITY_ERROR', + NOT_VERIFIED_ERROR = 'NOT_VERIFIED_ERROR', + NO_ACTIVE_ORDER_ERROR = 'NO_ACTIVE_ORDER_ERROR', + ORDER_LIMIT_ERROR = 'ORDER_LIMIT_ERROR', + ORDER_MODIFICATION_ERROR = 'ORDER_MODIFICATION_ERROR', + ORDER_PAYMENT_STATE_ERROR = 'ORDER_PAYMENT_STATE_ERROR', + ORDER_STATE_TRANSITION_ERROR = 'ORDER_STATE_TRANSITION_ERROR', + PASSWORD_ALREADY_SET_ERROR = 'PASSWORD_ALREADY_SET_ERROR', + PASSWORD_RESET_TOKEN_EXPIRED_ERROR = 'PASSWORD_RESET_TOKEN_EXPIRED_ERROR', + PASSWORD_RESET_TOKEN_INVALID_ERROR = 'PASSWORD_RESET_TOKEN_INVALID_ERROR', + PASSWORD_VALIDATION_ERROR = 'PASSWORD_VALIDATION_ERROR', + PAYMENT_DECLINED_ERROR = 'PAYMENT_DECLINED_ERROR', + PAYMENT_FAILED_ERROR = 'PAYMENT_FAILED_ERROR', + UNKNOWN_ERROR = 'UNKNOWN_ERROR', + VERIFICATION_TOKEN_EXPIRED_ERROR = 'VERIFICATION_TOKEN_EXPIRED_ERROR', + VERIFICATION_TOKEN_INVALID_ERROR = 'VERIFICATION_TOKEN_INVALID_ERROR', } export type ErrorResult = { - errorCode: ErrorCode; - message: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; }; export type Facet = Node & { - code: Scalars['String']; - createdAt: Scalars['DateTime']; - customFields?: Maybe; - id: Scalars['ID']; - languageCode: LanguageCode; - name: Scalars['String']; - translations: Array; - updatedAt: Scalars['DateTime']; - values: Array; + code: Scalars['String']; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + id: Scalars['ID']; + languageCode: LanguageCode; + name: Scalars['String']; + translations: Array; + updatedAt: Scalars['DateTime']; + values: Array; }; export type FacetFilterParameter = { - code?: InputMaybe; - createdAt?: InputMaybe; - id?: InputMaybe; - languageCode?: InputMaybe; - name?: InputMaybe; - updatedAt?: InputMaybe; + code?: InputMaybe; + createdAt?: InputMaybe; + id?: InputMaybe; + languageCode?: InputMaybe; + name?: InputMaybe; + updatedAt?: InputMaybe; }; export type FacetList = PaginatedList & { - items: Array; - totalItems: Scalars['Int']; + items: Array; + totalItems: Scalars['Int']; }; export type FacetListOptions = { - /** Allows the results to be filtered */ - filter?: InputMaybe; - /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ - filterOperator?: InputMaybe; - /** Skips the first n results, for use in pagination */ - skip?: InputMaybe; - /** Specifies which properties to sort the results by */ - sort?: InputMaybe; - /** Takes n results, for use in pagination */ - take?: InputMaybe; + /** Allows the results to be filtered */ + filter?: InputMaybe; + /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ + filterOperator?: InputMaybe; + /** Skips the first n results, for use in pagination */ + skip?: InputMaybe; + /** Specifies which properties to sort the results by */ + sort?: InputMaybe; + /** Takes n results, for use in pagination */ + take?: InputMaybe; }; export type FacetSortParameter = { - code?: InputMaybe; - createdAt?: InputMaybe; - id?: InputMaybe; - name?: InputMaybe; - updatedAt?: InputMaybe; + code?: InputMaybe; + createdAt?: InputMaybe; + id?: InputMaybe; + name?: InputMaybe; + updatedAt?: InputMaybe; }; export type FacetTranslation = { - createdAt: Scalars['DateTime']; - id: Scalars['ID']; - languageCode: LanguageCode; - name: Scalars['String']; - updatedAt: Scalars['DateTime']; + createdAt: Scalars['DateTime']; + id: Scalars['ID']; + languageCode: LanguageCode; + name: Scalars['String']; + updatedAt: Scalars['DateTime']; }; export type FacetValue = Node & { - code: Scalars['String']; - createdAt: Scalars['DateTime']; - customFields?: Maybe; - facet: Facet; - id: Scalars['ID']; - languageCode: LanguageCode; - name: Scalars['String']; - translations: Array; - updatedAt: Scalars['DateTime']; + code: Scalars['String']; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + facet: Facet; + id: Scalars['ID']; + languageCode: LanguageCode; + name: Scalars['String']; + translations: Array; + updatedAt: Scalars['DateTime']; }; /** @@ -945,8 +961,8 @@ export type FacetValue = Node & { * * ID=1 AND (ID=2 OR ID=3): `{ facetValueFilters: [{ and: 1 }, { or: [2,3] }] }` */ export type FacetValueFilterInput = { - and?: InputMaybe; - or?: InputMaybe>; + and?: InputMaybe; + or?: InputMaybe>; }; /** @@ -954,134 +970,134 @@ export type FacetValueFilterInput = { * by the search, and in what quantity. */ export type FacetValueResult = { - count: Scalars['Int']; - facetValue: FacetValue; + count: Scalars['Int']; + facetValue: FacetValue; }; export type FacetValueTranslation = { - createdAt: Scalars['DateTime']; - id: Scalars['ID']; - languageCode: LanguageCode; - name: Scalars['String']; - updatedAt: Scalars['DateTime']; + createdAt: Scalars['DateTime']; + id: Scalars['ID']; + languageCode: LanguageCode; + name: Scalars['String']; + updatedAt: Scalars['DateTime']; }; export type FloatCustomFieldConfig = CustomField & { - description?: Maybe>; - internal?: Maybe; - label?: Maybe>; - list: Scalars['Boolean']; - max?: Maybe; - min?: Maybe; - name: Scalars['String']; - nullable?: Maybe; - readonly?: Maybe; - step?: Maybe; - type: Scalars['String']; - ui?: Maybe; + description?: Maybe>; + internal?: Maybe; + label?: Maybe>; + list: Scalars['Boolean']; + max?: Maybe; + min?: Maybe; + name: Scalars['String']; + nullable?: Maybe; + readonly?: Maybe; + step?: Maybe; + type: Scalars['String']; + ui?: Maybe; }; export type Fulfillment = Node & { - createdAt: Scalars['DateTime']; - customFields?: Maybe; - id: Scalars['ID']; - method: Scalars['String']; - orderItems: Array; - state: Scalars['String']; - summary: Array; - trackingCode?: Maybe; - updatedAt: Scalars['DateTime']; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + id: Scalars['ID']; + method: Scalars['String']; + orderItems: Array; + state: Scalars['String']; + summary: Array; + trackingCode?: Maybe; + updatedAt: Scalars['DateTime']; }; export type FulfillmentLineSummary = { - orderLine: OrderLine; - quantity: Scalars['Int']; + orderLine: OrderLine; + quantity: Scalars['Int']; }; export enum GlobalFlag { - FALSE = 'FALSE', - INHERIT = 'INHERIT', - TRUE = 'TRUE' + FALSE = 'FALSE', + INHERIT = 'INHERIT', + TRUE = 'TRUE', } export type HistoryEntry = Node & { - createdAt: Scalars['DateTime']; - data: Scalars['JSON']; - id: Scalars['ID']; - type: HistoryEntryType; - updatedAt: Scalars['DateTime']; + createdAt: Scalars['DateTime']; + data: Scalars['JSON']; + id: Scalars['ID']; + type: HistoryEntryType; + updatedAt: Scalars['DateTime']; }; export type HistoryEntryFilterParameter = { - createdAt?: InputMaybe; - id?: InputMaybe; - type?: InputMaybe; - updatedAt?: InputMaybe; + createdAt?: InputMaybe; + id?: InputMaybe; + type?: InputMaybe; + updatedAt?: InputMaybe; }; export type HistoryEntryList = PaginatedList & { - items: Array; - totalItems: Scalars['Int']; + items: Array; + totalItems: Scalars['Int']; }; export type HistoryEntryListOptions = { - /** Allows the results to be filtered */ - filter?: InputMaybe; - /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ - filterOperator?: InputMaybe; - /** Skips the first n results, for use in pagination */ - skip?: InputMaybe; - /** Specifies which properties to sort the results by */ - sort?: InputMaybe; - /** Takes n results, for use in pagination */ - take?: InputMaybe; + /** Allows the results to be filtered */ + filter?: InputMaybe; + /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ + filterOperator?: InputMaybe; + /** Skips the first n results, for use in pagination */ + skip?: InputMaybe; + /** Specifies which properties to sort the results by */ + sort?: InputMaybe; + /** Takes n results, for use in pagination */ + take?: InputMaybe; }; export type HistoryEntrySortParameter = { - createdAt?: InputMaybe; - id?: InputMaybe; - updatedAt?: InputMaybe; + createdAt?: InputMaybe; + id?: InputMaybe; + updatedAt?: InputMaybe; }; export enum HistoryEntryType { - CUSTOMER_ADDED_TO_GROUP = 'CUSTOMER_ADDED_TO_GROUP', - CUSTOMER_ADDRESS_CREATED = 'CUSTOMER_ADDRESS_CREATED', - CUSTOMER_ADDRESS_DELETED = 'CUSTOMER_ADDRESS_DELETED', - CUSTOMER_ADDRESS_UPDATED = 'CUSTOMER_ADDRESS_UPDATED', - CUSTOMER_DETAIL_UPDATED = 'CUSTOMER_DETAIL_UPDATED', - CUSTOMER_EMAIL_UPDATE_REQUESTED = 'CUSTOMER_EMAIL_UPDATE_REQUESTED', - CUSTOMER_EMAIL_UPDATE_VERIFIED = 'CUSTOMER_EMAIL_UPDATE_VERIFIED', - CUSTOMER_NOTE = 'CUSTOMER_NOTE', - CUSTOMER_PASSWORD_RESET_REQUESTED = 'CUSTOMER_PASSWORD_RESET_REQUESTED', - CUSTOMER_PASSWORD_RESET_VERIFIED = 'CUSTOMER_PASSWORD_RESET_VERIFIED', - CUSTOMER_PASSWORD_UPDATED = 'CUSTOMER_PASSWORD_UPDATED', - CUSTOMER_REGISTERED = 'CUSTOMER_REGISTERED', - CUSTOMER_REMOVED_FROM_GROUP = 'CUSTOMER_REMOVED_FROM_GROUP', - CUSTOMER_VERIFIED = 'CUSTOMER_VERIFIED', - ORDER_CANCELLATION = 'ORDER_CANCELLATION', - ORDER_COUPON_APPLIED = 'ORDER_COUPON_APPLIED', - ORDER_COUPON_REMOVED = 'ORDER_COUPON_REMOVED', - ORDER_FULFILLMENT = 'ORDER_FULFILLMENT', - ORDER_FULFILLMENT_TRANSITION = 'ORDER_FULFILLMENT_TRANSITION', - ORDER_MODIFIED = 'ORDER_MODIFIED', - ORDER_NOTE = 'ORDER_NOTE', - ORDER_PAYMENT_TRANSITION = 'ORDER_PAYMENT_TRANSITION', - ORDER_REFUND_TRANSITION = 'ORDER_REFUND_TRANSITION', - ORDER_STATE_TRANSITION = 'ORDER_STATE_TRANSITION' + CUSTOMER_ADDED_TO_GROUP = 'CUSTOMER_ADDED_TO_GROUP', + CUSTOMER_ADDRESS_CREATED = 'CUSTOMER_ADDRESS_CREATED', + CUSTOMER_ADDRESS_DELETED = 'CUSTOMER_ADDRESS_DELETED', + CUSTOMER_ADDRESS_UPDATED = 'CUSTOMER_ADDRESS_UPDATED', + CUSTOMER_DETAIL_UPDATED = 'CUSTOMER_DETAIL_UPDATED', + CUSTOMER_EMAIL_UPDATE_REQUESTED = 'CUSTOMER_EMAIL_UPDATE_REQUESTED', + CUSTOMER_EMAIL_UPDATE_VERIFIED = 'CUSTOMER_EMAIL_UPDATE_VERIFIED', + CUSTOMER_NOTE = 'CUSTOMER_NOTE', + CUSTOMER_PASSWORD_RESET_REQUESTED = 'CUSTOMER_PASSWORD_RESET_REQUESTED', + CUSTOMER_PASSWORD_RESET_VERIFIED = 'CUSTOMER_PASSWORD_RESET_VERIFIED', + CUSTOMER_PASSWORD_UPDATED = 'CUSTOMER_PASSWORD_UPDATED', + CUSTOMER_REGISTERED = 'CUSTOMER_REGISTERED', + CUSTOMER_REMOVED_FROM_GROUP = 'CUSTOMER_REMOVED_FROM_GROUP', + CUSTOMER_VERIFIED = 'CUSTOMER_VERIFIED', + ORDER_CANCELLATION = 'ORDER_CANCELLATION', + ORDER_COUPON_APPLIED = 'ORDER_COUPON_APPLIED', + ORDER_COUPON_REMOVED = 'ORDER_COUPON_REMOVED', + ORDER_FULFILLMENT = 'ORDER_FULFILLMENT', + ORDER_FULFILLMENT_TRANSITION = 'ORDER_FULFILLMENT_TRANSITION', + ORDER_MODIFIED = 'ORDER_MODIFIED', + ORDER_NOTE = 'ORDER_NOTE', + ORDER_PAYMENT_TRANSITION = 'ORDER_PAYMENT_TRANSITION', + ORDER_REFUND_TRANSITION = 'ORDER_REFUND_TRANSITION', + ORDER_STATE_TRANSITION = 'ORDER_STATE_TRANSITION', } /** Operators for filtering on a list of ID fields */ export type IdListOperators = { - inList: Scalars['ID']; + inList: Scalars['ID']; }; /** Operators for filtering on an ID field */ export type IdOperators = { - eq?: InputMaybe; - in?: InputMaybe>; - isNull?: InputMaybe; - notEq?: InputMaybe; - notIn?: InputMaybe>; + eq?: InputMaybe; + in?: InputMaybe>; + isNull?: InputMaybe; + notEq?: InputMaybe; + notIn?: InputMaybe>; }; /** @@ -1089,8 +1105,8 @@ export type IdOperators = { * expired according to the `verificationTokenDuration` setting in the AuthOptions. */ export type IdentifierChangeTokenExpiredError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; }; /** @@ -1098,51 +1114,51 @@ export type IdentifierChangeTokenExpiredError = ErrorResult & { * invalid or does not match any expected tokens. */ export type IdentifierChangeTokenInvalidError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; }; /** Returned when attempting to add a Payment using a PaymentMethod for which the Order is not eligible. */ export type IneligiblePaymentMethodError = ErrorResult & { - eligibilityCheckerMessage?: Maybe; - errorCode: ErrorCode; - message: Scalars['String']; + eligibilityCheckerMessage?: Maybe; + errorCode: ErrorCode; + message: Scalars['String']; }; /** Returned when attempting to set a ShippingMethod for which the Order is not eligible */ export type IneligibleShippingMethodError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; }; /** Returned when attempting to add more items to the Order than are available */ export type InsufficientStockError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; - order: Order; - quantityAvailable: Scalars['Int']; + errorCode: ErrorCode; + message: Scalars['String']; + order: Order; + quantityAvailable: Scalars['Int']; }; export type IntCustomFieldConfig = CustomField & { - description?: Maybe>; - internal?: Maybe; - label?: Maybe>; - list: Scalars['Boolean']; - max?: Maybe; - min?: Maybe; - name: Scalars['String']; - nullable?: Maybe; - readonly?: Maybe; - step?: Maybe; - type: Scalars['String']; - ui?: Maybe; + description?: Maybe>; + internal?: Maybe; + label?: Maybe>; + list: Scalars['Boolean']; + max?: Maybe; + min?: Maybe; + name: Scalars['String']; + nullable?: Maybe; + readonly?: Maybe; + step?: Maybe; + type: Scalars['String']; + ui?: Maybe; }; /** Returned if the user authentication credentials are not valid */ export type InvalidCredentialsError = ErrorResult & { - authenticationError: Scalars['String']; - errorCode: ErrorCode; - message: Scalars['String']; + authenticationError: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; }; /** @@ -1155,595 +1171,573 @@ export type InvalidCredentialsError = ErrorResult & { * @docsCategory common */ export enum LanguageCode { - /** Afrikaans */ - af = 'af', - /** Akan */ - ak = 'ak', - /** Amharic */ - am = 'am', - /** Arabic */ - ar = 'ar', - /** Assamese */ - as = 'as', - /** Azerbaijani */ - az = 'az', - /** Belarusian */ - be = 'be', - /** Bulgarian */ - bg = 'bg', - /** Bambara */ - bm = 'bm', - /** Bangla */ - bn = 'bn', - /** Tibetan */ - bo = 'bo', - /** Breton */ - br = 'br', - /** Bosnian */ - bs = 'bs', - /** Catalan */ - ca = 'ca', - /** Chechen */ - ce = 'ce', - /** Corsican */ - co = 'co', - /** Czech */ - cs = 'cs', - /** Church Slavic */ - cu = 'cu', - /** Welsh */ - cy = 'cy', - /** Danish */ - da = 'da', - /** German */ - de = 'de', - /** Austrian German */ - de_AT = 'de_AT', - /** Swiss High German */ - de_CH = 'de_CH', - /** Dzongkha */ - dz = 'dz', - /** Ewe */ - ee = 'ee', - /** Greek */ - el = 'el', - /** English */ - en = 'en', - /** Australian English */ - en_AU = 'en_AU', - /** Canadian English */ - en_CA = 'en_CA', - /** British English */ - en_GB = 'en_GB', - /** American English */ - en_US = 'en_US', - /** Esperanto */ - eo = 'eo', - /** Spanish */ - es = 'es', - /** European Spanish */ - es_ES = 'es_ES', - /** Mexican Spanish */ - es_MX = 'es_MX', - /** Estonian */ - et = 'et', - /** Basque */ - eu = 'eu', - /** Persian */ - fa = 'fa', - /** Dari */ - fa_AF = 'fa_AF', - /** Fulah */ - ff = 'ff', - /** Finnish */ - fi = 'fi', - /** Faroese */ - fo = 'fo', - /** French */ - fr = 'fr', - /** Canadian French */ - fr_CA = 'fr_CA', - /** Swiss French */ - fr_CH = 'fr_CH', - /** Western Frisian */ - fy = 'fy', - /** Irish */ - ga = 'ga', - /** Scottish Gaelic */ - gd = 'gd', - /** Galician */ - gl = 'gl', - /** Gujarati */ - gu = 'gu', - /** Manx */ - gv = 'gv', - /** Hausa */ - ha = 'ha', - /** Hebrew */ - he = 'he', - /** Hindi */ - hi = 'hi', - /** Croatian */ - hr = 'hr', - /** Haitian Creole */ - ht = 'ht', - /** Hungarian */ - hu = 'hu', - /** Armenian */ - hy = 'hy', - /** Interlingua */ - ia = 'ia', - /** Indonesian */ - id = 'id', - /** Igbo */ - ig = 'ig', - /** Sichuan Yi */ - ii = 'ii', - /** Icelandic */ - is = 'is', - /** Italian */ - it = 'it', - /** Japanese */ - ja = 'ja', - /** Javanese */ - jv = 'jv', - /** Georgian */ - ka = 'ka', - /** Kikuyu */ - ki = 'ki', - /** Kazakh */ - kk = 'kk', - /** Kalaallisut */ - kl = 'kl', - /** Khmer */ - km = 'km', - /** Kannada */ - kn = 'kn', - /** Korean */ - ko = 'ko', - /** Kashmiri */ - ks = 'ks', - /** Kurdish */ - ku = 'ku', - /** Cornish */ - kw = 'kw', - /** Kyrgyz */ - ky = 'ky', - /** Latin */ - la = 'la', - /** Luxembourgish */ - lb = 'lb', - /** Ganda */ - lg = 'lg', - /** Lingala */ - ln = 'ln', - /** Lao */ - lo = 'lo', - /** Lithuanian */ - lt = 'lt', - /** Luba-Katanga */ - lu = 'lu', - /** Latvian */ - lv = 'lv', - /** Malagasy */ - mg = 'mg', - /** Maori */ - mi = 'mi', - /** Macedonian */ - mk = 'mk', - /** Malayalam */ - ml = 'ml', - /** Mongolian */ - mn = 'mn', - /** Marathi */ - mr = 'mr', - /** Malay */ - ms = 'ms', - /** Maltese */ - mt = 'mt', - /** Burmese */ - my = 'my', - /** Norwegian Bokmål */ - nb = 'nb', - /** North Ndebele */ - nd = 'nd', - /** Nepali */ - ne = 'ne', - /** Dutch */ - nl = 'nl', - /** Flemish */ - nl_BE = 'nl_BE', - /** Norwegian Nynorsk */ - nn = 'nn', - /** Nyanja */ - ny = 'ny', - /** Oromo */ - om = 'om', - /** Odia */ - or = 'or', - /** Ossetic */ - os = 'os', - /** Punjabi */ - pa = 'pa', - /** Polish */ - pl = 'pl', - /** Pashto */ - ps = 'ps', - /** Portuguese */ - pt = 'pt', - /** Brazilian Portuguese */ - pt_BR = 'pt_BR', - /** European Portuguese */ - pt_PT = 'pt_PT', - /** Quechua */ - qu = 'qu', - /** Romansh */ - rm = 'rm', - /** Rundi */ - rn = 'rn', - /** Romanian */ - ro = 'ro', - /** Moldavian */ - ro_MD = 'ro_MD', - /** Russian */ - ru = 'ru', - /** Kinyarwanda */ - rw = 'rw', - /** Sanskrit */ - sa = 'sa', - /** Sindhi */ - sd = 'sd', - /** Northern Sami */ - se = 'se', - /** Sango */ - sg = 'sg', - /** Sinhala */ - si = 'si', - /** Slovak */ - sk = 'sk', - /** Slovenian */ - sl = 'sl', - /** Samoan */ - sm = 'sm', - /** Shona */ - sn = 'sn', - /** Somali */ - so = 'so', - /** Albanian */ - sq = 'sq', - /** Serbian */ - sr = 'sr', - /** Southern Sotho */ - st = 'st', - /** Sundanese */ - su = 'su', - /** Swedish */ - sv = 'sv', - /** Swahili */ - sw = 'sw', - /** Congo Swahili */ - sw_CD = 'sw_CD', - /** Tamil */ - ta = 'ta', - /** Telugu */ - te = 'te', - /** Tajik */ - tg = 'tg', - /** Thai */ - th = 'th', - /** Tigrinya */ - ti = 'ti', - /** Turkmen */ - tk = 'tk', - /** Tongan */ - to = 'to', - /** Turkish */ - tr = 'tr', - /** Tatar */ - tt = 'tt', - /** Uyghur */ - ug = 'ug', - /** Ukrainian */ - uk = 'uk', - /** Urdu */ - ur = 'ur', - /** Uzbek */ - uz = 'uz', - /** Vietnamese */ - vi = 'vi', - /** Volapük */ - vo = 'vo', - /** Wolof */ - wo = 'wo', - /** Xhosa */ - xh = 'xh', - /** Yiddish */ - yi = 'yi', - /** Yoruba */ - yo = 'yo', - /** Chinese */ - zh = 'zh', - /** Simplified Chinese */ - zh_Hans = 'zh_Hans', - /** Traditional Chinese */ - zh_Hant = 'zh_Hant', - /** Zulu */ - zu = 'zu' + /** Afrikaans */ + af = 'af', + /** Akan */ + ak = 'ak', + /** Amharic */ + am = 'am', + /** Arabic */ + ar = 'ar', + /** Assamese */ + as = 'as', + /** Azerbaijani */ + az = 'az', + /** Belarusian */ + be = 'be', + /** Bulgarian */ + bg = 'bg', + /** Bambara */ + bm = 'bm', + /** Bangla */ + bn = 'bn', + /** Tibetan */ + bo = 'bo', + /** Breton */ + br = 'br', + /** Bosnian */ + bs = 'bs', + /** Catalan */ + ca = 'ca', + /** Chechen */ + ce = 'ce', + /** Corsican */ + co = 'co', + /** Czech */ + cs = 'cs', + /** Church Slavic */ + cu = 'cu', + /** Welsh */ + cy = 'cy', + /** Danish */ + da = 'da', + /** German */ + de = 'de', + /** Austrian German */ + de_AT = 'de_AT', + /** Swiss High German */ + de_CH = 'de_CH', + /** Dzongkha */ + dz = 'dz', + /** Ewe */ + ee = 'ee', + /** Greek */ + el = 'el', + /** English */ + en = 'en', + /** Australian English */ + en_AU = 'en_AU', + /** Canadian English */ + en_CA = 'en_CA', + /** British English */ + en_GB = 'en_GB', + /** American English */ + en_US = 'en_US', + /** Esperanto */ + eo = 'eo', + /** Spanish */ + es = 'es', + /** European Spanish */ + es_ES = 'es_ES', + /** Mexican Spanish */ + es_MX = 'es_MX', + /** Estonian */ + et = 'et', + /** Basque */ + eu = 'eu', + /** Persian */ + fa = 'fa', + /** Dari */ + fa_AF = 'fa_AF', + /** Fulah */ + ff = 'ff', + /** Finnish */ + fi = 'fi', + /** Faroese */ + fo = 'fo', + /** French */ + fr = 'fr', + /** Canadian French */ + fr_CA = 'fr_CA', + /** Swiss French */ + fr_CH = 'fr_CH', + /** Western Frisian */ + fy = 'fy', + /** Irish */ + ga = 'ga', + /** Scottish Gaelic */ + gd = 'gd', + /** Galician */ + gl = 'gl', + /** Gujarati */ + gu = 'gu', + /** Manx */ + gv = 'gv', + /** Hausa */ + ha = 'ha', + /** Hebrew */ + he = 'he', + /** Hindi */ + hi = 'hi', + /** Croatian */ + hr = 'hr', + /** Haitian Creole */ + ht = 'ht', + /** Hungarian */ + hu = 'hu', + /** Armenian */ + hy = 'hy', + /** Interlingua */ + ia = 'ia', + /** Indonesian */ + id = 'id', + /** Igbo */ + ig = 'ig', + /** Sichuan Yi */ + ii = 'ii', + /** Icelandic */ + is = 'is', + /** Italian */ + it = 'it', + /** Japanese */ + ja = 'ja', + /** Javanese */ + jv = 'jv', + /** Georgian */ + ka = 'ka', + /** Kikuyu */ + ki = 'ki', + /** Kazakh */ + kk = 'kk', + /** Kalaallisut */ + kl = 'kl', + /** Khmer */ + km = 'km', + /** Kannada */ + kn = 'kn', + /** Korean */ + ko = 'ko', + /** Kashmiri */ + ks = 'ks', + /** Kurdish */ + ku = 'ku', + /** Cornish */ + kw = 'kw', + /** Kyrgyz */ + ky = 'ky', + /** Latin */ + la = 'la', + /** Luxembourgish */ + lb = 'lb', + /** Ganda */ + lg = 'lg', + /** Lingala */ + ln = 'ln', + /** Lao */ + lo = 'lo', + /** Lithuanian */ + lt = 'lt', + /** Luba-Katanga */ + lu = 'lu', + /** Latvian */ + lv = 'lv', + /** Malagasy */ + mg = 'mg', + /** Maori */ + mi = 'mi', + /** Macedonian */ + mk = 'mk', + /** Malayalam */ + ml = 'ml', + /** Mongolian */ + mn = 'mn', + /** Marathi */ + mr = 'mr', + /** Malay */ + ms = 'ms', + /** Maltese */ + mt = 'mt', + /** Burmese */ + my = 'my', + /** Norwegian Bokmål */ + nb = 'nb', + /** North Ndebele */ + nd = 'nd', + /** Nepali */ + ne = 'ne', + /** Dutch */ + nl = 'nl', + /** Flemish */ + nl_BE = 'nl_BE', + /** Norwegian Nynorsk */ + nn = 'nn', + /** Nyanja */ + ny = 'ny', + /** Oromo */ + om = 'om', + /** Odia */ + or = 'or', + /** Ossetic */ + os = 'os', + /** Punjabi */ + pa = 'pa', + /** Polish */ + pl = 'pl', + /** Pashto */ + ps = 'ps', + /** Portuguese */ + pt = 'pt', + /** Brazilian Portuguese */ + pt_BR = 'pt_BR', + /** European Portuguese */ + pt_PT = 'pt_PT', + /** Quechua */ + qu = 'qu', + /** Romansh */ + rm = 'rm', + /** Rundi */ + rn = 'rn', + /** Romanian */ + ro = 'ro', + /** Moldavian */ + ro_MD = 'ro_MD', + /** Russian */ + ru = 'ru', + /** Kinyarwanda */ + rw = 'rw', + /** Sanskrit */ + sa = 'sa', + /** Sindhi */ + sd = 'sd', + /** Northern Sami */ + se = 'se', + /** Sango */ + sg = 'sg', + /** Sinhala */ + si = 'si', + /** Slovak */ + sk = 'sk', + /** Slovenian */ + sl = 'sl', + /** Samoan */ + sm = 'sm', + /** Shona */ + sn = 'sn', + /** Somali */ + so = 'so', + /** Albanian */ + sq = 'sq', + /** Serbian */ + sr = 'sr', + /** Southern Sotho */ + st = 'st', + /** Sundanese */ + su = 'su', + /** Swedish */ + sv = 'sv', + /** Swahili */ + sw = 'sw', + /** Congo Swahili */ + sw_CD = 'sw_CD', + /** Tamil */ + ta = 'ta', + /** Telugu */ + te = 'te', + /** Tajik */ + tg = 'tg', + /** Thai */ + th = 'th', + /** Tigrinya */ + ti = 'ti', + /** Turkmen */ + tk = 'tk', + /** Tongan */ + to = 'to', + /** Turkish */ + tr = 'tr', + /** Tatar */ + tt = 'tt', + /** Uyghur */ + ug = 'ug', + /** Ukrainian */ + uk = 'uk', + /** Urdu */ + ur = 'ur', + /** Uzbek */ + uz = 'uz', + /** Vietnamese */ + vi = 'vi', + /** Volapük */ + vo = 'vo', + /** Wolof */ + wo = 'wo', + /** Xhosa */ + xh = 'xh', + /** Yiddish */ + yi = 'yi', + /** Yoruba */ + yo = 'yo', + /** Chinese */ + zh = 'zh', + /** Simplified Chinese */ + zh_Hans = 'zh_Hans', + /** Traditional Chinese */ + zh_Hant = 'zh_Hant', + /** Zulu */ + zu = 'zu', } export type LocaleStringCustomFieldConfig = CustomField & { - description?: Maybe>; - internal?: Maybe; - label?: Maybe>; - length?: Maybe; - list: Scalars['Boolean']; - name: Scalars['String']; - nullable?: Maybe; - pattern?: Maybe; - readonly?: Maybe; - type: Scalars['String']; - ui?: Maybe; + description?: Maybe>; + internal?: Maybe; + label?: Maybe>; + length?: Maybe; + list: Scalars['Boolean']; + name: Scalars['String']; + nullable?: Maybe; + pattern?: Maybe; + readonly?: Maybe; + type: Scalars['String']; + ui?: Maybe; }; export type LocalizedString = { - languageCode: LanguageCode; - value: Scalars['String']; + languageCode: LanguageCode; + value: Scalars['String']; }; export enum LogicalOperator { - AND = 'AND', - OR = 'OR' + AND = 'AND', + OR = 'OR', } /** Returned when attempting to register or verify a customer account without a password, when one is required. */ export type MissingPasswordError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; }; export type Mutation = { - /** Adds an item to the order. If custom fields are defined on the OrderLine entity, a third argument 'customFields' will be available. */ - addItemToOrder: UpdateOrderItemsResult; - /** Add a Payment to the Order */ - addPaymentToOrder: AddPaymentToOrderResult; - /** Adjusts an OrderLine. If custom fields are defined on the OrderLine entity, a third argument 'customFields' of type `OrderLineCustomFieldsInput` will be available. */ - adjustOrderLine: UpdateOrderItemsResult; - /** Applies the given coupon code to the active Order */ - applyCouponCode: ApplyCouponCodeResult; - /** Authenticates the user using a named authentication strategy */ - authenticate: AuthenticationResult; - /** Create a new Customer Address */ - createCustomerAddress: Address; - /** Delete an existing Address */ - deleteCustomerAddress: Success; - /** Authenticates the user using the native authentication strategy. This mutation is an alias for `authenticate({ native: { ... }})` */ - login: NativeAuthenticationResult; - /** End the current authenticated session */ - logout: Success; - /** Regenerate and send a verification token for a new Customer registration. Only applicable if `authOptions.requireVerification` is set to true. */ - refreshCustomerVerification: RefreshCustomerVerificationResult; - /** - * Register a Customer account with the given credentials. There are three possible registration flows: - * - * _If `authOptions.requireVerification` is set to `true`:_ - * - * 1. **The Customer is registered _with_ a password**. A verificationToken will be created (and typically emailed to the Customer). That - * verificationToken would then be passed to the `verifyCustomerAccount` mutation _without_ a password. The Customer is then - * verified and authenticated in one step. - * 2. **The Customer is registered _without_ a password**. A verificationToken will be created (and typically emailed to the Customer). That - * verificationToken would then be passed to the `verifyCustomerAccount` mutation _with_ the chosen password of the Customer. The Customer is then - * verified and authenticated in one step. - * - * _If `authOptions.requireVerification` is set to `false`:_ - * - * 3. The Customer _must_ be registered _with_ a password. No further action is needed - the Customer is able to authenticate immediately. - */ - registerCustomerAccount: RegisterCustomerAccountResult; - /** Remove all OrderLine from the Order */ - removeAllOrderLines: RemoveOrderItemsResult; - /** Removes the given coupon code from the active Order */ - removeCouponCode?: Maybe; - /** Remove an OrderLine from the Order */ - removeOrderLine: RemoveOrderItemsResult; - /** Requests a password reset email to be sent */ - requestPasswordReset?: Maybe; - /** - * Request to update the emailAddress of the active Customer. If `authOptions.requireVerification` is enabled - * (as is the default), then the `identifierChangeToken` will be assigned to the current User and - * a IdentifierChangeRequestEvent will be raised. This can then be used e.g. by the EmailPlugin to email - * that verification token to the Customer, which is then used to verify the change of email address. - */ - requestUpdateCustomerEmailAddress: RequestUpdateCustomerEmailAddressResult; - /** Resets a Customer's password based on the provided token */ - resetPassword: ResetPasswordResult; - /** Set the Customer for the Order. Required only if the Customer is not currently logged in */ - setCustomerForOrder: SetCustomerForOrderResult; - /** Sets the billing address for this order */ - setOrderBillingAddress: ActiveOrderResult; - /** Allows any custom fields to be set for the active order */ - setOrderCustomFields: ActiveOrderResult; - /** Sets the shipping address for this order */ - setOrderShippingAddress: ActiveOrderResult; - /** Sets the shipping method by id, which can be obtained with the `eligibleShippingMethods` query */ - setOrderShippingMethod: SetOrderShippingMethodResult; - /** Transitions an Order to a new state. Valid next states can be found by querying `nextOrderStates` */ - transitionOrderToState?: Maybe; - /** Update an existing Customer */ - updateCustomer: Customer; - /** Update an existing Address */ - updateCustomerAddress: Address; - /** - * Confirm the update of the emailAddress with the provided token, which has been generated by the - * `requestUpdateCustomerEmailAddress` mutation. - */ - updateCustomerEmailAddress: UpdateCustomerEmailAddressResult; - /** Update the password of the active Customer */ - updateCustomerPassword: UpdateCustomerPasswordResult; - /** - * Verify a Customer email address with the token sent to that address. Only applicable if `authOptions.requireVerification` is set to true. - * - * If the Customer was not registered with a password in the `registerCustomerAccount` mutation, the password _must_ be - * provided here. - */ - verifyCustomerAccount: VerifyCustomerAccountResult; + /** Adds an item to the order. If custom fields are defined on the OrderLine entity, a third argument 'customFields' will be available. */ + addItemToOrder: UpdateOrderItemsResult; + /** Add a Payment to the Order */ + addPaymentToOrder: AddPaymentToOrderResult; + /** Adjusts an OrderLine. If custom fields are defined on the OrderLine entity, a third argument 'customFields' of type `OrderLineCustomFieldsInput` will be available. */ + adjustOrderLine: UpdateOrderItemsResult; + /** Applies the given coupon code to the active Order */ + applyCouponCode: ApplyCouponCodeResult; + /** Authenticates the user using a named authentication strategy */ + authenticate: AuthenticationResult; + /** Create a new Customer Address */ + createCustomerAddress: Address; + /** Delete an existing Address */ + deleteCustomerAddress: Success; + /** Authenticates the user using the native authentication strategy. This mutation is an alias for `authenticate({ native: { ... }})` */ + login: NativeAuthenticationResult; + /** End the current authenticated session */ + logout: Success; + /** Regenerate and send a verification token for a new Customer registration. Only applicable if `authOptions.requireVerification` is set to true. */ + refreshCustomerVerification: RefreshCustomerVerificationResult; + /** + * Register a Customer account with the given credentials. There are three possible registration flows: + * + * _If `authOptions.requireVerification` is set to `true`:_ + * + * 1. **The Customer is registered _with_ a password**. A verificationToken will be created (and typically emailed to the Customer). That + * verificationToken would then be passed to the `verifyCustomerAccount` mutation _without_ a password. The Customer is then + * verified and authenticated in one step. + * 2. **The Customer is registered _without_ a password**. A verificationToken will be created (and typically emailed to the Customer). That + * verificationToken would then be passed to the `verifyCustomerAccount` mutation _with_ the chosen password of the Customer. The Customer is then + * verified and authenticated in one step. + * + * _If `authOptions.requireVerification` is set to `false`:_ + * + * 3. The Customer _must_ be registered _with_ a password. No further action is needed - the Customer is able to authenticate immediately. + */ + registerCustomerAccount: RegisterCustomerAccountResult; + /** Remove all OrderLine from the Order */ + removeAllOrderLines: RemoveOrderItemsResult; + /** Removes the given coupon code from the active Order */ + removeCouponCode?: Maybe; + /** Remove an OrderLine from the Order */ + removeOrderLine: RemoveOrderItemsResult; + /** Requests a password reset email to be sent */ + requestPasswordReset?: Maybe; + /** + * Request to update the emailAddress of the active Customer. If `authOptions.requireVerification` is enabled + * (as is the default), then the `identifierChangeToken` will be assigned to the current User and + * a IdentifierChangeRequestEvent will be raised. This can then be used e.g. by the EmailPlugin to email + * that verification token to the Customer, which is then used to verify the change of email address. + */ + requestUpdateCustomerEmailAddress: RequestUpdateCustomerEmailAddressResult; + /** Resets a Customer's password based on the provided token */ + resetPassword: ResetPasswordResult; + /** Set the Customer for the Order. Required only if the Customer is not currently logged in */ + setCustomerForOrder: SetCustomerForOrderResult; + /** Sets the billing address for this order */ + setOrderBillingAddress: ActiveOrderResult; + /** Allows any custom fields to be set for the active order */ + setOrderCustomFields: ActiveOrderResult; + /** Sets the shipping address for this order */ + setOrderShippingAddress: ActiveOrderResult; + /** Sets the shipping method by id, which can be obtained with the `eligibleShippingMethods` query */ + setOrderShippingMethod: SetOrderShippingMethodResult; + /** Transitions an Order to a new state. Valid next states can be found by querying `nextOrderStates` */ + transitionOrderToState?: Maybe; + /** Update an existing Customer */ + updateCustomer: Customer; + /** Update an existing Address */ + updateCustomerAddress: Address; + /** + * Confirm the update of the emailAddress with the provided token, which has been generated by the + * `requestUpdateCustomerEmailAddress` mutation. + */ + updateCustomerEmailAddress: UpdateCustomerEmailAddressResult; + /** Update the password of the active Customer */ + updateCustomerPassword: UpdateCustomerPasswordResult; + /** + * Verify a Customer email address with the token sent to that address. Only applicable if `authOptions.requireVerification` is set to true. + * + * If the Customer was not registered with a password in the `registerCustomerAccount` mutation, the password _must_ be + * provided here. + */ + verifyCustomerAccount: VerifyCustomerAccountResult; }; - export type MutationAddItemToOrderArgs = { - productVariantId: Scalars['ID']; - quantity: Scalars['Int']; + productVariantId: Scalars['ID']; + quantity: Scalars['Int']; }; - export type MutationAddPaymentToOrderArgs = { - input: PaymentInput; + input: PaymentInput; }; - export type MutationAdjustOrderLineArgs = { - orderLineId: Scalars['ID']; - quantity: Scalars['Int']; + orderLineId: Scalars['ID']; + quantity: Scalars['Int']; }; - export type MutationApplyCouponCodeArgs = { - couponCode: Scalars['String']; + couponCode: Scalars['String']; }; - export type MutationAuthenticateArgs = { - input: AuthenticationInput; - rememberMe?: InputMaybe; + input: AuthenticationInput; + rememberMe?: InputMaybe; }; - export type MutationCreateCustomerAddressArgs = { - input: CreateAddressInput; + input: CreateAddressInput; }; - export type MutationDeleteCustomerAddressArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; - export type MutationLoginArgs = { - password: Scalars['String']; - rememberMe?: InputMaybe; - username: Scalars['String']; + password: Scalars['String']; + rememberMe?: InputMaybe; + username: Scalars['String']; }; - export type MutationRefreshCustomerVerificationArgs = { - emailAddress: Scalars['String']; + emailAddress: Scalars['String']; }; - export type MutationRegisterCustomerAccountArgs = { - input: RegisterCustomerInput; + input: RegisterCustomerInput; }; - export type MutationRemoveCouponCodeArgs = { - couponCode: Scalars['String']; + couponCode: Scalars['String']; }; - export type MutationRemoveOrderLineArgs = { - orderLineId: Scalars['ID']; + orderLineId: Scalars['ID']; }; - export type MutationRequestPasswordResetArgs = { - emailAddress: Scalars['String']; + emailAddress: Scalars['String']; }; - export type MutationRequestUpdateCustomerEmailAddressArgs = { - newEmailAddress: Scalars['String']; - password: Scalars['String']; + newEmailAddress: Scalars['String']; + password: Scalars['String']; }; - export type MutationResetPasswordArgs = { - password: Scalars['String']; - token: Scalars['String']; + password: Scalars['String']; + token: Scalars['String']; }; - export type MutationSetCustomerForOrderArgs = { - input: CreateCustomerInput; + input: CreateCustomerInput; }; - export type MutationSetOrderBillingAddressArgs = { - input: CreateAddressInput; + input: CreateAddressInput; }; - export type MutationSetOrderCustomFieldsArgs = { - input: UpdateOrderInput; + input: UpdateOrderInput; }; - export type MutationSetOrderShippingAddressArgs = { - input: CreateAddressInput; + input: CreateAddressInput; }; - export type MutationSetOrderShippingMethodArgs = { - shippingMethodId: 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']; }; /** @@ -1751,12 +1745,12 @@ export type NegativeQuantityError = ErrorResult & { * current session. */ export type NoActiveOrderError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; }; export type Node = { - id: Scalars['ID']; + id: Scalars['ID']; }; /** @@ -1764,283 +1758,282 @@ export type Node = { * and an unverified user attempts to authenticate. */ export type NotVerifiedError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; }; /** Operators for filtering on a list of Number fields */ export type NumberListOperators = { - inList: Scalars['Float']; + inList: Scalars['Float']; }; /** Operators for filtering on a Int or Float field */ export type NumberOperators = { - between?: InputMaybe; - eq?: InputMaybe; - gt?: InputMaybe; - gte?: InputMaybe; - isNull?: InputMaybe; - lt?: InputMaybe; - lte?: InputMaybe; + between?: InputMaybe; + eq?: InputMaybe; + gt?: InputMaybe; + gte?: InputMaybe; + isNull?: InputMaybe; + lt?: InputMaybe; + lte?: InputMaybe; }; export type NumberRange = { - end: Scalars['Float']; - start: Scalars['Float']; + end: Scalars['Float']; + start: Scalars['Float']; }; export type Order = Node & { - /** An order is active as long as the payment process has not been completed */ - active: Scalars['Boolean']; - billingAddress?: Maybe; - /** A unique code for the Order */ - code: Scalars['String']; - /** An array of all coupon codes applied to the Order */ - couponCodes: Array; - createdAt: Scalars['DateTime']; - currencyCode: CurrencyCode; - customFields?: Maybe; - customer?: Maybe; - discounts: Array; - fulfillments?: Maybe>; - history: HistoryEntryList; - id: Scalars['ID']; - lines: Array; - /** - * The date & time that the Order was placed, i.e. the Customer - * completed the checkout and the Order is no longer "active" - */ - orderPlacedAt?: Maybe; - payments?: Maybe>; - /** Promotions applied to the order. Only gets populated after the payment process has completed. */ - promotions: Array; - shipping: Scalars['Int']; - shippingAddress?: Maybe; - shippingLines: Array; - shippingWithTax: Scalars['Int']; - state: Scalars['String']; - /** - * The subTotal is the total of all OrderLines in the Order. This figure also includes any Order-level - * discounts which have been prorated (proportionally distributed) amongst the OrderItems. - * To get a total of all OrderLines which does not account for prorated discounts, use the - * sum of `OrderLine.discountedLinePrice` values. - */ - subTotal: Scalars['Int']; - /** Same as subTotal, but inclusive of tax */ - subTotalWithTax: Scalars['Int']; - /** - * Surcharges are arbitrary modifications to the Order total which are neither - * ProductVariants nor discounts resulting from applied Promotions. For example, - * one-off discounts based on customer interaction, or surcharges based on payment - * methods. - */ - surcharges: Array; - /** A summary of the taxes being applied to this Order */ - taxSummary: Array; - /** Equal to subTotal plus shipping */ - total: Scalars['Int']; - totalQuantity: Scalars['Int']; - /** The final payable amount. Equal to subTotalWithTax plus shippingWithTax */ - totalWithTax: Scalars['Int']; - 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['Int']; + shippingAddress?: Maybe; + shippingLines: Array; + shippingWithTax: Scalars['Int']; + state: Scalars['String']; + /** + * The subTotal is the total of all OrderLines in the Order. This figure also includes any Order-level + * discounts which have been prorated (proportionally distributed) amongst the OrderItems. + * To get a total of all OrderLines which does not account for prorated discounts, use the + * sum of `OrderLine.discountedLinePrice` values. + */ + subTotal: Scalars['Int']; + /** Same as subTotal, but inclusive of tax */ + subTotalWithTax: Scalars['Int']; + /** + * Surcharges are arbitrary modifications to the Order total which are neither + * ProductVariants nor discounts resulting from applied Promotions. For example, + * one-off discounts based on customer interaction, or surcharges based on payment + * methods. + */ + surcharges: Array; + /** A summary of the taxes being applied to this Order */ + taxSummary: Array; + /** Equal to subTotal plus shipping */ + total: Scalars['Int']; + totalQuantity: Scalars['Int']; + /** The final payable amount. Equal to subTotalWithTax plus shippingWithTax */ + totalWithTax: Scalars['Int']; + 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['Int']; - /** The price of a single unit including discounts and tax */ - discountedUnitPriceWithTax: Scalars['Int']; - fulfillment?: Maybe; - id: Scalars['ID']; - /** - * The actual unit price, taking into account both item discounts _and_ prorated (proportionally-distributed) - * Order-level discounts. This value is the true economic value of the OrderItem, and is used in tax - * and refund calculations. - */ - proratedUnitPrice: Scalars['Int']; - /** The proratedUnitPrice including tax */ - proratedUnitPriceWithTax: Scalars['Int']; - refundId?: Maybe; - taxLines: Array; - taxRate: Scalars['Float']; - /** The price of a single unit, excluding tax and discounts */ - unitPrice: Scalars['Int']; - /** The price of a single unit, including tax but excluding discounts */ - unitPriceWithTax: Scalars['Int']; - unitTax: Scalars['Int']; - updatedAt: Scalars['DateTime']; + adjustments: Array; + cancelled: Scalars['Boolean']; + createdAt: Scalars['DateTime']; + /** + * The price of a single unit including discounts, excluding tax. + * + * If Order-level discounts have been applied, this will not be the + * actual taxable unit price (see `proratedUnitPrice`), but is generally the + * correct price to display to customers to avoid confusion + * about the internal handling of distributed Order-level discounts. + */ + discountedUnitPrice: Scalars['Int']; + /** The price of a single unit including discounts and tax */ + discountedUnitPriceWithTax: Scalars['Int']; + fulfillment?: Maybe; + id: Scalars['ID']; + /** + * The actual unit price, taking into account both item discounts _and_ prorated (proportionally-distributed) + * Order-level discounts. This value is the true economic value of the OrderItem, and is used in tax + * and refund calculations. + */ + proratedUnitPrice: Scalars['Int']; + /** The proratedUnitPrice including tax */ + proratedUnitPriceWithTax: Scalars['Int']; + refundId?: Maybe; + taxLines: Array; + taxRate: Scalars['Float']; + /** The price of a single unit, excluding tax and discounts */ + unitPrice: Scalars['Int']; + /** The price of a single unit, including tax but excluding discounts */ + unitPriceWithTax: Scalars['Int']; + unitTax: Scalars['Int']; + updatedAt: Scalars['DateTime']; }; /** Returned when the maximum order size limit has been reached. */ export type OrderLimitError = ErrorResult & { - errorCode: ErrorCode; - maxItems: Scalars['Int']; - message: Scalars['String']; + errorCode: ErrorCode; + maxItems: Scalars['Int']; + message: Scalars['String']; }; export type OrderLine = Node & { - createdAt: Scalars['DateTime']; - customFields?: Maybe; - /** The price of the line including discounts, excluding tax */ - discountedLinePrice: Scalars['Int']; - /** The price of the line including discounts and tax */ - discountedLinePriceWithTax: Scalars['Int']; - /** - * The price of a single unit including discounts, excluding tax. - * - * If Order-level discounts have been applied, this will not be the - * actual taxable unit price (see `proratedUnitPrice`), but is generally the - * correct price to display to customers to avoid confusion - * about the internal handling of distributed Order-level discounts. - */ - discountedUnitPrice: Scalars['Int']; - /** The price of a single unit including discounts and tax */ - discountedUnitPriceWithTax: Scalars['Int']; - discounts: Array; - featuredAsset?: Maybe; - fulfillments?: Maybe>; - id: Scalars['ID']; - items: Array; - /** The total price of the line excluding tax and discounts. */ - linePrice: Scalars['Int']; - /** The total price of the line including tax but excluding discounts. */ - linePriceWithTax: Scalars['Int']; - /** The total tax on this line */ - lineTax: Scalars['Int']; - order: Order; - productVariant: ProductVariant; - /** - * The actual line price, taking into account both item discounts _and_ prorated (proportionally-distributed) - * Order-level discounts. This value is the true economic value of the OrderLine, and is used in tax - * and refund calculations. - */ - proratedLinePrice: Scalars['Int']; - /** The proratedLinePrice including tax */ - proratedLinePriceWithTax: Scalars['Int']; - /** - * The actual unit price, taking into account both item discounts _and_ prorated (proportionally-distributed) - * Order-level discounts. This value is the true economic value of the OrderItem, and is used in tax - * and refund calculations. - */ - proratedUnitPrice: Scalars['Int']; - /** The proratedUnitPrice including tax */ - proratedUnitPriceWithTax: Scalars['Int']; - quantity: Scalars['Int']; - taxLines: Array; - taxRate: Scalars['Float']; - /** The price of a single unit, excluding tax and discounts */ - unitPrice: Scalars['Int']; - /** Non-zero if the unitPrice has changed since it was initially added to Order */ - unitPriceChangeSinceAdded: Scalars['Int']; - /** The price of a single unit, including tax but excluding discounts */ - unitPriceWithTax: Scalars['Int']; - /** Non-zero if the unitPriceWithTax has changed since it was initially added to Order */ - unitPriceWithTaxChangeSinceAdded: Scalars['Int']; - updatedAt: Scalars['DateTime']; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + /** The price of the line including discounts, excluding tax */ + discountedLinePrice: Scalars['Int']; + /** The price of the line including discounts and tax */ + discountedLinePriceWithTax: Scalars['Int']; + /** + * The price of a single unit including discounts, excluding tax. + * + * If Order-level discounts have been applied, this will not be the + * actual taxable unit price (see `proratedUnitPrice`), but is generally the + * correct price to display to customers to avoid confusion + * about the internal handling of distributed Order-level discounts. + */ + discountedUnitPrice: Scalars['Int']; + /** The price of a single unit including discounts and tax */ + discountedUnitPriceWithTax: Scalars['Int']; + discounts: Array; + featuredAsset?: Maybe; + fulfillments?: Maybe>; + id: Scalars['ID']; + items: Array; + /** The total price of the line excluding tax and discounts. */ + linePrice: Scalars['Int']; + /** The total price of the line including tax but excluding discounts. */ + linePriceWithTax: Scalars['Int']; + /** The total tax on this line */ + lineTax: Scalars['Int']; + order: Order; + productVariant: ProductVariant; + /** + * The actual line price, taking into account both item discounts _and_ prorated (proportionally-distributed) + * Order-level discounts. This value is the true economic value of the OrderLine, and is used in tax + * and refund calculations. + */ + proratedLinePrice: Scalars['Int']; + /** The proratedLinePrice including tax */ + proratedLinePriceWithTax: Scalars['Int']; + /** + * The actual unit price, taking into account both item discounts _and_ prorated (proportionally-distributed) + * Order-level discounts. This value is the true economic value of the OrderItem, and is used in tax + * and refund calculations. + */ + proratedUnitPrice: Scalars['Int']; + /** The proratedUnitPrice including tax */ + proratedUnitPriceWithTax: Scalars['Int']; + quantity: Scalars['Int']; + taxLines: Array; + taxRate: Scalars['Float']; + /** The price of a single unit, excluding tax and discounts */ + unitPrice: Scalars['Int']; + /** Non-zero if the unitPrice has changed since it was initially added to Order */ + unitPriceChangeSinceAdded: Scalars['Int']; + /** The price of a single unit, including tax but excluding discounts */ + unitPriceWithTax: Scalars['Int']; + /** Non-zero if the unitPriceWithTax has changed since it was initially added to Order */ + unitPriceWithTaxChangeSinceAdded: Scalars['Int']; + updatedAt: Scalars['DateTime']; }; export type OrderList = PaginatedList & { - items: Array; - totalItems: Scalars['Int']; + items: Array; + totalItems: Scalars['Int']; }; export type OrderListOptions = { - /** Allows the results to be filtered */ - filter?: InputMaybe; - /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ - filterOperator?: InputMaybe; - /** Skips the first n results, for use in pagination */ - skip?: InputMaybe; - /** Specifies which properties to sort the results by */ - sort?: InputMaybe; - /** Takes n results, for use in pagination */ - take?: InputMaybe; + /** Allows the results to be filtered */ + filter?: InputMaybe; + /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ + filterOperator?: InputMaybe; + /** Skips the first n results, for use in pagination */ + skip?: InputMaybe; + /** Specifies which properties to sort the results by */ + sort?: InputMaybe; + /** Takes n results, for use in pagination */ + take?: InputMaybe; }; /** Returned when attempting to modify the contents of an Order that is not in the `AddingItems` state. */ export type OrderModificationError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; }; /** Returned when attempting to add a Payment to an Order that is not in the `ArrangingPayment` state. */ export type OrderPaymentStateError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; }; export type OrderSortParameter = { - code?: InputMaybe; - createdAt?: InputMaybe; - id?: InputMaybe; - orderPlacedAt?: InputMaybe; - shipping?: InputMaybe; - shippingWithTax?: InputMaybe; - state?: InputMaybe; - subTotal?: InputMaybe; - subTotalWithTax?: InputMaybe; - total?: InputMaybe; - totalQuantity?: InputMaybe; - totalWithTax?: InputMaybe; - updatedAt?: InputMaybe; + code?: InputMaybe; + createdAt?: InputMaybe; + id?: InputMaybe; + orderPlacedAt?: InputMaybe; + shipping?: InputMaybe; + shippingWithTax?: InputMaybe; + state?: InputMaybe; + subTotal?: InputMaybe; + subTotalWithTax?: InputMaybe; + total?: InputMaybe; + totalQuantity?: InputMaybe; + totalWithTax?: InputMaybe; + updatedAt?: InputMaybe; }; /** Returned if there is an error in transitioning the Order state */ export type OrderStateTransitionError = ErrorResult & { - errorCode: ErrorCode; - fromState: Scalars['String']; - message: Scalars['String']; - toState: Scalars['String']; - transitionError: Scalars['String']; + errorCode: ErrorCode; + fromState: Scalars['String']; + message: Scalars['String']; + toState: Scalars['String']; + transitionError: Scalars['String']; }; /** @@ -2048,31 +2041,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['Int']; - /** The taxRate as a percentage */ - taxRate: Scalars['Float']; - /** The total tax being applied to the Order at this taxRate */ - taxTotal: Scalars['Int']; + /** A description of this tax */ + description: Scalars['String']; + /** The total net price or OrderItems to which this taxRate applies */ + taxBase: Scalars['Int']; + /** The taxRate as a percentage */ + taxRate: Scalars['Float']; + /** The total tax being applied to the Order at this taxRate */ + taxTotal: Scalars['Int']; }; export 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']; }; /** @@ -2080,8 +2073,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']; }; /** @@ -2089,77 +2082,77 @@ export type PasswordResetTokenExpiredError = ErrorResult & { * invalid or does not match any expected tokens. */ export type PasswordResetTokenInvalidError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; }; /** Returned when attempting to register or verify a customer account where the given password fails password validation. */ export type PasswordValidationError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; - validationErrorMessage: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; + validationErrorMessage: Scalars['String']; }; export type Payment = Node & { - amount: Scalars['Int']; - createdAt: Scalars['DateTime']; - errorMessage?: Maybe; - id: Scalars['ID']; - metadata?: Maybe; - method: Scalars['String']; - refunds: Array; - state: Scalars['String']; - transactionId?: Maybe; - updatedAt: Scalars['DateTime']; + amount: Scalars['Int']; + createdAt: Scalars['DateTime']; + errorMessage?: Maybe; + id: Scalars['ID']; + metadata?: Maybe; + method: Scalars['String']; + refunds: Array; + state: Scalars['String']; + transactionId?: Maybe; + updatedAt: Scalars['DateTime']; }; /** Returned when a Payment is declined by the payment provider. */ export type PaymentDeclinedError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; - paymentErrorMessage: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; + paymentErrorMessage: Scalars['String']; }; /** Returned when a Payment fails due to an error. */ export type PaymentFailedError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; - paymentErrorMessage: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; + paymentErrorMessage: Scalars['String']; }; /** Passed as input to the `addPaymentToOrder` mutation. */ export type PaymentInput = { - /** - * This field should contain arbitrary data passed to the specified PaymentMethodHandler's `createPayment()` method - * as the "metadata" argument. For example, it could contain an ID for the payment and other - * data generated by the payment provider. - */ - metadata: Scalars['JSON']; - /** This field should correspond to the `code` property of a PaymentMethod. */ - method: Scalars['String']; + /** + * This field should contain arbitrary data passed to the specified PaymentMethodHandler's `createPayment()` method + * as the "metadata" argument. For example, it could contain an ID for the payment and other + * data generated by the payment provider. + */ + metadata: Scalars['JSON']; + /** This field should correspond to the `code` property of a PaymentMethod. */ + method: Scalars['String']; }; export type PaymentMethod = Node & { - checker?: Maybe; - code: Scalars['String']; - createdAt: Scalars['DateTime']; - customFields?: Maybe; - description: Scalars['String']; - enabled: Scalars['Boolean']; - handler: ConfigurableOperation; - id: Scalars['ID']; - name: Scalars['String']; - updatedAt: Scalars['DateTime']; + checker?: Maybe; + code: Scalars['String']; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + description: Scalars['String']; + enabled: Scalars['Boolean']; + handler: ConfigurableOperation; + id: Scalars['ID']; + name: Scalars['String']; + updatedAt: Scalars['DateTime']; }; export type PaymentMethodQuote = { - code: Scalars['String']; - customFields?: Maybe; - description: Scalars['String']; - eligibilityMessage?: Maybe; - id: Scalars['ID']; - isEligible: Scalars['Boolean']; - name: Scalars['String']; + code: Scalars['String']; + customFields?: Maybe; + description: Scalars['String']; + eligibilityMessage?: Maybe; + id: Scalars['ID']; + isEligible: Scalars['Boolean']; + name: Scalars['String']; }; /** @@ -2195,859 +2188,884 @@ export type PaymentMethodQuote = { * @docsCategory common */ export enum Permission { - /** Authenticated means simply that the user is logged in */ - Authenticated = 'Authenticated', - /** Grants permission to create Administrator */ - CreateAdministrator = 'CreateAdministrator', - /** Grants permission to create Asset */ - CreateAsset = 'CreateAsset', - /** Grants permission to create Products, Facets, Assets, Collections */ - CreateCatalog = 'CreateCatalog', - /** Grants permission to create Channel */ - CreateChannel = 'CreateChannel', - /** Grants permission to create Collection */ - CreateCollection = 'CreateCollection', - /** Grants permission to create Country */ - CreateCountry = 'CreateCountry', - /** Grants permission to create Customer */ - CreateCustomer = 'CreateCustomer', - /** Grants permission to create CustomerGroup */ - CreateCustomerGroup = 'CreateCustomerGroup', - /** Grants permission to create Facet */ - CreateFacet = 'CreateFacet', - /** Grants permission to create Order */ - CreateOrder = 'CreateOrder', - /** Grants permission to create PaymentMethod */ - CreatePaymentMethod = 'CreatePaymentMethod', - /** Grants permission to create Product */ - CreateProduct = 'CreateProduct', - /** Grants permission to create Promotion */ - CreatePromotion = 'CreatePromotion', - /** Grants permission to create 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['Int']; - min: Scalars['Int']; + max: Scalars['Int']; + min: Scalars['Int']; }; export type Product = Node & { - assets: Array; - collections: Array; - createdAt: Scalars['DateTime']; - customFields?: Maybe; - description: Scalars['String']; - facetValues: Array; - featuredAsset?: Maybe; - id: Scalars['ID']; - languageCode: LanguageCode; - name: Scalars['String']; - optionGroups: Array; - slug: Scalars['String']; - translations: Array; - updatedAt: Scalars['DateTime']; - /** Returns a paginated, sortable, filterable list of ProductVariants */ - variantList: ProductVariantList; - /** Returns all ProductVariants */ - variants: Array; + assets: Array; + collections: Array; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + description: Scalars['String']; + facetValues: Array; + featuredAsset?: Maybe; + id: Scalars['ID']; + languageCode: LanguageCode; + name: Scalars['String']; + optionGroups: Array; + slug: Scalars['String']; + translations: Array; + updatedAt: Scalars['DateTime']; + /** Returns a paginated, sortable, filterable list of ProductVariants */ + variantList: ProductVariantList; + /** Returns all ProductVariants */ + variants: Array; }; - export type ProductVariantListArgs = { - options?: InputMaybe; + options?: InputMaybe; }; export type ProductFilterParameter = { - createdAt?: InputMaybe; - description?: InputMaybe; - id?: InputMaybe; - languageCode?: InputMaybe; - name?: InputMaybe; - slug?: InputMaybe; - updatedAt?: InputMaybe; + createdAt?: InputMaybe; + description?: InputMaybe; + id?: InputMaybe; + languageCode?: InputMaybe; + name?: InputMaybe; + slug?: InputMaybe; + updatedAt?: InputMaybe; }; export type ProductList = PaginatedList & { - items: Array; - totalItems: Scalars['Int']; + items: Array; + totalItems: Scalars['Int']; }; export type ProductListOptions = { - /** Allows the results to be filtered */ - filter?: InputMaybe; - /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ - filterOperator?: InputMaybe; - /** Skips the first n results, for use in pagination */ - skip?: InputMaybe; - /** Specifies which properties to sort the results by */ - sort?: InputMaybe; - /** Takes n results, for use in pagination */ - take?: InputMaybe; + /** Allows the results to be filtered */ + filter?: InputMaybe; + /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ + filterOperator?: InputMaybe; + /** Skips the first n results, for use in pagination */ + skip?: InputMaybe; + /** Specifies which properties to sort the results by */ + sort?: InputMaybe; + /** Takes n results, for use in pagination */ + take?: InputMaybe; }; export type ProductOption = Node & { - code: Scalars['String']; - createdAt: Scalars['DateTime']; - customFields?: Maybe; - group: ProductOptionGroup; - groupId: Scalars['ID']; - id: Scalars['ID']; - languageCode: LanguageCode; - name: Scalars['String']; - translations: Array; - updatedAt: Scalars['DateTime']; + code: Scalars['String']; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + group: ProductOptionGroup; + groupId: Scalars['ID']; + id: Scalars['ID']; + languageCode: LanguageCode; + name: Scalars['String']; + translations: Array; + updatedAt: Scalars['DateTime']; }; export type ProductOptionGroup = Node & { - code: Scalars['String']; - createdAt: Scalars['DateTime']; - customFields?: Maybe; - id: Scalars['ID']; - languageCode: LanguageCode; - name: Scalars['String']; - options: Array; - translations: Array; - updatedAt: Scalars['DateTime']; + code: Scalars['String']; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + id: Scalars['ID']; + languageCode: LanguageCode; + name: Scalars['String']; + options: Array; + translations: Array; + updatedAt: Scalars['DateTime']; }; export type ProductOptionGroupTranslation = { - createdAt: Scalars['DateTime']; - id: Scalars['ID']; - languageCode: LanguageCode; - name: Scalars['String']; - updatedAt: Scalars['DateTime']; + createdAt: Scalars['DateTime']; + id: Scalars['ID']; + languageCode: LanguageCode; + name: Scalars['String']; + updatedAt: Scalars['DateTime']; }; export type ProductOptionTranslation = { - createdAt: Scalars['DateTime']; - id: Scalars['ID']; - languageCode: LanguageCode; - name: Scalars['String']; - updatedAt: Scalars['DateTime']; + createdAt: Scalars['DateTime']; + id: Scalars['ID']; + languageCode: LanguageCode; + name: Scalars['String']; + updatedAt: Scalars['DateTime']; }; export type ProductSortParameter = { - createdAt?: InputMaybe; - description?: InputMaybe; - id?: InputMaybe; - name?: InputMaybe; - slug?: InputMaybe; - updatedAt?: InputMaybe; + createdAt?: InputMaybe; + description?: InputMaybe; + id?: InputMaybe; + name?: InputMaybe; + slug?: InputMaybe; + updatedAt?: InputMaybe; }; export type ProductTranslation = { - createdAt: Scalars['DateTime']; - description: Scalars['String']; - id: Scalars['ID']; - languageCode: LanguageCode; - name: Scalars['String']; - slug: Scalars['String']; - updatedAt: Scalars['DateTime']; + createdAt: Scalars['DateTime']; + description: Scalars['String']; + id: Scalars['ID']; + languageCode: LanguageCode; + name: Scalars['String']; + slug: Scalars['String']; + updatedAt: Scalars['DateTime']; }; export type ProductVariant = Node & { - assets: Array; - createdAt: Scalars['DateTime']; - currencyCode: CurrencyCode; - customFields?: Maybe; - facetValues: Array; - featuredAsset?: Maybe; - id: Scalars['ID']; - languageCode: LanguageCode; - name: Scalars['String']; - options: Array; - price: Scalars['Int']; - priceWithTax: Scalars['Int']; - product: Product; - productId: Scalars['ID']; - sku: Scalars['String']; - stockLevel: Scalars['String']; - taxCategory: TaxCategory; - taxRateApplied: TaxRate; - translations: Array; - updatedAt: Scalars['DateTime']; + assets: Array; + createdAt: Scalars['DateTime']; + currencyCode: CurrencyCode; + customFields?: Maybe; + facetValues: Array; + featuredAsset?: Maybe; + id: Scalars['ID']; + languageCode: LanguageCode; + name: Scalars['String']; + options: Array; + price: Scalars['Int']; + priceWithTax: Scalars['Int']; + product: Product; + productId: Scalars['ID']; + sku: Scalars['String']; + stockLevel: Scalars['String']; + taxCategory: TaxCategory; + taxRateApplied: TaxRate; + translations: Array; + updatedAt: Scalars['DateTime']; }; export type ProductVariantFilterParameter = { - createdAt?: InputMaybe; - currencyCode?: InputMaybe; - id?: InputMaybe; - languageCode?: InputMaybe; - name?: InputMaybe; - price?: InputMaybe; - priceWithTax?: InputMaybe; - productId?: InputMaybe; - sku?: InputMaybe; - stockLevel?: InputMaybe; - updatedAt?: InputMaybe; + createdAt?: InputMaybe; + currencyCode?: InputMaybe; + id?: InputMaybe; + languageCode?: InputMaybe; + name?: InputMaybe; + price?: InputMaybe; + priceWithTax?: InputMaybe; + productId?: InputMaybe; + sku?: InputMaybe; + stockLevel?: InputMaybe; + updatedAt?: InputMaybe; }; export type ProductVariantList = PaginatedList & { - items: Array; - totalItems: Scalars['Int']; + items: Array; + totalItems: Scalars['Int']; }; export type ProductVariantListOptions = { - /** Allows the results to be filtered */ - filter?: InputMaybe; - /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ - filterOperator?: InputMaybe; - /** Skips the first n results, for use in pagination */ - skip?: InputMaybe; - /** Specifies which properties to sort the results by */ - sort?: InputMaybe; - /** Takes n results, for use in pagination */ - take?: InputMaybe; + /** Allows the results to be filtered */ + filter?: InputMaybe; + /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ + filterOperator?: InputMaybe; + /** Skips the first n results, for use in pagination */ + skip?: InputMaybe; + /** Specifies which properties to sort the results by */ + sort?: InputMaybe; + /** Takes n results, for use in pagination */ + take?: InputMaybe; }; export type ProductVariantSortParameter = { - createdAt?: InputMaybe; - id?: InputMaybe; - name?: InputMaybe; - price?: InputMaybe; - priceWithTax?: InputMaybe; - productId?: InputMaybe; - sku?: InputMaybe; - stockLevel?: InputMaybe; - updatedAt?: InputMaybe; + createdAt?: InputMaybe; + id?: InputMaybe; + name?: InputMaybe; + price?: InputMaybe; + priceWithTax?: InputMaybe; + productId?: InputMaybe; + sku?: InputMaybe; + stockLevel?: InputMaybe; + updatedAt?: InputMaybe; }; export type ProductVariantTranslation = { - createdAt: Scalars['DateTime']; - id: Scalars['ID']; - languageCode: LanguageCode; - name: Scalars['String']; - updatedAt: Scalars['DateTime']; + createdAt: Scalars['DateTime']; + id: Scalars['ID']; + languageCode: LanguageCode; + name: Scalars['String']; + updatedAt: Scalars['DateTime']; }; export type Promotion = Node & { - actions: Array; - conditions: Array; - couponCode?: Maybe; - createdAt: Scalars['DateTime']; - customFields?: Maybe; - enabled: Scalars['Boolean']; - endsAt?: Maybe; - id: Scalars['ID']; - name: Scalars['String']; - perCustomerUsageLimit?: Maybe; - startsAt?: Maybe; - updatedAt: Scalars['DateTime']; + actions: Array; + conditions: Array; + couponCode?: Maybe; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + enabled: Scalars['Boolean']; + endsAt?: Maybe; + id: Scalars['ID']; + name: Scalars['String']; + perCustomerUsageLimit?: Maybe; + startsAt?: Maybe; + updatedAt: Scalars['DateTime']; }; export type PromotionList = PaginatedList & { - items: Array; - totalItems: Scalars['Int']; + items: Array; + totalItems: Scalars['Int']; }; export type Query = { - /** The active Channel */ - activeChannel: Channel; - /** The active Customer */ - activeCustomer?: Maybe; - /** - * The active Order. Will be `null` until an Order is created via `addItemToOrder`. Once an Order reaches the - * state of `PaymentAuthorized` or `PaymentSettled`, then that Order is no longer considered "active" and this - * query will once again return `null`. - */ - activeOrder?: Maybe; - /** An array of supported Countries */ - availableCountries: Array; - /** Returns a Collection either by its id or slug. If neither 'id' nor 'slug' is specified, an error will result. */ - collection?: Maybe; - /** A list of Collections available to the shop */ - collections: CollectionList; - /** Returns a list of payment methods and their eligibility based on the current active Order */ - eligiblePaymentMethods: Array; - /** Returns a list of eligible shipping methods based on the current active Order */ - eligibleShippingMethods: Array; - /** Returns a Facet by its id */ - facet?: Maybe; - /** A list of Facets available to the shop */ - facets: FacetList; - /** Returns information about the current authenticated User */ - me?: Maybe; - /** Returns the possible next states that the activeOrder can transition to */ - nextOrderStates: Array; - /** - * Returns an Order based on the id. Note that in the Shop API, only orders belonging to the - * currently-authenticated User may be queried. - */ - order?: Maybe; - /** - * Returns an Order based on the order `code`. For guest Orders (i.e. Orders placed by non-authenticated Customers) - * this query will only return the Order within 2 hours of the Order being placed. This allows an Order confirmation - * screen to be shown immediately after completion of a guest checkout, yet prevents security risks of allowing - * general anonymous access to Order data. - */ - orderByCode?: Maybe; - /** Get a Product either by id or slug. If neither 'id' nor 'slug' is specified, an error will result. */ - product?: Maybe; - /** Get a list of Products */ - products: ProductList; - /** Search Products based on the criteria set by the `SearchInput` */ - search: SearchResponse; + /** The active Channel */ + activeChannel: Channel; + /** The active Customer */ + activeCustomer?: Maybe; + /** + * The active Order. Will be `null` until an Order is created via `addItemToOrder`. Once an Order reaches the + * state of `PaymentAuthorized` or `PaymentSettled`, then that Order is no longer considered "active" and this + * query will once again return `null`. + */ + activeOrder?: Maybe; + /** An array of supported Countries */ + availableCountries: Array; + /** Returns a Collection either by its id or slug. If neither 'id' nor 'slug' is specified, an error will result. */ + collection?: Maybe; + /** A list of Collections available to the shop */ + collections: CollectionList; + /** Returns a list of payment methods and their eligibility based on the current active Order */ + eligiblePaymentMethods: Array; + /** Returns a list of eligible shipping methods based on the current active Order */ + eligibleShippingMethods: Array; + /** Returns a Facet by its id */ + facet?: Maybe; + /** A list of Facets available to the shop */ + facets: FacetList; + /** Returns information about the current authenticated User */ + me?: Maybe; + /** Returns the possible next states that the activeOrder can transition to */ + nextOrderStates: Array; + /** + * Returns an Order based on the id. Note that in the Shop API, only orders belonging to the + * currently-authenticated User may be queried. + */ + order?: Maybe; + /** + * Returns an Order based on the order `code`. For guest Orders (i.e. Orders placed by non-authenticated Customers) + * this query will only return the Order within 2 hours of the Order being placed. This allows an Order confirmation + * screen to be shown immediately after completion of a guest checkout, yet prevents security risks of allowing + * general anonymous access to Order data. + */ + orderByCode?: Maybe; + /** Get a Product either by id or slug. If neither 'id' nor 'slug' is specified, an error will result. */ + product?: Maybe; + /** Get a list of Products */ + products: ProductList; + /** Search Products based on the criteria set by the `SearchInput` */ + search: SearchResponse; }; - export type QueryCollectionArgs = { - id?: InputMaybe; - slug?: InputMaybe; + id?: InputMaybe; + slug?: InputMaybe; }; - export type QueryCollectionsArgs = { - options?: InputMaybe; + options?: InputMaybe; }; - export type QueryFacetArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; - export type QueryFacetsArgs = { - options?: InputMaybe; + options?: InputMaybe; }; - export type QueryOrderArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; - export type QueryOrderByCodeArgs = { - code: Scalars['String']; + code: Scalars['String']; }; - export type QueryProductArgs = { - id?: InputMaybe; - slug?: InputMaybe; + id?: InputMaybe; + slug?: InputMaybe; }; - export type QueryProductsArgs = { - options?: InputMaybe; + options?: InputMaybe; }; - export type QuerySearchArgs = { - input: SearchInput; + input: SearchInput; }; export type RefreshCustomerVerificationResult = NativeAuthStrategyError | Success; export type Refund = Node & { - adjustment: Scalars['Int']; - createdAt: Scalars['DateTime']; - id: Scalars['ID']; - items: Scalars['Int']; - metadata?: Maybe; - method?: Maybe; - orderItems: Array; - paymentId: Scalars['ID']; - reason?: Maybe; - shipping: Scalars['Int']; - state: Scalars['String']; - total: Scalars['Int']; - transactionId?: Maybe; - updatedAt: Scalars['DateTime']; -}; - -export type RegisterCustomerAccountResult = MissingPasswordError | NativeAuthStrategyError | PasswordValidationError | Success; + adjustment: Scalars['Int']; + createdAt: Scalars['DateTime']; + id: Scalars['ID']; + items: Scalars['Int']; + metadata?: Maybe; + method?: Maybe; + orderItems: Array; + paymentId: Scalars['ID']; + reason?: Maybe; + shipping: Scalars['Int']; + state: Scalars['String']; + total: Scalars['Int']; + transactionId?: Maybe; + updatedAt: Scalars['DateTime']; +}; + +export type RegisterCustomerAccountResult = + | MissingPasswordError + | NativeAuthStrategyError + | PasswordValidationError + | Success; export type RegisterCustomerInput = { - emailAddress: Scalars['String']; - firstName?: InputMaybe; - lastName?: InputMaybe; - password?: InputMaybe; - phoneNumber?: InputMaybe; - title?: InputMaybe; + emailAddress: Scalars['String']; + firstName?: InputMaybe; + lastName?: InputMaybe; + password?: InputMaybe; + phoneNumber?: InputMaybe; + title?: InputMaybe; }; export type RelationCustomFieldConfig = CustomField & { - description?: Maybe>; - entity: Scalars['String']; - internal?: Maybe; - label?: Maybe>; - list: Scalars['Boolean']; - name: Scalars['String']; - nullable?: Maybe; - readonly?: Maybe; - scalarFields: Array; - type: Scalars['String']; - ui?: Maybe; + description?: Maybe>; + entity: Scalars['String']; + internal?: Maybe; + label?: Maybe>; + list: Scalars['Boolean']; + name: Scalars['String']; + nullable?: Maybe; + readonly?: Maybe; + scalarFields: Array; + type: Scalars['String']; + ui?: Maybe; }; export type RemoveOrderItemsResult = Order | OrderModificationError; export type RequestPasswordResetResult = NativeAuthStrategyError | Success; -export type RequestUpdateCustomerEmailAddressResult = EmailAddressConflictError | InvalidCredentialsError | NativeAuthStrategyError | Success; +export type RequestUpdateCustomerEmailAddressResult = + | EmailAddressConflictError + | InvalidCredentialsError + | NativeAuthStrategyError + | Success; -export type ResetPasswordResult = CurrentUser | NativeAuthStrategyError | NotVerifiedError | PasswordResetTokenExpiredError | PasswordResetTokenInvalidError | PasswordValidationError; +export type ResetPasswordResult = + | CurrentUser + | NativeAuthStrategyError + | NotVerifiedError + | PasswordResetTokenExpiredError + | PasswordResetTokenInvalidError + | PasswordValidationError; export type Role = Node & { - channels: Array; - code: Scalars['String']; - createdAt: Scalars['DateTime']; - description: Scalars['String']; - id: Scalars['ID']; - permissions: Array; - updatedAt: Scalars['DateTime']; + channels: Array; + code: Scalars['String']; + createdAt: Scalars['DateTime']; + description: Scalars['String']; + id: Scalars['ID']; + permissions: Array; + updatedAt: Scalars['DateTime']; }; export type RoleList = PaginatedList & { - items: Array; - totalItems: Scalars['Int']; + items: Array; + totalItems: Scalars['Int']; }; export type SearchInput = { - collectionId?: InputMaybe; - collectionSlug?: InputMaybe; - facetValueFilters?: InputMaybe>; - facetValueIds?: InputMaybe>; - facetValueOperator?: InputMaybe; - groupByProduct?: InputMaybe; - skip?: InputMaybe; - sort?: InputMaybe; - take?: InputMaybe; - term?: InputMaybe; + collectionId?: InputMaybe; + collectionSlug?: InputMaybe; + facetValueFilters?: InputMaybe>; + facetValueIds?: InputMaybe>; + facetValueOperator?: InputMaybe; + groupByProduct?: InputMaybe; + skip?: InputMaybe; + sort?: InputMaybe; + take?: InputMaybe; + term?: InputMaybe; }; export type SearchReindexResponse = { - success: Scalars['Boolean']; + success: Scalars['Boolean']; }; export type SearchResponse = { - collections: Array; - facetValues: Array; - items: Array; - totalItems: Scalars['Int']; + collections: Array; + facetValues: Array; + items: Array; + totalItems: Scalars['Int']; }; export type SearchResult = { - /** An array of ids of the Collections in which this result appears */ - collectionIds: Array; - currencyCode: CurrencyCode; - description: Scalars['String']; - facetIds: Array; - facetValueIds: Array; - price: SearchResultPrice; - priceWithTax: SearchResultPrice; - productAsset?: Maybe; - productId: Scalars['ID']; - productName: Scalars['String']; - productVariantAsset?: Maybe; - productVariantId: Scalars['ID']; - productVariantName: Scalars['String']; - /** A relevance score for the result. Differs between database implementations */ - score: Scalars['Float']; - sku: Scalars['String']; - slug: Scalars['String']; + /** An array of ids of the Collections in which this result appears */ + collectionIds: Array; + currencyCode: CurrencyCode; + description: Scalars['String']; + facetIds: Array; + facetValueIds: Array; + price: SearchResultPrice; + priceWithTax: SearchResultPrice; + productAsset?: Maybe; + productId: Scalars['ID']; + productName: Scalars['String']; + productVariantAsset?: Maybe; + productVariantId: Scalars['ID']; + productVariantName: Scalars['String']; + /** A relevance score for the result. Differs between database implementations */ + score: Scalars['Float']; + sku: Scalars['String']; + slug: Scalars['String']; }; export type SearchResultAsset = { - focalPoint?: Maybe; - id: Scalars['ID']; - preview: Scalars['String']; + focalPoint?: Maybe; + id: Scalars['ID']; + preview: Scalars['String']; }; /** The price of a search result product, either as a range or as a single price */ export type SearchResultPrice = PriceRange | SinglePrice; export type SearchResultSortParameter = { - name?: InputMaybe; - price?: InputMaybe; + name?: InputMaybe; + price?: InputMaybe; }; export type 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 SetCustomerForOrderResult = AlreadyLoggedInError | EmailAddressConflictError | NoActiveOrderError | Order; +export type SetCustomerForOrderResult = + | AlreadyLoggedInError + | EmailAddressConflictError + | NoActiveOrderError + | Order; -export type SetOrderShippingMethodResult = IneligibleShippingMethodError | NoActiveOrderError | Order | OrderModificationError; +export type SetOrderShippingMethodResult = + | IneligibleShippingMethodError + | NoActiveOrderError + | Order + | OrderModificationError; export type ShippingLine = { - discountedPrice: Scalars['Int']; - discountedPriceWithTax: Scalars['Int']; - discounts: Array; - id: Scalars['ID']; - price: Scalars['Int']; - priceWithTax: Scalars['Int']; - shippingMethod: ShippingMethod; + discountedPrice: Scalars['Int']; + discountedPriceWithTax: Scalars['Int']; + discounts: Array; + id: Scalars['ID']; + price: Scalars['Int']; + priceWithTax: Scalars['Int']; + shippingMethod: ShippingMethod; }; export type ShippingMethod = Node & { - calculator: ConfigurableOperation; - checker: ConfigurableOperation; - code: Scalars['String']; - createdAt: Scalars['DateTime']; - customFields?: Maybe; - description: Scalars['String']; - fulfillmentHandlerCode: Scalars['String']; - id: Scalars['ID']; - languageCode: LanguageCode; - name: Scalars['String']; - translations: Array; - updatedAt: Scalars['DateTime']; + calculator: ConfigurableOperation; + checker: ConfigurableOperation; + code: Scalars['String']; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + description: Scalars['String']; + fulfillmentHandlerCode: Scalars['String']; + id: Scalars['ID']; + languageCode: LanguageCode; + name: Scalars['String']; + translations: Array; + updatedAt: Scalars['DateTime']; }; export type ShippingMethodList = PaginatedList & { - items: Array; - totalItems: Scalars['Int']; + items: Array; + totalItems: Scalars['Int']; }; export type ShippingMethodQuote = { - code: Scalars['String']; - customFields?: Maybe; - description: Scalars['String']; - id: Scalars['ID']; - /** Any optional metadata returned by the ShippingCalculator in the ShippingCalculationResult */ - metadata?: Maybe; - name: Scalars['String']; - price: Scalars['Int']; - priceWithTax: Scalars['Int']; + code: Scalars['String']; + customFields?: Maybe; + description: Scalars['String']; + id: Scalars['ID']; + /** Any optional metadata returned by the ShippingCalculator in the ShippingCalculationResult */ + metadata?: Maybe; + name: Scalars['String']; + price: Scalars['Int']; + priceWithTax: Scalars['Int']; }; export type ShippingMethodTranslation = { - createdAt: Scalars['DateTime']; - description: Scalars['String']; - id: Scalars['ID']; - languageCode: LanguageCode; - name: Scalars['String']; - updatedAt: Scalars['DateTime']; + createdAt: Scalars['DateTime']; + description: Scalars['String']; + id: Scalars['ID']; + languageCode: LanguageCode; + name: Scalars['String']; + updatedAt: Scalars['DateTime']; }; /** The price value where the result has a single price */ export type SinglePrice = { - value: Scalars['Int']; + value: Scalars['Int']; }; export enum SortOrder { - ASC = 'ASC', - DESC = 'DESC' + ASC = 'ASC', + DESC = 'DESC', } export type StringCustomFieldConfig = CustomField & { - description?: Maybe>; - internal?: Maybe; - label?: Maybe>; - length?: Maybe; - list: Scalars['Boolean']; - name: Scalars['String']; - nullable?: Maybe; - options?: Maybe>; - pattern?: Maybe; - readonly?: Maybe; - type: Scalars['String']; - ui?: Maybe; + description?: Maybe>; + internal?: Maybe; + label?: Maybe>; + length?: Maybe; + list: Scalars['Boolean']; + name: Scalars['String']; + nullable?: Maybe; + options?: Maybe>; + pattern?: Maybe; + readonly?: Maybe; + type: Scalars['String']; + ui?: Maybe; }; export type StringFieldOption = { - label?: Maybe>; - value: Scalars['String']; + label?: Maybe>; + value: Scalars['String']; }; /** Operators for filtering on a list of String fields */ export type StringListOperators = { - inList: Scalars['String']; + inList: Scalars['String']; }; /** Operators for filtering on a String field */ export type StringOperators = { - contains?: InputMaybe; - eq?: InputMaybe; - in?: InputMaybe>; - isNull?: InputMaybe; - notContains?: InputMaybe; - notEq?: InputMaybe; - notIn?: InputMaybe>; - regex?: InputMaybe; + contains?: InputMaybe; + eq?: InputMaybe; + in?: InputMaybe>; + isNull?: InputMaybe; + notContains?: InputMaybe; + notEq?: InputMaybe; + notIn?: InputMaybe>; + regex?: InputMaybe; }; /** Indicates that an operation succeeded, where we do not want to return any more specific information. */ export type Success = { - success: Scalars['Boolean']; + success: Scalars['Boolean']; }; export type Surcharge = Node & { - createdAt: Scalars['DateTime']; - description: Scalars['String']; - id: Scalars['ID']; - price: Scalars['Int']; - priceWithTax: Scalars['Int']; - sku?: Maybe; - taxLines: Array; - taxRate: Scalars['Float']; - updatedAt: Scalars['DateTime']; + createdAt: Scalars['DateTime']; + description: Scalars['String']; + id: Scalars['ID']; + price: Scalars['Int']; + priceWithTax: Scalars['Int']; + sku?: Maybe; + taxLines: Array; + taxRate: Scalars['Float']; + updatedAt: Scalars['DateTime']; }; export type Tag = Node & { - createdAt: Scalars['DateTime']; - id: Scalars['ID']; - updatedAt: Scalars['DateTime']; - value: Scalars['String']; + createdAt: Scalars['DateTime']; + id: Scalars['ID']; + updatedAt: Scalars['DateTime']; + value: Scalars['String']; }; export type TagList = PaginatedList & { - items: Array; - totalItems: Scalars['Int']; + items: Array; + totalItems: Scalars['Int']; }; export type TaxCategory = Node & { - createdAt: Scalars['DateTime']; - customFields?: Maybe; - id: Scalars['ID']; - isDefault: Scalars['Boolean']; - name: Scalars['String']; - updatedAt: Scalars['DateTime']; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + id: Scalars['ID']; + isDefault: Scalars['Boolean']; + name: Scalars['String']; + updatedAt: Scalars['DateTime']; }; export type TaxLine = { - description: Scalars['String']; - taxRate: Scalars['Float']; + description: Scalars['String']; + taxRate: Scalars['Float']; }; export type TaxRate = Node & { - category: TaxCategory; - createdAt: Scalars['DateTime']; - customFields?: Maybe; - customerGroup?: Maybe; - enabled: Scalars['Boolean']; - id: Scalars['ID']; - name: Scalars['String']; - updatedAt: Scalars['DateTime']; - value: Scalars['Float']; - zone: Zone; + category: TaxCategory; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + customerGroup?: Maybe; + enabled: Scalars['Boolean']; + id: Scalars['ID']; + name: Scalars['String']; + updatedAt: Scalars['DateTime']; + value: Scalars['Float']; + zone: Zone; }; export type TaxRateList = PaginatedList & { - items: Array; - totalItems: Scalars['Int']; + items: Array; + totalItems: Scalars['Int']; }; export type TextCustomFieldConfig = CustomField & { - description?: Maybe>; - internal?: Maybe; - label?: Maybe>; - list: Scalars['Boolean']; - name: Scalars['String']; - nullable?: Maybe; - readonly?: Maybe; - type: Scalars['String']; - ui?: Maybe; + description?: Maybe>; + internal?: Maybe; + label?: Maybe>; + list: Scalars['Boolean']; + name: Scalars['String']; + nullable?: Maybe; + readonly?: Maybe; + type: Scalars['String']; + ui?: Maybe; }; export type TransitionOrderToStateResult = Order | OrderStateTransitionError; export type UpdateAddressInput = { - city?: InputMaybe; - company?: InputMaybe; - countryCode?: InputMaybe; - customFields?: InputMaybe; - defaultBillingAddress?: InputMaybe; - defaultShippingAddress?: InputMaybe; - fullName?: InputMaybe; - id: Scalars['ID']; - phoneNumber?: InputMaybe; - postalCode?: InputMaybe; - province?: InputMaybe; - streetLine1?: InputMaybe; - streetLine2?: InputMaybe; -}; - -export type UpdateCustomerEmailAddressResult = IdentifierChangeTokenExpiredError | IdentifierChangeTokenInvalidError | NativeAuthStrategyError | Success; + city?: InputMaybe; + company?: InputMaybe; + countryCode?: InputMaybe; + customFields?: InputMaybe; + defaultBillingAddress?: InputMaybe; + defaultShippingAddress?: InputMaybe; + fullName?: InputMaybe; + id: Scalars['ID']; + phoneNumber?: InputMaybe; + postalCode?: InputMaybe; + province?: InputMaybe; + streetLine1?: InputMaybe; + streetLine2?: InputMaybe; +}; + +export type UpdateCustomerEmailAddressResult = + | IdentifierChangeTokenExpiredError + | IdentifierChangeTokenInvalidError + | NativeAuthStrategyError + | Success; export type UpdateCustomerInput = { - customFields?: InputMaybe; - firstName?: InputMaybe; - lastName?: InputMaybe; - phoneNumber?: InputMaybe; - title?: InputMaybe; + customFields?: InputMaybe; + firstName?: InputMaybe; + lastName?: InputMaybe; + phoneNumber?: InputMaybe; + title?: InputMaybe; }; -export type UpdateCustomerPasswordResult = InvalidCredentialsError | NativeAuthStrategyError | PasswordValidationError | Success; +export type UpdateCustomerPasswordResult = + | InvalidCredentialsError + | NativeAuthStrategyError + | PasswordValidationError + | Success; export type UpdateOrderInput = { - customFields?: InputMaybe; + customFields?: InputMaybe; }; -export type UpdateOrderItemsResult = InsufficientStockError | NegativeQuantityError | Order | OrderLimitError | OrderModificationError; +export type UpdateOrderItemsResult = + | InsufficientStockError + | NegativeQuantityError + | Order + | OrderLimitError + | OrderModificationError; export type User = Node & { - authenticationMethods: Array; - createdAt: Scalars['DateTime']; - customFields?: Maybe; - id: Scalars['ID']; - identifier: Scalars['String']; - lastLogin?: Maybe; - roles: Array; - updatedAt: Scalars['DateTime']; - verified: Scalars['Boolean']; + authenticationMethods: Array; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + id: Scalars['ID']; + identifier: Scalars['String']; + lastLogin?: Maybe; + roles: Array; + updatedAt: Scalars['DateTime']; + verified: Scalars['Boolean']; }; export type Vendor = Node & { - createdAt: Scalars['DateTime']; - id: Scalars['ID']; - name: Scalars['String']; - updatedAt: Scalars['DateTime']; + createdAt: Scalars['DateTime']; + id: Scalars['ID']; + name: Scalars['String']; + updatedAt: Scalars['DateTime']; }; /** @@ -3055,8 +3073,8 @@ export type Vendor = Node & { * expired according to the `verificationTokenDuration` setting in the AuthOptions. */ export type VerificationTokenExpiredError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; }; /** @@ -3064,320 +3082,1357 @@ export type VerificationTokenExpiredError = ErrorResult & { * invalid or does not match any expected tokens. */ export type VerificationTokenInvalidError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; }; -export type VerifyCustomerAccountResult = CurrentUser | MissingPasswordError | NativeAuthStrategyError | PasswordAlreadySetError | PasswordValidationError | VerificationTokenExpiredError | VerificationTokenInvalidError; +export type VerifyCustomerAccountResult = + | CurrentUser + | MissingPasswordError + | NativeAuthStrategyError + | PasswordAlreadySetError + | PasswordValidationError + | VerificationTokenExpiredError + | VerificationTokenInvalidError; export type Zone = Node & { - createdAt: Scalars['DateTime']; - customFields?: Maybe; - id: Scalars['ID']; - members: Array; - name: Scalars['String']; - updatedAt: Scalars['DateTime']; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + id: Scalars['ID']; + members: Array; + name: Scalars['String']; + updatedAt: Scalars['DateTime']; +}; + +export type TestOrderFragmentFragment = { + id: string; + code: string; + state: string; + active: boolean; + subTotal: number; + subTotalWithTax: number; + shipping: number; + shippingWithTax: number; + total: number; + totalWithTax: number; + couponCodes: Array; + discounts: Array<{ + adjustmentSource: string; + amount: number; + amountWithTax: number; + description: string; + type: AdjustmentType; + }>; + lines: Array<{ + id: string; + quantity: number; + linePrice: number; + linePriceWithTax: number; + unitPrice: number; + unitPriceWithTax: number; + unitPriceChangeSinceAdded: number; + unitPriceWithTaxChangeSinceAdded: number; + proratedUnitPriceWithTax: number; + productVariant: { id: string }; + discounts: Array<{ + adjustmentSource: string; + amount: number; + amountWithTax: number; + description: string; + type: AdjustmentType; + }>; + items: Array<{ id: string; unitPrice: number; unitPriceWithTax: number }>; + }>; + shippingLines: Array<{ shippingMethod: { id: string; code: string; description: string } }>; + customer?: { id: string; user?: { id: string; identifier: string } | null } | null; + history: { items: Array<{ id: string; type: HistoryEntryType; data: any }> }; +}; + +export type UpdatedOrderFragment = { + id: string; + code: string; + state: string; + active: boolean; + total: number; + totalWithTax: number; + lines: Array<{ + id: string; + quantity: number; + productVariant: { id: string }; + discounts: Array<{ + adjustmentSource: string; + amount: number; + amountWithTax: number; + description: string; + type: AdjustmentType; + }>; + }>; + discounts: Array<{ + adjustmentSource: string; + amount: number; + amountWithTax: number; + description: string; + type: AdjustmentType; + }>; }; -export type TestOrderFragmentFragment = { id: string, code: string, state: string, active: boolean, subTotal: number, subTotalWithTax: number, shipping: number, shippingWithTax: number, total: number, totalWithTax: number, couponCodes: Array, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }>, lines: Array<{ id: string, quantity: number, linePrice: number, linePriceWithTax: number, unitPrice: number, unitPriceWithTax: number, unitPriceChangeSinceAdded: number, unitPriceWithTaxChangeSinceAdded: number, proratedUnitPriceWithTax: number, productVariant: { id: string }, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }>, items: Array<{ id: string, unitPrice: number, unitPriceWithTax: number }> }>, shippingLines: Array<{ shippingMethod: { id: string, code: string, description: string } }>, customer?: { id: string, user?: { id: string, identifier: string } | null } | null, history: { items: Array<{ id: string, type: HistoryEntryType, data: any }> } }; - -export type UpdatedOrderFragment = { id: string, code: string, state: string, active: boolean, total: number, totalWithTax: number, lines: Array<{ id: string, quantity: number, productVariant: { id: string }, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }> }>, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }> }; - export type AddItemToOrderMutationVariables = Exact<{ - productVariantId: Scalars['ID']; - quantity: Scalars['Int']; + productVariantId: Scalars['ID']; + quantity: Scalars['Int']; }>; - -export type AddItemToOrderMutation = { addItemToOrder: { errorCode: ErrorCode, message: string, quantityAvailable: number, order: { id: string, code: string, state: string, active: boolean, total: number, totalWithTax: number, lines: Array<{ id: string, quantity: number, productVariant: { id: string }, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }> }>, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }> } } | { errorCode: ErrorCode, message: string } | { id: string, code: string, state: string, active: boolean, total: number, totalWithTax: number, lines: Array<{ id: string, quantity: number, productVariant: { id: string }, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }> }>, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }> } | { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } }; +export type AddItemToOrderMutation = { + addItemToOrder: + | { + errorCode: ErrorCode; + message: string; + quantityAvailable: number; + order: { + id: string; + code: string; + state: string; + active: boolean; + total: number; + totalWithTax: number; + lines: Array<{ + id: string; + quantity: number; + productVariant: { id: string }; + discounts: Array<{ + adjustmentSource: string; + amount: number; + amountWithTax: number; + description: string; + type: AdjustmentType; + }>; + }>; + discounts: Array<{ + adjustmentSource: string; + amount: number; + amountWithTax: number; + description: string; + type: AdjustmentType; + }>; + }; + } + | { errorCode: ErrorCode; message: string } + | { + id: string; + code: string; + state: string; + active: boolean; + total: number; + totalWithTax: number; + lines: Array<{ + id: string; + quantity: number; + productVariant: { id: string }; + discounts: Array<{ + adjustmentSource: string; + amount: number; + amountWithTax: number; + description: string; + type: AdjustmentType; + }>; + }>; + discounts: Array<{ + adjustmentSource: string; + amount: number; + amountWithTax: number; + description: string; + type: AdjustmentType; + }>; + } + | { errorCode: ErrorCode; message: string } + | { errorCode: ErrorCode; message: string }; +}; export type SearchProductsShopQueryVariables = Exact<{ - input: SearchInput; + input: SearchInput; }>; - -export type SearchProductsShopQuery = { search: { totalItems: number, items: Array<{ productId: string, productName: string, productVariantId: string, productVariantName: string, sku: string, collectionIds: Array, price: { min: number, max: number } | { value: number } }> } }; +export type SearchProductsShopQuery = { + search: { + totalItems: number; + items: Array<{ + productId: string; + productName: string; + productVariantId: string; + productVariantName: string; + sku: string; + collectionIds: Array; + price: { min: number; max: number } | { value: number }; + }>; + }; +}; export type RegisterMutationVariables = Exact<{ - input: RegisterCustomerInput; + input: RegisterCustomerInput; }>; +export type RegisterMutation = { + registerCustomerAccount: + | { errorCode: ErrorCode; message: string } + | { errorCode: ErrorCode; message: string } + | { errorCode: ErrorCode; message: string; validationErrorMessage: string } + | { success: boolean }; +}; -export type RegisterMutation = { registerCustomerAccount: { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string, validationErrorMessage: string } | { success: boolean } }; - -export type CurrentUserShopFragment = { id: string, identifier: string, channels: Array<{ code: string, token: string, permissions: Array }> }; +export type CurrentUserShopFragment = { + id: string; + identifier: string; + channels: Array<{ code: string; token: string; permissions: Array }>; +}; export type VerifyMutationVariables = Exact<{ - password?: InputMaybe; - token: Scalars['String']; + password?: InputMaybe; + token: Scalars['String']; }>; - -export type VerifyMutation = { verifyCustomerAccount: { id: string, identifier: string, channels: Array<{ code: string, token: string, permissions: Array }> } | { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string, validationErrorMessage: string } | { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } }; +export type VerifyMutation = { + verifyCustomerAccount: + | { + id: string; + identifier: string; + channels: Array<{ code: string; token: string; permissions: Array }>; + } + | { errorCode: ErrorCode; message: string } + | { errorCode: ErrorCode; message: string } + | { errorCode: ErrorCode; message: string } + | { errorCode: ErrorCode; message: string; validationErrorMessage: string } + | { errorCode: ErrorCode; message: string } + | { errorCode: ErrorCode; message: string }; +}; export type RefreshTokenMutationVariables = Exact<{ - emailAddress: Scalars['String']; + emailAddress: Scalars['String']; }>; - -export type RefreshTokenMutation = { refreshCustomerVerification: { errorCode: ErrorCode, message: string } | { success: boolean } }; +export type RefreshTokenMutation = { + refreshCustomerVerification: { errorCode: ErrorCode; message: string } | { success: boolean }; +}; export type RequestPasswordResetMutationVariables = Exact<{ - identifier: Scalars['String']; + identifier: Scalars['String']; }>; - -export type RequestPasswordResetMutation = { requestPasswordReset?: { errorCode: ErrorCode, message: string } | { success: boolean } | null }; +export type RequestPasswordResetMutation = { + requestPasswordReset?: { errorCode: ErrorCode; message: string } | { success: boolean } | null; +}; export type ResetPasswordMutationVariables = Exact<{ - token: Scalars['String']; - password: Scalars['String']; + token: Scalars['String']; + password: Scalars['String']; }>; - -export type ResetPasswordMutation = { resetPassword: { id: string, identifier: string, channels: Array<{ code: string, token: string, permissions: Array }> } | { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string, validationErrorMessage: string } }; +export type ResetPasswordMutation = { + resetPassword: + | { + id: string; + identifier: string; + channels: Array<{ code: string; token: string; permissions: Array }>; + } + | { errorCode: ErrorCode; message: string } + | { errorCode: ErrorCode; message: string } + | { errorCode: ErrorCode; message: string } + | { errorCode: ErrorCode; message: string } + | { errorCode: ErrorCode; message: string; validationErrorMessage: string }; +}; export type RequestUpdateEmailAddressMutationVariables = Exact<{ - password: Scalars['String']; - newEmailAddress: Scalars['String']; + password: Scalars['String']; + newEmailAddress: Scalars['String']; }>; - -export type RequestUpdateEmailAddressMutation = { requestUpdateCustomerEmailAddress: { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } | { success: boolean } }; +export type RequestUpdateEmailAddressMutation = { + requestUpdateCustomerEmailAddress: + | { errorCode: ErrorCode; message: string } + | { errorCode: ErrorCode; message: string } + | { errorCode: ErrorCode; message: string } + | { success: boolean }; +}; export type UpdateEmailAddressMutationVariables = Exact<{ - token: Scalars['String']; + token: Scalars['String']; }>; +export type UpdateEmailAddressMutation = { + updateCustomerEmailAddress: + | { errorCode: ErrorCode; message: string } + | { errorCode: ErrorCode; message: string } + | { errorCode: ErrorCode; message: string } + | { success: boolean }; +}; -export type UpdateEmailAddressMutation = { updateCustomerEmailAddress: { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } | { success: boolean } }; - -export type GetActiveCustomerQueryVariables = Exact<{ [key: string]: never; }>; - +export type GetActiveCustomerQueryVariables = Exact<{ [key: string]: never }>; -export type GetActiveCustomerQuery = { activeCustomer?: { id: string, emailAddress: string } | null }; +export type GetActiveCustomerQuery = { activeCustomer?: { id: string; emailAddress: string } | null }; export type CreateAddressShopMutationVariables = Exact<{ - input: CreateAddressInput; + input: CreateAddressInput; }>; - -export type CreateAddressShopMutation = { createCustomerAddress: { id: string, streetLine1: string, country: { code: string } } }; +export type CreateAddressShopMutation = { + createCustomerAddress: { id: string; streetLine1: string; country: { code: string } }; +}; export type UpdateAddressShopMutationVariables = Exact<{ - input: UpdateAddressInput; + input: UpdateAddressInput; }>; - -export type UpdateAddressShopMutation = { updateCustomerAddress: { streetLine1: string, country: { code: string } } }; +export type UpdateAddressShopMutation = { + updateCustomerAddress: { streetLine1: string; country: { code: string } }; +}; export type DeleteAddressShopMutationVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; - export type DeleteAddressShopMutation = { deleteCustomerAddress: { success: boolean } }; export type UpdateCustomerMutationVariables = Exact<{ - input: UpdateCustomerInput; + input: UpdateCustomerInput; }>; - -export type UpdateCustomerMutation = { updateCustomer: { id: string, firstName: string, lastName: string } }; +export type UpdateCustomerMutation = { updateCustomer: { id: string; firstName: string; lastName: string } }; export type UpdatePasswordMutationVariables = Exact<{ - old: Scalars['String']; - new: Scalars['String']; + old: Scalars['String']; + new: Scalars['String']; }>; - -export type UpdatePasswordMutation = { updateCustomerPassword: { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } | { success: boolean } }; - -export type GetActiveOrderQueryVariables = Exact<{ [key: string]: never; }>; - - -export type GetActiveOrderQuery = { activeOrder?: { id: string, code: string, state: string, active: boolean, subTotal: number, subTotalWithTax: number, shipping: number, shippingWithTax: number, total: number, totalWithTax: number, couponCodes: Array, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }>, lines: Array<{ id: string, quantity: number, linePrice: number, linePriceWithTax: number, unitPrice: number, unitPriceWithTax: number, unitPriceChangeSinceAdded: number, unitPriceWithTaxChangeSinceAdded: number, proratedUnitPriceWithTax: number, productVariant: { id: string }, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }>, items: Array<{ id: string, unitPrice: number, unitPriceWithTax: number }> }>, shippingLines: Array<{ shippingMethod: { id: string, code: string, description: string } }>, customer?: { id: string, user?: { id: string, identifier: string } | null } | null, history: { items: Array<{ id: string, type: HistoryEntryType, data: any }> } } | null }; - -export type GetActiveOrderWithPriceDataQueryVariables = Exact<{ [key: string]: never; }>; - - -export type GetActiveOrderWithPriceDataQuery = { activeOrder?: { id: string, subTotal: number, subTotalWithTax: number, total: number, totalWithTax: number, lines: Array<{ id: string, unitPrice: number, unitPriceWithTax: number, taxRate: number, linePrice: number, lineTax: number, linePriceWithTax: number, items: Array<{ id: string, unitPrice: number, unitPriceWithTax: number, taxRate: number }>, taxLines: Array<{ taxRate: number, description: string }> }>, taxSummary: Array<{ description: string, taxRate: number, taxBase: number, taxTotal: number }> } | null }; +export type UpdatePasswordMutation = { + updateCustomerPassword: + | { errorCode: ErrorCode; message: string } + | { errorCode: ErrorCode; message: string } + | { errorCode: ErrorCode; message: string } + | { success: boolean }; +}; + +export type GetActiveOrderQueryVariables = Exact<{ [key: string]: never }>; + +export type GetActiveOrderQuery = { + activeOrder?: { + id: string; + code: string; + state: string; + active: boolean; + subTotal: number; + subTotalWithTax: number; + shipping: number; + shippingWithTax: number; + total: number; + totalWithTax: number; + couponCodes: Array; + discounts: Array<{ + adjustmentSource: string; + amount: number; + amountWithTax: number; + description: string; + type: AdjustmentType; + }>; + lines: Array<{ + id: string; + quantity: number; + linePrice: number; + linePriceWithTax: number; + unitPrice: number; + unitPriceWithTax: number; + unitPriceChangeSinceAdded: number; + unitPriceWithTaxChangeSinceAdded: number; + proratedUnitPriceWithTax: number; + productVariant: { id: string }; + discounts: Array<{ + adjustmentSource: string; + amount: number; + amountWithTax: number; + description: string; + type: AdjustmentType; + }>; + items: Array<{ id: string; unitPrice: number; unitPriceWithTax: number }>; + }>; + shippingLines: Array<{ shippingMethod: { id: string; code: string; description: string } }>; + customer?: { id: string; user?: { id: string; identifier: string } | null } | null; + history: { items: Array<{ id: string; type: HistoryEntryType; data: any }> }; + } | null; +}; + +export type GetActiveOrderWithPriceDataQueryVariables = Exact<{ [key: string]: never }>; + +export type GetActiveOrderWithPriceDataQuery = { + activeOrder?: { + id: string; + subTotal: number; + subTotalWithTax: number; + total: number; + totalWithTax: number; + lines: Array<{ + id: string; + unitPrice: number; + unitPriceWithTax: number; + taxRate: number; + linePrice: number; + lineTax: number; + linePriceWithTax: number; + items: Array<{ id: string; unitPrice: number; unitPriceWithTax: number; taxRate: number }>; + taxLines: Array<{ taxRate: number; description: string }>; + }>; + taxSummary: Array<{ description: string; taxRate: number; taxBase: number; taxTotal: number }>; + } | null; +}; export type AdjustItemQuantityMutationVariables = Exact<{ - orderLineId: Scalars['ID']; - quantity: Scalars['Int']; + orderLineId: Scalars['ID']; + quantity: Scalars['Int']; }>; - -export type AdjustItemQuantityMutation = { adjustOrderLine: { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } | { id: string, code: string, state: string, active: boolean, subTotal: number, subTotalWithTax: number, shipping: number, shippingWithTax: number, total: number, totalWithTax: number, couponCodes: Array, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }>, lines: Array<{ id: string, quantity: number, linePrice: number, linePriceWithTax: number, unitPrice: number, unitPriceWithTax: number, unitPriceChangeSinceAdded: number, unitPriceWithTaxChangeSinceAdded: number, proratedUnitPriceWithTax: number, productVariant: { id: string }, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }>, items: Array<{ id: string, unitPrice: number, unitPriceWithTax: number }> }>, shippingLines: Array<{ shippingMethod: { id: string, code: string, description: string } }>, customer?: { id: string, user?: { id: string, identifier: string } | null } | null, history: { items: Array<{ id: string, type: HistoryEntryType, data: any }> } } | { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } }; +export type AdjustItemQuantityMutation = { + adjustOrderLine: + | { errorCode: ErrorCode; message: string } + | { errorCode: ErrorCode; message: string } + | { + id: string; + code: string; + state: string; + active: boolean; + subTotal: number; + subTotalWithTax: number; + shipping: number; + shippingWithTax: number; + total: number; + totalWithTax: number; + couponCodes: Array; + discounts: Array<{ + adjustmentSource: string; + amount: number; + amountWithTax: number; + description: string; + type: AdjustmentType; + }>; + lines: Array<{ + id: string; + quantity: number; + linePrice: number; + linePriceWithTax: number; + unitPrice: number; + unitPriceWithTax: number; + unitPriceChangeSinceAdded: number; + unitPriceWithTaxChangeSinceAdded: number; + proratedUnitPriceWithTax: number; + productVariant: { id: string }; + discounts: Array<{ + adjustmentSource: string; + amount: number; + amountWithTax: number; + description: string; + type: AdjustmentType; + }>; + items: Array<{ id: string; unitPrice: number; unitPriceWithTax: number }>; + }>; + shippingLines: Array<{ shippingMethod: { id: string; code: string; description: string } }>; + customer?: { id: string; user?: { id: string; identifier: string } | null } | null; + history: { items: Array<{ id: string; type: HistoryEntryType; data: any }> }; + } + | { errorCode: ErrorCode; message: string } + | { errorCode: ErrorCode; message: string }; +}; export type RemoveItemFromOrderMutationVariables = Exact<{ - orderLineId: Scalars['ID']; + orderLineId: Scalars['ID']; }>; - -export type RemoveItemFromOrderMutation = { removeOrderLine: { id: string, code: string, state: string, active: boolean, subTotal: number, subTotalWithTax: number, shipping: number, shippingWithTax: number, total: number, totalWithTax: number, couponCodes: Array, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }>, lines: Array<{ id: string, quantity: number, linePrice: number, linePriceWithTax: number, unitPrice: number, unitPriceWithTax: number, unitPriceChangeSinceAdded: number, unitPriceWithTaxChangeSinceAdded: number, proratedUnitPriceWithTax: number, productVariant: { id: string }, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }>, items: Array<{ id: string, unitPrice: number, unitPriceWithTax: number }> }>, shippingLines: Array<{ shippingMethod: { id: string, code: string, description: string } }>, customer?: { id: string, user?: { id: string, identifier: string } | null } | null, history: { items: Array<{ id: string, type: HistoryEntryType, data: any }> } } | { errorCode: ErrorCode, message: string } }; - -export type GetShippingMethodsQueryVariables = Exact<{ [key: string]: never; }>; - - -export type GetShippingMethodsQuery = { eligibleShippingMethods: Array<{ id: string, code: string, price: number, name: string, description: string }> }; +export type RemoveItemFromOrderMutation = { + removeOrderLine: + | { + id: string; + code: string; + state: string; + active: boolean; + subTotal: number; + subTotalWithTax: number; + shipping: number; + shippingWithTax: number; + total: number; + totalWithTax: number; + couponCodes: Array; + discounts: Array<{ + adjustmentSource: string; + amount: number; + amountWithTax: number; + description: string; + type: AdjustmentType; + }>; + lines: Array<{ + id: string; + quantity: number; + linePrice: number; + linePriceWithTax: number; + unitPrice: number; + unitPriceWithTax: number; + unitPriceChangeSinceAdded: number; + unitPriceWithTaxChangeSinceAdded: number; + proratedUnitPriceWithTax: number; + productVariant: { id: string }; + discounts: Array<{ + adjustmentSource: string; + amount: number; + amountWithTax: number; + description: string; + type: AdjustmentType; + }>; + items: Array<{ id: string; unitPrice: number; unitPriceWithTax: number }>; + }>; + shippingLines: Array<{ shippingMethod: { id: string; code: string; description: string } }>; + customer?: { id: string; user?: { id: string; identifier: string } | null } | null; + history: { items: Array<{ id: string; type: HistoryEntryType; data: any }> }; + } + | { errorCode: ErrorCode; message: string }; +}; + +export type GetShippingMethodsQueryVariables = Exact<{ [key: string]: never }>; + +export type GetShippingMethodsQuery = { + eligibleShippingMethods: Array<{ + id: string; + code: string; + price: number; + name: string; + description: string; + }>; +}; export type SetShippingMethodMutationVariables = Exact<{ - id: 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, proratedUnitPriceWithTax: number, productVariant: { id: string }, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }>, items: Array<{ id: string, unitPrice: number, unitPriceWithTax: number }> }>, shippingLines: Array<{ shippingMethod: { id: string, code: string, description: string } }>, customer?: { id: string, user?: { id: string, identifier: string } | null } | null, history: { items: Array<{ id: string, type: HistoryEntryType, data: any }> } } | { errorCode: ErrorCode, message: string } }; - -export type ActiveOrderCustomerFragment = { id: string, customer?: { id: string, emailAddress: string, firstName: string, lastName: string } | null, lines: Array<{ id: string }> }; +export type SetShippingMethodMutation = { + setOrderShippingMethod: + | { errorCode: ErrorCode; message: string } + | { errorCode: ErrorCode; message: string } + | { + id: string; + code: string; + state: string; + active: boolean; + subTotal: number; + subTotalWithTax: number; + shipping: number; + shippingWithTax: number; + total: number; + totalWithTax: number; + couponCodes: Array; + discounts: Array<{ + adjustmentSource: string; + amount: number; + amountWithTax: number; + description: string; + type: AdjustmentType; + }>; + lines: Array<{ + id: string; + quantity: number; + linePrice: number; + linePriceWithTax: number; + unitPrice: number; + unitPriceWithTax: number; + unitPriceChangeSinceAdded: number; + unitPriceWithTaxChangeSinceAdded: number; + proratedUnitPriceWithTax: number; + productVariant: { id: string }; + discounts: Array<{ + adjustmentSource: string; + amount: number; + amountWithTax: number; + description: string; + type: AdjustmentType; + }>; + items: Array<{ id: string; unitPrice: number; unitPriceWithTax: number }>; + }>; + shippingLines: Array<{ shippingMethod: { id: string; code: string; description: string } }>; + customer?: { id: string; user?: { id: string; identifier: string } | null } | null; + history: { items: Array<{ id: string; type: HistoryEntryType; data: any }> }; + } + | { errorCode: ErrorCode; message: string }; +}; + +export type ActiveOrderCustomerFragment = { + id: string; + customer?: { id: string; emailAddress: string; firstName: string; lastName: string } | null; + lines: Array<{ id: string }>; +}; export type SetCustomerForOrderMutationVariables = Exact<{ - input: CreateCustomerInput; + input: CreateCustomerInput; }>; - -export type SetCustomerForOrderMutation = { setCustomerForOrder: { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } | { id: string, customer?: { id: string, emailAddress: string, firstName: string, lastName: string } | null, lines: Array<{ id: string }> } }; +export type SetCustomerForOrderMutation = { + setCustomerForOrder: + | { errorCode: ErrorCode; message: string } + | { errorCode: ErrorCode; message: string } + | { errorCode: ErrorCode; message: string } + | { + id: string; + customer?: { id: string; emailAddress: string; firstName: string; lastName: string } | null; + lines: Array<{ id: string }>; + }; +}; export type GetOrderByCodeQueryVariables = Exact<{ - code: Scalars['String']; + code: Scalars['String']; }>; - -export type GetOrderByCodeQuery = { orderByCode?: { id: string, code: string, state: string, active: boolean, subTotal: number, subTotalWithTax: number, shipping: number, shippingWithTax: number, total: number, totalWithTax: number, couponCodes: Array, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }>, lines: Array<{ id: string, quantity: number, linePrice: number, linePriceWithTax: number, unitPrice: number, unitPriceWithTax: number, unitPriceChangeSinceAdded: number, unitPriceWithTaxChangeSinceAdded: number, proratedUnitPriceWithTax: number, productVariant: { id: string }, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }>, items: Array<{ id: string, unitPrice: number, unitPriceWithTax: number }> }>, shippingLines: Array<{ shippingMethod: { id: string, code: string, description: string } }>, customer?: { id: string, user?: { id: string, identifier: string } | null } | null, history: { items: Array<{ id: string, type: HistoryEntryType, data: any }> } } | null }; +export type GetOrderByCodeQuery = { + orderByCode?: { + id: string; + code: string; + state: string; + active: boolean; + subTotal: number; + subTotalWithTax: number; + shipping: number; + shippingWithTax: number; + total: number; + totalWithTax: number; + couponCodes: Array; + discounts: Array<{ + adjustmentSource: string; + amount: number; + amountWithTax: number; + description: string; + type: AdjustmentType; + }>; + lines: Array<{ + id: string; + quantity: number; + linePrice: number; + linePriceWithTax: number; + unitPrice: number; + unitPriceWithTax: number; + unitPriceChangeSinceAdded: number; + unitPriceWithTaxChangeSinceAdded: number; + proratedUnitPriceWithTax: number; + productVariant: { id: string }; + discounts: Array<{ + adjustmentSource: string; + amount: number; + amountWithTax: number; + description: string; + type: AdjustmentType; + }>; + items: Array<{ id: string; unitPrice: number; unitPriceWithTax: number }>; + }>; + shippingLines: Array<{ shippingMethod: { id: string; code: string; description: string } }>; + customer?: { id: string; user?: { id: string; identifier: string } | null } | null; + history: { items: Array<{ id: string; type: HistoryEntryType; data: any }> }; + } | null; +}; export type GetOrderShopQueryVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; - -export type GetOrderShopQuery = { order?: { id: string, code: string, state: string, active: boolean, subTotal: number, subTotalWithTax: number, shipping: number, shippingWithTax: number, total: number, totalWithTax: number, couponCodes: Array, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }>, lines: Array<{ id: string, quantity: number, linePrice: number, linePriceWithTax: number, unitPrice: number, unitPriceWithTax: number, unitPriceChangeSinceAdded: number, unitPriceWithTaxChangeSinceAdded: number, proratedUnitPriceWithTax: number, productVariant: { id: string }, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }>, items: Array<{ id: string, unitPrice: number, unitPriceWithTax: number }> }>, shippingLines: Array<{ shippingMethod: { id: string, code: string, description: string } }>, customer?: { id: string, user?: { id: string, identifier: string } | null } | null, history: { items: Array<{ id: string, type: HistoryEntryType, data: any }> } } | null }; +export type GetOrderShopQuery = { + order?: { + id: string; + code: string; + state: string; + active: boolean; + subTotal: number; + subTotalWithTax: number; + shipping: number; + shippingWithTax: number; + total: number; + totalWithTax: number; + couponCodes: Array; + discounts: Array<{ + adjustmentSource: string; + amount: number; + amountWithTax: number; + description: string; + type: AdjustmentType; + }>; + lines: Array<{ + id: string; + quantity: number; + linePrice: number; + linePriceWithTax: number; + unitPrice: number; + unitPriceWithTax: number; + unitPriceChangeSinceAdded: number; + unitPriceWithTaxChangeSinceAdded: number; + proratedUnitPriceWithTax: number; + productVariant: { id: string }; + discounts: Array<{ + adjustmentSource: string; + amount: number; + amountWithTax: number; + description: string; + type: AdjustmentType; + }>; + items: Array<{ id: string; unitPrice: number; unitPriceWithTax: number }>; + }>; + shippingLines: Array<{ shippingMethod: { id: string; code: string; description: string } }>; + customer?: { id: string; user?: { id: string; identifier: string } | null } | null; + history: { items: Array<{ id: string; type: HistoryEntryType; data: any }> }; + } | null; +}; export type GetOrderPromotionsByCodeQueryVariables = Exact<{ - code: Scalars['String']; + code: Scalars['String']; }>; - -export type GetOrderPromotionsByCodeQuery = { orderByCode?: { id: string, code: string, state: string, active: boolean, subTotal: number, subTotalWithTax: number, shipping: number, shippingWithTax: number, total: number, totalWithTax: number, couponCodes: Array, promotions: Array<{ id: string, name: string }>, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }>, lines: Array<{ id: string, quantity: number, linePrice: number, linePriceWithTax: number, unitPrice: number, unitPriceWithTax: number, unitPriceChangeSinceAdded: number, unitPriceWithTaxChangeSinceAdded: number, proratedUnitPriceWithTax: number, productVariant: { id: string }, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }>, items: Array<{ id: string, unitPrice: number, unitPriceWithTax: number }> }>, shippingLines: Array<{ shippingMethod: { id: string, code: string, description: string } }>, customer?: { id: string, user?: { id: string, identifier: string } | null } | null, history: { items: Array<{ id: string, type: HistoryEntryType, data: any }> } } | null }; - -export type GetAvailableCountriesQueryVariables = Exact<{ [key: string]: never; }>; - - -export type GetAvailableCountriesQuery = { availableCountries: Array<{ id: string, code: string }> }; +export type GetOrderPromotionsByCodeQuery = { + orderByCode?: { + id: string; + code: string; + state: string; + active: boolean; + subTotal: number; + subTotalWithTax: number; + shipping: number; + shippingWithTax: number; + total: number; + totalWithTax: number; + couponCodes: Array; + promotions: Array<{ id: string; name: string }>; + discounts: Array<{ + adjustmentSource: string; + amount: number; + amountWithTax: number; + description: string; + type: AdjustmentType; + }>; + lines: Array<{ + id: string; + quantity: number; + linePrice: number; + linePriceWithTax: number; + unitPrice: number; + unitPriceWithTax: number; + unitPriceChangeSinceAdded: number; + unitPriceWithTaxChangeSinceAdded: number; + proratedUnitPriceWithTax: number; + productVariant: { id: string }; + discounts: Array<{ + adjustmentSource: string; + amount: number; + amountWithTax: number; + description: string; + type: AdjustmentType; + }>; + items: Array<{ id: string; unitPrice: number; unitPriceWithTax: number }>; + }>; + shippingLines: Array<{ shippingMethod: { id: string; code: string; description: string } }>; + customer?: { id: string; user?: { id: string; identifier: string } | null } | null; + history: { items: Array<{ id: string; type: HistoryEntryType; data: any }> }; + } | null; +}; + +export type GetAvailableCountriesQueryVariables = Exact<{ [key: string]: never }>; + +export type GetAvailableCountriesQuery = { availableCountries: Array<{ id: string; code: string }> }; export type TransitionToStateMutationVariables = Exact<{ - state: Scalars['String']; + state: Scalars['String']; }>; - -export type TransitionToStateMutation = { transitionOrderToState?: { id: string, code: string, state: string, active: boolean, subTotal: number, subTotalWithTax: number, shipping: number, shippingWithTax: number, total: number, totalWithTax: number, couponCodes: Array, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }>, lines: Array<{ id: string, quantity: number, linePrice: number, linePriceWithTax: number, unitPrice: number, unitPriceWithTax: number, unitPriceChangeSinceAdded: number, unitPriceWithTaxChangeSinceAdded: number, proratedUnitPriceWithTax: number, productVariant: { id: string }, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }>, items: Array<{ id: string, unitPrice: number, unitPriceWithTax: number }> }>, shippingLines: Array<{ shippingMethod: { id: string, code: string, description: string } }>, customer?: { id: string, user?: { id: string, identifier: string } | null } | null, history: { items: Array<{ id: string, type: HistoryEntryType, data: any }> } } | { errorCode: ErrorCode, message: string, transitionError: string, fromState: string, toState: string } | null }; +export type TransitionToStateMutation = { + transitionOrderToState?: + | { + id: string; + code: string; + state: string; + active: boolean; + subTotal: number; + subTotalWithTax: number; + shipping: number; + shippingWithTax: number; + total: number; + totalWithTax: number; + couponCodes: Array; + discounts: Array<{ + adjustmentSource: string; + amount: number; + amountWithTax: number; + description: string; + type: AdjustmentType; + }>; + lines: Array<{ + id: string; + quantity: number; + linePrice: number; + linePriceWithTax: number; + unitPrice: number; + unitPriceWithTax: number; + unitPriceChangeSinceAdded: number; + unitPriceWithTaxChangeSinceAdded: number; + proratedUnitPriceWithTax: number; + productVariant: { id: string }; + discounts: Array<{ + adjustmentSource: string; + amount: number; + amountWithTax: number; + description: string; + type: AdjustmentType; + }>; + items: Array<{ id: string; unitPrice: number; unitPriceWithTax: number }>; + }>; + shippingLines: Array<{ shippingMethod: { id: string; code: string; description: string } }>; + customer?: { id: string; user?: { id: string; identifier: string } | null } | null; + history: { items: Array<{ id: string; type: HistoryEntryType; data: any }> }; + } + | { + errorCode: ErrorCode; + message: string; + transitionError: string; + fromState: string; + toState: string; + } + | null; +}; export type SetShippingAddressMutationVariables = Exact<{ - input: CreateAddressInput; + input: CreateAddressInput; }>; - -export type SetShippingAddressMutation = { setOrderShippingAddress: { errorCode: ErrorCode, message: string } | { shippingAddress?: { fullName?: string | null, company?: string | null, streetLine1?: string | null, streetLine2?: string | null, city?: string | null, province?: string | null, postalCode?: string | null, country?: string | null, phoneNumber?: string | null } | null } }; +export type SetShippingAddressMutation = { + setOrderShippingAddress: + | { errorCode: ErrorCode; message: string } + | { + shippingAddress?: { + fullName?: string | null; + company?: string | null; + streetLine1?: string | null; + streetLine2?: string | null; + city?: string | null; + province?: string | null; + postalCode?: string | null; + country?: string | null; + phoneNumber?: string | null; + } | null; + }; +}; export type SetBillingAddressMutationVariables = Exact<{ - input: CreateAddressInput; + input: CreateAddressInput; }>; - -export type SetBillingAddressMutation = { setOrderBillingAddress: { errorCode: ErrorCode, message: string } | { billingAddress?: { fullName?: string | null, company?: string | null, streetLine1?: string | null, streetLine2?: string | null, city?: string | null, province?: string | null, postalCode?: string | null, country?: string | null, phoneNumber?: string | null } | null } }; - -export type TestOrderWithPaymentsFragment = { id: string, code: string, state: string, active: boolean, subTotal: number, subTotalWithTax: number, shipping: number, shippingWithTax: number, total: number, totalWithTax: number, couponCodes: Array, payments?: Array<{ id: string, transactionId?: string | null, method: string, amount: number, state: string, metadata?: any | null }> | null, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }>, lines: Array<{ id: string, quantity: number, linePrice: number, linePriceWithTax: number, unitPrice: number, unitPriceWithTax: number, unitPriceChangeSinceAdded: number, unitPriceWithTaxChangeSinceAdded: number, proratedUnitPriceWithTax: number, productVariant: { id: string }, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }>, items: Array<{ id: string, unitPrice: number, unitPriceWithTax: number }> }>, shippingLines: Array<{ shippingMethod: { id: string, code: string, description: string } }>, customer?: { id: string, user?: { id: string, identifier: string } | null } | null, history: { items: Array<{ id: string, type: HistoryEntryType, data: any }> } }; - -export type GetActiveOrderWithPaymentsQueryVariables = Exact<{ [key: string]: never; }>; - - -export type GetActiveOrderWithPaymentsQuery = { activeOrder?: { id: string, code: string, state: string, active: boolean, subTotal: number, subTotalWithTax: number, shipping: number, shippingWithTax: number, total: number, totalWithTax: number, couponCodes: Array, payments?: Array<{ id: string, transactionId?: string | null, method: string, amount: number, state: string, metadata?: any | null }> | null, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }>, lines: Array<{ id: string, quantity: number, linePrice: number, linePriceWithTax: number, unitPrice: number, unitPriceWithTax: number, unitPriceChangeSinceAdded: number, unitPriceWithTaxChangeSinceAdded: number, proratedUnitPriceWithTax: number, productVariant: { id: string }, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }>, items: Array<{ id: string, unitPrice: number, unitPriceWithTax: number }> }>, shippingLines: Array<{ shippingMethod: { id: string, code: string, description: string } }>, customer?: { id: string, user?: { id: string, identifier: string } | null } | null, history: { items: Array<{ id: string, type: HistoryEntryType, data: any }> } } | null }; +export type SetBillingAddressMutation = { + setOrderBillingAddress: + | { errorCode: ErrorCode; message: string } + | { + billingAddress?: { + fullName?: string | null; + company?: string | null; + streetLine1?: string | null; + streetLine2?: string | null; + city?: string | null; + province?: string | null; + postalCode?: string | null; + country?: string | null; + phoneNumber?: string | null; + } | null; + }; +}; + +export type TestOrderWithPaymentsFragment = { + id: string; + code: string; + state: string; + active: boolean; + subTotal: number; + subTotalWithTax: number; + shipping: number; + shippingWithTax: number; + total: number; + totalWithTax: number; + couponCodes: Array; + payments?: Array<{ + id: string; + transactionId?: string | null; + method: string; + amount: number; + state: string; + metadata?: any | null; + }> | null; + discounts: Array<{ + adjustmentSource: string; + amount: number; + amountWithTax: number; + description: string; + type: AdjustmentType; + }>; + lines: Array<{ + id: string; + quantity: number; + linePrice: number; + linePriceWithTax: number; + unitPrice: number; + unitPriceWithTax: number; + unitPriceChangeSinceAdded: number; + unitPriceWithTaxChangeSinceAdded: number; + proratedUnitPriceWithTax: number; + productVariant: { id: string }; + discounts: Array<{ + adjustmentSource: string; + amount: number; + amountWithTax: number; + description: string; + type: AdjustmentType; + }>; + items: Array<{ id: string; unitPrice: number; unitPriceWithTax: number }>; + }>; + shippingLines: Array<{ shippingMethod: { id: string; code: string; description: string } }>; + customer?: { id: string; user?: { id: string; identifier: string } | null } | null; + history: { items: Array<{ id: string; type: HistoryEntryType; data: any }> }; +}; + +export type GetActiveOrderWithPaymentsQueryVariables = Exact<{ [key: string]: never }>; + +export type GetActiveOrderWithPaymentsQuery = { + activeOrder?: { + id: string; + code: string; + state: string; + active: boolean; + subTotal: number; + subTotalWithTax: number; + shipping: number; + shippingWithTax: number; + total: number; + totalWithTax: number; + couponCodes: Array; + payments?: Array<{ + id: string; + transactionId?: string | null; + method: string; + amount: number; + state: string; + metadata?: any | null; + }> | null; + discounts: Array<{ + adjustmentSource: string; + amount: number; + amountWithTax: number; + description: string; + type: AdjustmentType; + }>; + lines: Array<{ + id: string; + quantity: number; + linePrice: number; + linePriceWithTax: number; + unitPrice: number; + unitPriceWithTax: number; + unitPriceChangeSinceAdded: number; + unitPriceWithTaxChangeSinceAdded: number; + proratedUnitPriceWithTax: number; + productVariant: { id: string }; + discounts: Array<{ + adjustmentSource: string; + amount: number; + amountWithTax: number; + description: string; + type: AdjustmentType; + }>; + items: Array<{ id: string; unitPrice: number; unitPriceWithTax: number }>; + }>; + shippingLines: Array<{ shippingMethod: { id: string; code: string; description: string } }>; + customer?: { id: string; user?: { id: string; identifier: string } | null } | null; + history: { items: Array<{ id: string; type: HistoryEntryType; data: any }> }; + } | null; +}; export type AddPaymentToOrderMutationVariables = Exact<{ - input: PaymentInput; + input: PaymentInput; }>; - -export type AddPaymentToOrderMutation = { addPaymentToOrder: { errorCode: ErrorCode, message: string, eligibilityCheckerMessage?: string | null } | { errorCode: ErrorCode, message: string } | { id: string, code: string, state: string, active: boolean, subTotal: number, subTotalWithTax: number, shipping: number, shippingWithTax: number, total: number, totalWithTax: number, couponCodes: Array, payments?: Array<{ id: string, transactionId?: string | null, method: string, amount: number, state: string, metadata?: any | null }> | null, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }>, lines: Array<{ id: string, quantity: number, linePrice: number, linePriceWithTax: number, unitPrice: number, unitPriceWithTax: number, unitPriceChangeSinceAdded: number, unitPriceWithTaxChangeSinceAdded: number, proratedUnitPriceWithTax: number, productVariant: { id: string }, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }>, items: Array<{ id: string, unitPrice: number, unitPriceWithTax: number }> }>, shippingLines: Array<{ shippingMethod: { id: string, code: string, description: string } }>, customer?: { id: string, user?: { id: string, identifier: string } | null } | null, history: { items: Array<{ id: string, type: HistoryEntryType, data: any }> } } | { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string, transitionError: string } | { errorCode: ErrorCode, message: string, paymentErrorMessage: string } | { errorCode: ErrorCode, message: string, paymentErrorMessage: string } }; - -export type GetActiveOrderPaymentsQueryVariables = Exact<{ [key: string]: never; }>; - - -export type GetActiveOrderPaymentsQuery = { activeOrder?: { id: string, payments?: Array<{ id: string, transactionId?: string | null, method: string, amount: number, state: string, errorMessage?: string | null, metadata?: any | null }> | null } | null }; +export type AddPaymentToOrderMutation = { + addPaymentToOrder: + | { errorCode: ErrorCode; message: string; eligibilityCheckerMessage?: string | null } + | { errorCode: ErrorCode; message: string } + | { + id: string; + code: string; + state: string; + active: boolean; + subTotal: number; + subTotalWithTax: number; + shipping: number; + shippingWithTax: number; + total: number; + totalWithTax: number; + couponCodes: Array; + payments?: Array<{ + id: string; + transactionId?: string | null; + method: string; + amount: number; + state: string; + metadata?: any | null; + }> | null; + discounts: Array<{ + adjustmentSource: string; + amount: number; + amountWithTax: number; + description: string; + type: AdjustmentType; + }>; + lines: Array<{ + id: string; + quantity: number; + linePrice: number; + linePriceWithTax: number; + unitPrice: number; + unitPriceWithTax: number; + unitPriceChangeSinceAdded: number; + unitPriceWithTaxChangeSinceAdded: number; + proratedUnitPriceWithTax: number; + productVariant: { id: string }; + discounts: Array<{ + adjustmentSource: string; + amount: number; + amountWithTax: number; + description: string; + type: AdjustmentType; + }>; + items: Array<{ id: string; unitPrice: number; unitPriceWithTax: number }>; + }>; + shippingLines: Array<{ shippingMethod: { id: string; code: string; description: string } }>; + customer?: { id: string; user?: { id: string; identifier: string } | null } | null; + history: { items: Array<{ id: string; type: HistoryEntryType; data: any }> }; + } + | { errorCode: ErrorCode; message: string } + | { errorCode: ErrorCode; message: string; transitionError: string } + | { errorCode: ErrorCode; message: string; paymentErrorMessage: string } + | { errorCode: ErrorCode; message: string; paymentErrorMessage: string }; +}; + +export type GetActiveOrderPaymentsQueryVariables = Exact<{ [key: string]: never }>; + +export type GetActiveOrderPaymentsQuery = { + activeOrder?: { + id: string; + payments?: Array<{ + id: string; + transactionId?: string | null; + method: string; + amount: number; + state: string; + errorMessage?: string | null; + metadata?: any | null; + }> | null; + } | null; +}; export type GetOrderByCodeWithPaymentsQueryVariables = Exact<{ - code: Scalars['String']; + code: Scalars['String']; }>; - -export type GetOrderByCodeWithPaymentsQuery = { orderByCode?: { id: string, code: string, state: string, active: boolean, subTotal: number, subTotalWithTax: number, shipping: number, shippingWithTax: number, total: number, totalWithTax: number, couponCodes: Array, payments?: Array<{ id: string, transactionId?: string | null, method: string, amount: number, state: string, metadata?: any | null }> | null, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }>, lines: Array<{ id: string, quantity: number, linePrice: number, linePriceWithTax: number, unitPrice: number, unitPriceWithTax: number, unitPriceChangeSinceAdded: number, unitPriceWithTaxChangeSinceAdded: number, proratedUnitPriceWithTax: number, productVariant: { id: string }, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }>, items: Array<{ id: string, unitPrice: number, unitPriceWithTax: number }> }>, shippingLines: Array<{ shippingMethod: { id: string, code: string, description: string } }>, customer?: { id: string, user?: { id: string, identifier: string } | null } | null, history: { items: Array<{ id: string, type: HistoryEntryType, data: any }> } } | null }; - -export type GetActiveCustomerOrderWithItemFulfillmentsQueryVariables = Exact<{ [key: string]: never; }>; - - -export type GetActiveCustomerOrderWithItemFulfillmentsQuery = { activeCustomer?: { orders: { totalItems: number, items: Array<{ id: string, code: string, state: string, lines: Array<{ id: string, items: Array<{ id: string, fulfillment?: { id: string, state: string, method: string, trackingCode?: string | null } | null }> }> }> } } | null }; - -export type GetNextOrderStatesQueryVariables = Exact<{ [key: string]: never; }>; - +export type GetOrderByCodeWithPaymentsQuery = { + orderByCode?: { + id: string; + code: string; + state: string; + active: boolean; + subTotal: number; + subTotalWithTax: number; + shipping: number; + shippingWithTax: number; + total: number; + totalWithTax: number; + couponCodes: Array; + payments?: Array<{ + id: string; + transactionId?: string | null; + method: string; + amount: number; + state: string; + metadata?: any | null; + }> | null; + discounts: Array<{ + adjustmentSource: string; + amount: number; + amountWithTax: number; + description: string; + type: AdjustmentType; + }>; + lines: Array<{ + id: string; + quantity: number; + linePrice: number; + linePriceWithTax: number; + unitPrice: number; + unitPriceWithTax: number; + unitPriceChangeSinceAdded: number; + unitPriceWithTaxChangeSinceAdded: number; + proratedUnitPriceWithTax: number; + productVariant: { id: string }; + discounts: Array<{ + adjustmentSource: string; + amount: number; + amountWithTax: number; + description: string; + type: AdjustmentType; + }>; + items: Array<{ id: string; unitPrice: number; unitPriceWithTax: number }>; + }>; + shippingLines: Array<{ shippingMethod: { id: string; code: string; description: string } }>; + customer?: { id: string; user?: { id: string; identifier: string } | null } | null; + history: { items: Array<{ id: string; type: HistoryEntryType; data: any }> }; + } | null; +}; + +export type GetActiveCustomerOrderWithItemFulfillmentsQueryVariables = Exact<{ [key: string]: never }>; + +export type GetActiveCustomerOrderWithItemFulfillmentsQuery = { + activeCustomer?: { + orders: { + totalItems: number; + items: Array<{ + id: string; + code: string; + state: string; + lines: Array<{ + id: string; + items: Array<{ + id: string; + fulfillment?: { + id: string; + state: string; + method: string; + trackingCode?: string | null; + } | null; + }>; + }>; + }>; + }; + } | null; +}; + +export type GetNextOrderStatesQueryVariables = Exact<{ [key: string]: never }>; export type GetNextOrderStatesQuery = { nextOrderStates: Array }; -export type GetCustomerAddressesQueryVariables = Exact<{ [key: string]: never; }>; - - -export type GetCustomerAddressesQuery = { activeOrder?: { customer?: { addresses?: Array<{ id: string, streetLine1: string }> | null } | null } | null }; - -export type GetCustomerOrdersQueryVariables = Exact<{ [key: string]: never; }>; +export type GetCustomerAddressesQueryVariables = Exact<{ [key: string]: never }>; +export type GetCustomerAddressesQuery = { + activeOrder?: { + customer?: { addresses?: Array<{ id: string; streetLine1: string }> | null } | null; + } | null; +}; -export type GetCustomerOrdersQuery = { activeOrder?: { customer?: { orders: { items: Array<{ id: string }> } } | null } | null }; +export type GetCustomerOrdersQueryVariables = Exact<{ [key: string]: never }>; -export type GetActiveCustomerOrdersQueryVariables = Exact<{ [key: string]: never; }>; +export type GetCustomerOrdersQuery = { + activeOrder?: { customer?: { orders: { items: Array<{ id: string }> } } | null } | null; +}; +export type GetActiveCustomerOrdersQueryVariables = Exact<{ [key: string]: never }>; -export type GetActiveCustomerOrdersQuery = { activeCustomer?: { id: string, orders: { totalItems: number, items: Array<{ id: string, state: string }> } } | null }; +export type GetActiveCustomerOrdersQuery = { + activeCustomer?: { + id: string; + orders: { totalItems: number; items: Array<{ id: string; state: string }> }; + } | null; +}; export type ApplyCouponCodeMutationVariables = Exact<{ - couponCode: Scalars['String']; + couponCode: Scalars['String']; }>; - -export type ApplyCouponCodeMutation = { applyCouponCode: { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } | { id: string, code: string, state: string, active: boolean, subTotal: number, subTotalWithTax: number, shipping: number, shippingWithTax: number, total: number, totalWithTax: number, couponCodes: Array, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }>, lines: Array<{ id: string, quantity: number, linePrice: number, linePriceWithTax: number, unitPrice: number, unitPriceWithTax: number, unitPriceChangeSinceAdded: number, unitPriceWithTaxChangeSinceAdded: number, proratedUnitPriceWithTax: number, productVariant: { id: string }, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }>, items: Array<{ id: string, unitPrice: number, unitPriceWithTax: number }> }>, shippingLines: Array<{ shippingMethod: { id: string, code: string, description: string } }>, customer?: { id: string, user?: { id: string, identifier: string } | null } | null, history: { items: Array<{ id: string, type: HistoryEntryType, data: any }> } } }; +export type ApplyCouponCodeMutation = { + applyCouponCode: + | { errorCode: ErrorCode; message: string } + | { errorCode: ErrorCode; message: string } + | { errorCode: ErrorCode; message: string } + | { + id: string; + code: string; + state: string; + active: boolean; + subTotal: number; + subTotalWithTax: number; + shipping: number; + shippingWithTax: number; + total: number; + totalWithTax: number; + couponCodes: Array; + discounts: Array<{ + adjustmentSource: string; + amount: number; + amountWithTax: number; + description: string; + type: AdjustmentType; + }>; + lines: Array<{ + id: string; + quantity: number; + linePrice: number; + linePriceWithTax: number; + unitPrice: number; + unitPriceWithTax: number; + unitPriceChangeSinceAdded: number; + unitPriceWithTaxChangeSinceAdded: number; + proratedUnitPriceWithTax: number; + productVariant: { id: string }; + discounts: Array<{ + adjustmentSource: string; + amount: number; + amountWithTax: number; + description: string; + type: AdjustmentType; + }>; + items: Array<{ id: string; unitPrice: number; unitPriceWithTax: number }>; + }>; + shippingLines: Array<{ shippingMethod: { id: string; code: string; description: string } }>; + customer?: { id: string; user?: { id: string; identifier: string } | null } | null; + history: { items: Array<{ id: string; type: HistoryEntryType; data: any }> }; + }; +}; export type RemoveCouponCodeMutationVariables = Exact<{ - couponCode: Scalars['String']; + couponCode: Scalars['String']; }>; - -export type RemoveCouponCodeMutation = { removeCouponCode?: { id: string, code: string, state: string, active: boolean, subTotal: number, subTotalWithTax: number, shipping: number, shippingWithTax: number, total: number, totalWithTax: number, couponCodes: Array, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }>, lines: Array<{ id: string, quantity: number, linePrice: number, linePriceWithTax: number, unitPrice: number, unitPriceWithTax: number, unitPriceChangeSinceAdded: number, unitPriceWithTaxChangeSinceAdded: number, proratedUnitPriceWithTax: number, productVariant: { id: string }, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }>, items: Array<{ id: string, unitPrice: number, unitPriceWithTax: number }> }>, shippingLines: Array<{ shippingMethod: { id: string, code: string, description: string } }>, customer?: { id: string, user?: { id: string, identifier: string } | null } | null, history: { items: Array<{ id: string, type: HistoryEntryType, data: any }> } } | null }; - -export type RemoveAllOrderLinesMutationVariables = Exact<{ [key: string]: never; }>; - - -export type RemoveAllOrderLinesMutation = { removeAllOrderLines: { id: string, code: string, state: string, active: boolean, subTotal: number, subTotalWithTax: number, shipping: number, shippingWithTax: number, total: number, totalWithTax: number, couponCodes: Array, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }>, lines: Array<{ id: string, quantity: number, linePrice: number, linePriceWithTax: number, unitPrice: number, unitPriceWithTax: number, unitPriceChangeSinceAdded: number, unitPriceWithTaxChangeSinceAdded: number, proratedUnitPriceWithTax: number, productVariant: { id: string }, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }>, items: Array<{ id: string, unitPrice: number, unitPriceWithTax: number }> }>, shippingLines: Array<{ shippingMethod: { id: string, code: string, description: string } }>, customer?: { id: string, user?: { id: string, identifier: string } | null } | null, history: { items: Array<{ id: string, type: HistoryEntryType, data: any }> } } | { errorCode: ErrorCode, message: string } }; - -export type GetEligiblePaymentMethodsQueryVariables = Exact<{ [key: string]: never; }>; - - -export type GetEligiblePaymentMethodsQuery = { eligiblePaymentMethods: Array<{ id: string, code: string, eligibilityMessage?: string | null, isEligible: boolean }> }; +export type RemoveCouponCodeMutation = { + removeCouponCode?: { + id: string; + code: string; + state: string; + active: boolean; + subTotal: number; + subTotalWithTax: number; + shipping: number; + shippingWithTax: number; + total: number; + totalWithTax: number; + couponCodes: Array; + discounts: Array<{ + adjustmentSource: string; + amount: number; + amountWithTax: number; + description: string; + type: AdjustmentType; + }>; + lines: Array<{ + id: string; + quantity: number; + linePrice: number; + linePriceWithTax: number; + unitPrice: number; + unitPriceWithTax: number; + unitPriceChangeSinceAdded: number; + unitPriceWithTaxChangeSinceAdded: number; + proratedUnitPriceWithTax: number; + productVariant: { id: string }; + discounts: Array<{ + adjustmentSource: string; + amount: number; + amountWithTax: number; + description: string; + type: AdjustmentType; + }>; + items: Array<{ id: string; unitPrice: number; unitPriceWithTax: number }>; + }>; + shippingLines: Array<{ shippingMethod: { id: string; code: string; description: string } }>; + customer?: { id: string; user?: { id: string; identifier: string } | null } | null; + history: { items: Array<{ id: string; type: HistoryEntryType; data: any }> }; + } | null; +}; + +export type RemoveAllOrderLinesMutationVariables = Exact<{ [key: string]: never }>; + +export type RemoveAllOrderLinesMutation = { + removeAllOrderLines: + | { + id: string; + code: string; + state: string; + active: boolean; + subTotal: number; + subTotalWithTax: number; + shipping: number; + shippingWithTax: number; + total: number; + totalWithTax: number; + couponCodes: Array; + discounts: Array<{ + adjustmentSource: string; + amount: number; + amountWithTax: number; + description: string; + type: AdjustmentType; + }>; + lines: Array<{ + id: string; + quantity: number; + linePrice: number; + linePriceWithTax: number; + unitPrice: number; + unitPriceWithTax: number; + unitPriceChangeSinceAdded: number; + unitPriceWithTaxChangeSinceAdded: number; + proratedUnitPriceWithTax: number; + productVariant: { id: string }; + discounts: Array<{ + adjustmentSource: string; + amount: number; + amountWithTax: number; + description: string; + type: AdjustmentType; + }>; + items: Array<{ id: string; unitPrice: number; unitPriceWithTax: number }>; + }>; + shippingLines: Array<{ shippingMethod: { id: string; code: string; description: string } }>; + customer?: { id: string; user?: { id: string; identifier: string } | null } | null; + history: { items: Array<{ id: string; type: HistoryEntryType; data: any }> }; + } + | { errorCode: ErrorCode; message: string }; +}; + +export type GetEligiblePaymentMethodsQueryVariables = Exact<{ [key: string]: never }>; + +export type GetEligiblePaymentMethodsQuery = { + eligiblePaymentMethods: Array<{ + id: string; + code: string; + eligibilityMessage?: string | null; + isEligible: boolean; + }>; +}; export type GetProductStockLevelQueryVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; - -export type GetProductStockLevelQuery = { product?: { id: string, variants: Array<{ id: string, stockLevel: string }> } | null }; +export type GetProductStockLevelQuery = { + product?: { id: string; variants: Array<{ id: string; stockLevel: string }> } | null; +}; export type GetActiveCustomerWithOrdersProductSlugQueryVariables = Exact<{ - options?: InputMaybe; + options?: InputMaybe; }>; - -export type GetActiveCustomerWithOrdersProductSlugQuery = { activeCustomer?: { orders: { items: Array<{ lines: Array<{ productVariant: { product: { slug: string } } }> }> } } | null }; +export type GetActiveCustomerWithOrdersProductSlugQuery = { + activeCustomer?: { + orders: { items: Array<{ lines: Array<{ productVariant: { product: { slug: string } } }> }> }; + } | null; +}; export type GetActiveCustomerWithOrdersProductPriceQueryVariables = Exact<{ - options?: InputMaybe; + options?: InputMaybe; }>; - -export type GetActiveCustomerWithOrdersProductPriceQuery = { activeCustomer?: { orders: { items: Array<{ lines: Array<{ linePrice: number, productVariant: { id: string, name: string, price: number } }> }> } } | null }; +export type GetActiveCustomerWithOrdersProductPriceQuery = { + activeCustomer?: { + orders: { + items: Array<{ + lines: Array<{ + linePrice: number; + productVariant: { id: string; name: string; price: number }; + }>; + }>; + }; + } | null; +}; diff --git a/packages/core/e2e/order-process.e2e-spec.ts b/packages/core/e2e/order-process.e2e-spec.ts index 778c1c51e8..75d829d64d 100644 --- a/packages/core/e2e/order-process.e2e-spec.ts +++ b/packages/core/e2e/order-process.e2e-spec.ts @@ -1,5 +1,11 @@ /* tslint:disable:no-non-null-assertion */ -import { CustomOrderProcess, mergeConfig, OrderState, TransactionalConnection } from '@vendure/core'; +import { + CustomOrderProcess, + defaultOrderProcess, + mergeConfig, + OrderState, + TransactionalConnection, +} from '@vendure/core'; import { createErrorResultGuard, createTestEnvironment, ErrorResultGuard } from '@vendure/testing'; import path from 'path'; @@ -7,20 +13,17 @@ import { initialData } from '../../../e2e-common/e2e-initial-data'; import { testConfig, TEST_SETUP_TIMEOUT_MS } from '../../../e2e-common/test-config'; import { testSuccessfulPaymentMethod } from './fixtures/test-payment-methods'; -import { AdminTransition, GetOrder, OrderFragment } from './graphql/generated-e2e-admin-types'; +import * as Codegen from './graphql/generated-e2e-admin-types'; +import { OrderFragment } from './graphql/generated-e2e-admin-types'; import { - AddItemToOrder, - AddPaymentToOrder, + AddPaymentToOrderMutation, + AddPaymentToOrderMutationVariables, ErrorCode, - GetNextOrderStates, - SetCustomerForOrder, - SetShippingAddress, - SetShippingMethod, TestOrderFragmentFragment, - TransitionToState, TransitionToStateMutation, TransitionToStateMutationVariables, } from './graphql/generated-e2e-shop-types'; +import * as CodegenShop from './graphql/generated-e2e-shop-types'; import { ADMIN_TRANSITION_TO_STATE, GET_ORDER } from './graphql/shared-definitions'; import { ADD_ITEM_TO_ORDER, @@ -96,7 +99,7 @@ describe('Order process', () => { const { server, adminClient, shopClient } = createTestEnvironment( mergeConfig(testConfig(), { - orderOptions: { process: [customOrderProcess as any, customOrderProcess2 as any] }, + orderOptions: { process: [defaultOrderProcess, customOrderProcess, customOrderProcess2] as any }, paymentOptions: { paymentMethodHandlers: [testSuccessfulPaymentMethod], }, @@ -130,13 +133,13 @@ describe('Order process', () => { transitionEndSpy.mockClear(); await shopClient.asAnonymousUser(); - await shopClient.query( - ADD_ITEM_TO_ORDER, - { - productVariantId: 'T_1', - quantity: 1, - }, - ); + await shopClient.query< + CodegenShop.AddItemToOrderMutation, + CodegenShop.AddItemToOrderMutationVariables + >(ADD_ITEM_TO_ORDER, { + productVariantId: 'T_1', + quantity: 1, + }); expect(transitionStartSpy).toHaveBeenCalledTimes(1); expect(transitionEndSpy).toHaveBeenCalledTimes(1); @@ -152,15 +155,15 @@ describe('Order process', () => { }); it('replaced transition target', async () => { - await shopClient.query( - ADD_ITEM_TO_ORDER, - { - productVariantId: 'T_1', - quantity: 1, - }, - ); + await shopClient.query< + CodegenShop.AddItemToOrderMutation, + CodegenShop.AddItemToOrderMutationVariables + >(ADD_ITEM_TO_ORDER, { + productVariantId: 'T_1', + quantity: 1, + }); - const { nextOrderStates } = await shopClient.query( + const { nextOrderStates } = await shopClient.query( GET_NEXT_STATES, ); @@ -172,8 +175,8 @@ describe('Order process', () => { transitionEndSpy.mockClear(); const { transitionOrderToState } = await shopClient.query< - Codegen.TransitionToStateMutation, - Codegen.TransitionToStateMutationVariables + CodegenShop.TransitionToStateMutation, + CodegenShop.TransitionToStateMutationVariables >(TRANSITION_TO_STATE, { state: 'ValidatingCustomer', }); @@ -193,8 +196,8 @@ describe('Order process', () => { transitionErrorSpy.mockClear(); await shopClient.query< - Codegen.SetCustomerForOrderMutation, - Codegen.SetCustomerForOrderMutationVariables + CodegenShop.SetCustomerForOrderMutation, + CodegenShop.SetCustomerForOrderMutationVariables >(SET_CUSTOMER, { input: { firstName: 'Joe', @@ -204,8 +207,8 @@ describe('Order process', () => { }); const { transitionOrderToState } = await shopClient.query< - Codegen.TransitionToStateMutation, - Codegen.TransitionToStateMutationVariables + CodegenShop.TransitionToStateMutation, + CodegenShop.TransitionToStateMutationVariables >(TRANSITION_TO_STATE, { state: 'ValidatingCustomer', }); @@ -233,8 +236,8 @@ describe('Order process', () => { transitionEndSpy.mockClear(); await shopClient.query< - Codegen.SetCustomerForOrderMutation, - Codegen.SetCustomerForOrderMutationVariables + CodegenShop.SetCustomerForOrderMutation, + CodegenShop.SetCustomerForOrderMutationVariables >(SET_CUSTOMER, { input: { firstName: 'Joe', @@ -244,8 +247,8 @@ describe('Order process', () => { }); const { transitionOrderToState } = await shopClient.query< - Codegen.TransitionToStateMutation, - Codegen.TransitionToStateMutationVariables + CodegenShop.TransitionToStateMutation, + CodegenShop.TransitionToStateMutationVariables >(TRANSITION_TO_STATE, { state: 'ValidatingCustomer', }); @@ -260,15 +263,15 @@ describe('Order process', () => { transitionEndSpy.mockClear(); transitionEndSpy2.mockClear(); - const { nextOrderStates } = await shopClient.query( + const { nextOrderStates } = await shopClient.query( GET_NEXT_STATES, ); expect(nextOrderStates).toEqual(['ArrangingPayment', 'AddingItems', 'Cancelled']); await shopClient.query< - Codegen.TransitionToStateMutation, - Codegen.TransitionToStateMutationVariables + CodegenShop.TransitionToStateMutation, + CodegenShop.TransitionToStateMutationVariables >(TRANSITION_TO_STATE, { state: 'AddingItems', }); @@ -282,10 +285,10 @@ describe('Order process', () => { // https://github.com/vendure-ecommerce/vendure/issues/963 it('allows addPaymentToOrder from a custom state', async () => { - await shopClient.query( - SET_SHIPPING_METHOD, - { id: 'T_1' }, - ); + await shopClient.query< + CodegenShop.SetShippingMethodMutation, + CodegenShop.SetShippingMethodMutationVariables + >(SET_SHIPPING_METHOD, { id: 'T_1' }); const result0 = await shopClient.query< TransitionToStateMutation, TransitionToStateMutationVariables @@ -309,8 +312,8 @@ describe('Order process', () => { orderErrorGuard.assertSuccess(result2.transitionOrderToState); expect(result2.transitionOrderToState.state).toBe('PaymentProcessing'); const { addPaymentToOrder } = await shopClient.query< - AddPaymentToOrder.Mutation, - AddPaymentToOrder.Variables + AddPaymentToOrderMutation, + AddPaymentToOrderMutationVariables >(ADD_PAYMENT, { input: { method: testSuccessfulPaymentMethod.code, @@ -327,16 +330,16 @@ describe('Order process', () => { beforeAll(async () => { await shopClient.asAnonymousUser(); - await shopClient.query( - ADD_ITEM_TO_ORDER, - { - productVariantId: 'T_1', - quantity: 1, - }, - ); await shopClient.query< - Codegen.SetCustomerForOrderMutation, - Codegen.SetCustomerForOrderMutationVariables + CodegenShop.AddItemToOrderMutation, + CodegenShop.AddItemToOrderMutationVariables + >(ADD_ITEM_TO_ORDER, { + productVariantId: 'T_1', + quantity: 1, + }); + await shopClient.query< + CodegenShop.SetCustomerForOrderMutation, + CodegenShop.SetCustomerForOrderMutationVariables >(SET_CUSTOMER, { input: { firstName: 'Su', @@ -345,8 +348,8 @@ describe('Order process', () => { }, }); await shopClient.query< - Codegen.SetShippingAddressMutation, - Codegen.SetShippingAddressMutationVariables + CodegenShop.SetShippingAddressMutation, + CodegenShop.SetShippingAddressMutationVariables >(SET_SHIPPING_ADDRESS, { input: { fullName: 'name', @@ -358,18 +361,18 @@ describe('Order process', () => { }, }); await shopClient.query< - Codegen.SetShippingMethodMutation, - Codegen.SetShippingMethodMutationVariables + CodegenShop.SetShippingMethodMutation, + CodegenShop.SetShippingMethodMutationVariables >(SET_SHIPPING_METHOD, { id: 'T_1' }); await shopClient.query< - Codegen.TransitionToStateMutation, - Codegen.TransitionToStateMutationVariables + CodegenShop.TransitionToStateMutation, + CodegenShop.TransitionToStateMutationVariables >(TRANSITION_TO_STATE, { state: 'ValidatingCustomer', }); const { transitionOrderToState } = await shopClient.query< - Codegen.TransitionToStateMutation, - Codegen.TransitionToStateMutationVariables + CodegenShop.TransitionToStateMutation, + CodegenShop.TransitionToStateMutationVariables >(TRANSITION_TO_STATE, { state: 'ArrangingPayment', }); @@ -434,8 +437,8 @@ describe('Order process', () => { it('cannot manually transition to Cancelled', async () => { const { addPaymentToOrder } = await shopClient.query< - Codegen.AddPaymentToOrderMutation, - Codegen.AddPaymentToOrderMutationVariables + CodegenShop.AddPaymentToOrderMutation, + CodegenShop.AddPaymentToOrderMutationVariables >(ADD_PAYMENT, { input: { method: testSuccessfulPaymentMethod.code, diff --git a/packages/core/e2e/payment-process.e2e-spec.ts b/packages/core/e2e/payment-process.e2e-spec.ts index abd5f76b65..c84ecd1aef 100644 --- a/packages/core/e2e/payment-process.e2e-spec.ts +++ b/packages/core/e2e/payment-process.e2e-spec.ts @@ -3,6 +3,7 @@ import { CustomOrderProcess, CustomPaymentProcess, DefaultLogger, + defaultOrderProcess, LanguageCode, mergeConfig, Order, @@ -124,7 +125,7 @@ describe('Payment process', () => { mergeConfig(testConfig(), { // logger: new DefaultLogger(), orderOptions: { - process: [customOrderProcess as any], + process: [defaultOrderProcess, customOrderProcess] as any, orderPlacedStrategy: new TestOrderPlacedStrategy(), }, paymentOptions: { diff --git a/packages/core/src/config/default-config.ts b/packages/core/src/config/default-config.ts index ab9c6fbd94..0dd392d3a9 100644 --- a/packages/core/src/config/default-config.ts +++ b/packages/core/src/config/default-config.ts @@ -26,6 +26,7 @@ import { DefaultActiveOrderStrategy } from './order/default-active-order-strateg import { DefaultChangedPriceHandlingStrategy } from './order/default-changed-price-handling-strategy'; import { DefaultOrderItemPriceCalculationStrategy } from './order/default-order-item-price-calculation-strategy'; import { DefaultOrderPlacedStrategy } from './order/default-order-placed-strategy'; +import { defaultOrderProcess } from './order/default-order-process'; import { DefaultOrderSellerStrategy } from './order/default-order-seller-strategy'; import { DefaultStockAllocationStrategy } from './order/default-stock-allocation-strategy'; import { MergeOrdersStrategy } from './order/merge-orders-strategy'; @@ -136,7 +137,7 @@ export const defaultConfig: RuntimeVendureConfig = { orderItemPriceCalculationStrategy: new DefaultOrderItemPriceCalculationStrategy(), mergeStrategy: new MergeOrdersStrategy(), checkoutMergeStrategy: new UseGuestStrategy(), - process: [], + process: [defaultOrderProcess], stockAllocationStrategy: new DefaultStockAllocationStrategy(), orderCodeStrategy: new DefaultOrderCodeStrategy(), orderByCodeAccessStrategy: new DefaultOrderByCodeAccessStrategy('2h'), diff --git a/packages/core/src/config/index.ts b/packages/core/src/config/index.ts index 2781453852..c7d3ee59e3 100644 --- a/packages/core/src/config/index.ts +++ b/packages/core/src/config/index.ts @@ -33,9 +33,10 @@ export * from './merge-config'; export * from './order/active-order-strategy'; export * from './order/default-active-order-strategy'; export * from './order/changed-price-handling-strategy'; -export * from './order/custom-order-process'; +export * from './order/order-process'; export * from './order/default-changed-price-handling-strategy'; export * from './order/default-order-placed-strategy'; +export * from './order/default-order-process'; export * from './order/default-order-seller-strategy'; export * from './order/default-stock-allocation-strategy'; export * from './order/merge-orders-strategy'; diff --git a/packages/core/src/config/order/default-order-process.ts b/packages/core/src/config/order/default-order-process.ts new file mode 100644 index 0000000000..4a48ccf5b7 --- /dev/null +++ b/packages/core/src/config/order/default-order-process.ts @@ -0,0 +1,446 @@ +import { HistoryEntryType } from '@vendure/common/lib/generated-types'; +import { ID } from '@vendure/common/lib/shared-types'; +import { unique } from '@vendure/common/lib/unique'; + +import { RequestContext } from '../../api/index'; +import { TransactionalConnection } from '../../connection/transactional-connection'; +import { Order, Payment, ProductVariant } from '../../entity/index'; +import { OrderModification } from '../../entity/order-modification/order-modification.entity'; +import { OrderPlacedEvent } from '../../event-bus/events/order-placed-event'; +import { OrderState } from '../../service/helpers/order-state-machine/order-state'; +import { + orderItemsAreAllCancelled, + orderItemsAreDelivered, + orderItemsArePartiallyDelivered, + orderItemsArePartiallyShipped, + orderItemsAreShipped, + orderTotalIsCovered, + totalCoveredByPayments, +} from '../../service/helpers/utils/order-utils'; + +import { OrderProcess } from './order-process'; + +declare module '../../service/helpers/order-state-machine/order-state' { + interface OrderStates { + ArrangingPayment: never; + PaymentAuthorized: never; + PaymentSettled: never; + PartiallyShipped: never; + Shipped: never; + PartiallyDelivered: never; + Delivered: never; + Modifying: never; + ArrangingAdditionalPayment: never; + } +} + +/** + * @description + * Options which can be passed to the {@link configureDefaultOrderProcess} function + * to configure an instance of the default {@link OrderProcess}. By default, all + * options are set to `true`. + * + * @docsCategory Orders + * @docsPage OrderProcess + * @since 2.0.0 + */ +export interface DefaultOrderProcessOptions { + /** + * @description + * Prevents an Order from transitioning out of the `Modifying` state if + * the Order price has changed and there is no Payment or Refund associated + * with the Modification. + * + * @default true + */ + checkModificationPayments?: boolean; + /** + * @description + * Prevents an Order from transitioning out of the `ArrangingAdditionalPayment` state if + * the Order's Payments do not cover the full amount of `totalWithTax`. + * + * @default true + */ + checkAdditionalPaymentsAmount?: boolean; + /** + * @description + * Prevents the transition from `AddingItems` to any other state (apart from `Cancelled`) if + * and of the ProductVariants no longer exists due to deletion. + * + * @default true + */ + checkAllVariantsExist?: boolean; + /** + * @description + * Prevents transition to the `ArrangingPayment` state if the active Order has no lines. + * + * @default true + */ + arrangingPaymentRequiresContents?: boolean; + /** + * @description + * Prevents transition to the `ArrangingPayment` state if the active Order has no customer + * associated with it. + * + * @default true + */ + arrangingPaymentRequiresCustomer?: boolean; + /** + * @description + * Prevents transition to the `ArrangingPayment` state if the active Order has no shipping + * method set. + * + * @default true + */ + arrangingPaymentRequiresShipping?: boolean; + /** + * @description + * Prevents transition to the `ArrangingPayment` state if there is insufficient saleable + * stock to cover the contents of the Order. + * + * @default true + */ + arrangingPaymentRequiresStock?: boolean; + /** + * @description + * Prevents transition to the `PaymentAuthorized` or `PaymentSettled` states if the order + * `totalWithTax` amount is not covered by Payment(s) in the corresponding states. + * + * @default true + */ + checkPaymentsCoverTotal?: boolean; + /** + * @description + * Prevents transition to the `Cancelled` state unless all OrderItems are already + * cancelled. + * + * @default true + */ + checkAllItemsBeforeCancel?: boolean; + /** + * @description + * Prevents transition to the `Shipped`, `PartiallyShipped`, `Delivered` & `PartiallyDelivered` states unless + * there are corresponding Fulfillments in the correct states to allow this. E.g. `Shipped` only if all items in + * the Order are part of a Fulfillment which itself is in the `Shipped` state. + * + * @default true + */ + checkFulfillmentStates?: boolean; +} + +/** + * @description + * Used to configure a customized instance of the default {@link OrderProcess} that ships with Vendure. + * Using this function allows you to turn off certain checks and constraints that are enabled by default. + * + * ```TypeScript + * import { configureDefaultOrderProcess, VendureConfig } from '\@vendure/core'; + * + * const myCustomOrderProcess = configureDefaultOrderProcess({ + * // Disable the constraint that requires + * // Orders to have a shipping method assigned + * // before payment. + * arrangingPaymentRequiresShipping: false, + * }); + * + * export const config: VendureConfig = { + * orderOptions: { + * process: [myCustomOrderProcess], + * }, + * }; + * ``` + * @docsCategory Orders + * @docsPage OrderProcess + * @since 2.0.0 + */ +export function configureDefaultOrderProcess(options: DefaultOrderProcessOptions) { + let connection: TransactionalConnection; + let productVariantService: import('../../service/index').ProductVariantService; + let configService: import('../config.service').ConfigService; + let eventBus: import('../../event-bus/index').EventBus; + let stockMovementService: import('../../service/index').StockMovementService; + let historyService: import('../../service/index').HistoryService; + + const orderProcess: OrderProcess = { + transitions: { + Created: { + to: ['AddingItems', 'Draft'], + }, + Draft: { + to: ['Cancelled', 'ArrangingPayment'], + }, + AddingItems: { + to: ['ArrangingPayment', 'Cancelled'], + }, + ArrangingPayment: { + to: ['PaymentAuthorized', 'PaymentSettled', 'AddingItems', 'Cancelled'], + }, + PaymentAuthorized: { + to: ['PaymentSettled', 'Cancelled', 'Modifying', 'ArrangingAdditionalPayment'], + }, + PaymentSettled: { + to: [ + 'PartiallyDelivered', + 'Delivered', + 'PartiallyShipped', + 'Shipped', + 'Cancelled', + 'Modifying', + 'ArrangingAdditionalPayment', + ], + }, + PartiallyShipped: { + to: ['Shipped', 'PartiallyDelivered', 'Cancelled', 'Modifying'], + }, + Shipped: { + to: ['PartiallyDelivered', 'Delivered', 'Cancelled', 'Modifying'], + }, + PartiallyDelivered: { + to: ['Delivered', 'Cancelled', 'Modifying'], + }, + Delivered: { + to: ['Cancelled'], + }, + Modifying: { + to: [ + 'PaymentAuthorized', + 'PaymentSettled', + 'PartiallyShipped', + 'Shipped', + 'PartiallyDelivered', + 'ArrangingAdditionalPayment', + ], + }, + ArrangingAdditionalPayment: { + to: [ + 'PaymentAuthorized', + 'PaymentSettled', + 'PartiallyShipped', + 'Shipped', + 'PartiallyDelivered', + 'Cancelled', + ], + }, + Cancelled: { + to: [], + }, + }, + async init(injector) { + // Lazily import these services to avoid a circular dependency error + // due to this being used as part of the DefaultConfig + const ConfigService = await import('../config.service').then(m => m.ConfigService); + const EventBus = await import('../../event-bus/index').then(m => m.EventBus); + const StockMovementService = await import('../../service/index').then( + m => m.StockMovementService, + ); + const HistoryService = await import('../../service/index').then(m => m.HistoryService); + const ProductVariantService = await import('../../service/index').then( + m => m.ProductVariantService, + ); + connection = injector.get(TransactionalConnection); + productVariantService = injector.get(ProductVariantService); + configService = injector.get(ConfigService); + eventBus = injector.get(EventBus); + stockMovementService = injector.get(StockMovementService); + historyService = injector.get(HistoryService); + }, + + async onTransitionStart(fromState, toState, { ctx, order }) { + if (options.checkModificationPayments !== false && fromState === 'Modifying') { + const modifications = await connection + .getRepository(ctx, OrderModification) + .find({ where: { order }, relations: ['refund', 'payment'] }); + if (toState === 'ArrangingAdditionalPayment') { + if ( + 0 < modifications.length && + modifications.every(modification => modification.isSettled) + ) { + return `message.cannot-transition-no-additional-payments-needed`; + } + } else { + if (modifications.some(modification => !modification.isSettled)) { + return `message.cannot-transition-without-modification-payment`; + } + } + } + if ( + options.checkAdditionalPaymentsAmount !== false && + fromState === 'ArrangingAdditionalPayment' + ) { + if (toState === 'Cancelled') { + return; + } + const existingPayments = await connection.getRepository(ctx, Payment).find({ + relations: ['refunds'], + where: { + order: { id: order.id }, + }, + }); + order.payments = existingPayments; + const deficit = order.totalWithTax - totalCoveredByPayments(order); + if (0 < deficit) { + return `message.cannot-transition-from-arranging-additional-payment`; + } + } + if ( + options.checkAllVariantsExist !== false && + fromState === 'AddingItems' && + toState !== 'Cancelled' && + order.lines.length > 0 + ) { + const variantIds = unique(order.lines.map(l => l.productVariant.id)); + const qb = connection + .getRepository(ctx, ProductVariant) + .createQueryBuilder('variant') + .leftJoin('variant.product', 'product') + .where('variant.deletedAt IS NULL') + .andWhere('product.deletedAt IS NULL') + .andWhere('variant.id IN (:...variantIds)', { variantIds }); + const availableVariants = await qb.getMany(); + if (availableVariants.length !== variantIds.length) { + return `message.cannot-transition-order-contains-products-which-are-unavailable`; + } + } + if (toState === 'ArrangingPayment') { + if (options.arrangingPaymentRequiresContents !== false && order.lines.length === 0) { + return `message.cannot-transition-to-payment-when-order-is-empty`; + } + if (options.arrangingPaymentRequiresCustomer !== false && !order.customer) { + return `message.cannot-transition-to-payment-without-customer`; + } + if ( + options.arrangingPaymentRequiresShipping !== false && + (!order.shippingLines || order.shippingLines.length === 0) + ) { + return `message.cannot-transition-to-payment-without-shipping-method`; + } + if (options.arrangingPaymentRequiresStock !== false) { + const variantsWithInsufficientSaleableStock: ProductVariant[] = []; + for (const line of order.lines) { + const availableStock = await productVariantService.getSaleableStockLevel( + ctx, + line.productVariant, + ); + if (line.quantity > availableStock) { + variantsWithInsufficientSaleableStock.push(line.productVariant); + } + } + if (variantsWithInsufficientSaleableStock.length) { + return ctx.translate( + 'message.cannot-transition-to-payment-due-to-insufficient-stock', + { + productVariantNames: variantsWithInsufficientSaleableStock + .map(v => v.name) + .join(', '), + }, + ); + } + } + } + if (options.checkPaymentsCoverTotal !== false) { + if (toState === 'PaymentAuthorized') { + const hasAnAuthorizedPayment = !!order.payments.find(p => p.state === 'Authorized'); + if (!orderTotalIsCovered(order, ['Authorized', 'Settled']) || !hasAnAuthorizedPayment) { + return `message.cannot-transition-without-authorized-payments`; + } + } + if (toState === 'PaymentSettled' && !orderTotalIsCovered(order, 'Settled')) { + return `message.cannot-transition-without-settled-payments`; + } + } + if (options.checkAllItemsBeforeCancel !== false) { + if ( + toState === 'Cancelled' && + fromState !== 'AddingItems' && + fromState !== 'ArrangingPayment' + ) { + if (!orderItemsAreAllCancelled(order)) { + return `message.cannot-transition-unless-all-cancelled`; + } + } + } + if (options.checkFulfillmentStates !== false) { + if (toState === 'PartiallyShipped') { + const orderWithFulfillments = await findOrderWithFulfillments(ctx, order.id); + if (!orderItemsArePartiallyShipped(orderWithFulfillments)) { + return `message.cannot-transition-unless-some-order-items-shipped`; + } + } + if (toState === 'Shipped') { + const orderWithFulfillments = await findOrderWithFulfillments(ctx, order.id); + if (!orderItemsAreShipped(orderWithFulfillments)) { + return `message.cannot-transition-unless-all-order-items-shipped`; + } + } + if (toState === 'PartiallyDelivered') { + const orderWithFulfillments = await findOrderWithFulfillments(ctx, order.id); + if (!orderItemsArePartiallyDelivered(orderWithFulfillments)) { + return `message.cannot-transition-unless-some-order-items-delivered`; + } + } + if (toState === 'Delivered') { + const orderWithFulfillments = await findOrderWithFulfillments(ctx, order.id); + if (!orderItemsAreDelivered(orderWithFulfillments)) { + return `message.cannot-transition-unless-all-order-items-delivered`; + } + } + } + }, + async onTransitionEnd(fromState, toState, data) { + const { ctx, order } = data; + const { stockAllocationStrategy, orderPlacedStrategy } = configService.orderOptions; + if (order.active) { + const shouldSetAsPlaced = orderPlacedStrategy.shouldSetAsPlaced( + ctx, + fromState, + toState, + order, + ); + if (shouldSetAsPlaced) { + order.active = false; + order.orderPlacedAt = new Date(); + eventBus.publish(new OrderPlacedEvent(fromState, toState, ctx, order)); + } + } + const shouldAllocateStock = await stockAllocationStrategy.shouldAllocateStock( + ctx, + fromState, + toState, + order, + ); + if (shouldAllocateStock) { + await stockMovementService.createAllocationsForOrder(ctx, order); + } + if (toState === 'Cancelled') { + order.active = false; + } + await historyService.createHistoryEntryForOrder({ + orderId: order.id, + type: HistoryEntryType.ORDER_STATE_TRANSITION, + ctx, + data: { + from: fromState, + to: toState, + }, + }); + }, + }; + + async function findOrderWithFulfillments(ctx: RequestContext, id: ID): Promise { + return await connection.getEntityOrThrow(ctx, Order, id, { + relations: ['lines', 'lines.items', 'lines.items.fulfillments'], + }); + } + + return orderProcess; +} + +/** + * @description + * This is the built-in {@link OrderProcess} that ships with Vendure. + * + * @docsCategory Orders + * @docsPage OrderProcess + * @since 2.0.0 + */ +export const defaultOrderProcess = configureDefaultOrderProcess({}); diff --git a/packages/core/src/config/order/custom-order-process.ts b/packages/core/src/config/order/order-process.ts similarity index 62% rename from packages/core/src/config/order/custom-order-process.ts rename to packages/core/src/config/order/order-process.ts index c146ce2ba3..52b03dca10 100644 --- a/packages/core/src/config/order/custom-order-process.ts +++ b/packages/core/src/config/order/order-process.ts @@ -14,16 +14,29 @@ import { /** * @description - * Used to define extensions to or modifications of the default order process. + * An OrderProcess is used to define the way the order process works as in: what states an Order can be + * in, and how it may transition from one state to another. Using the `onTransitionStart()` hook, an + * OrderProcess can perform checks before allowing a state transition to occur, and the `onTransitionEnd()` + * hook allows logic to be executed after a state change. * * For detailed description of the interface members, see the {@link StateMachineConfig} docs. * * @docsCategory orders + * @docsPage OrderProcess + * @docsWeight 0 */ -export interface CustomOrderProcess - extends InjectableStrategy { +export interface OrderProcess extends InjectableStrategy { transitions?: Transitions & Partial>; onTransitionStart?: OnTransitionStartFn; onTransitionEnd?: OnTransitionEndFn; onTransitionError?: OnTransitionErrorFn; } + +/** + * @description + * Used to define extensions to or modifications of the default order process. + * + * @deprecated Use OrderProcess + */ +export interface CustomOrderProcess + extends OrderProcess {} diff --git a/packages/core/src/config/vendure-config.ts b/packages/core/src/config/vendure-config.ts index 254736243b..3b92f3b7ef 100644 --- a/packages/core/src/config/vendure-config.ts +++ b/packages/core/src/config/vendure-config.ts @@ -28,12 +28,12 @@ import { JobQueueStrategy } from './job-queue/job-queue-strategy'; import { VendureLogger } from './logger/vendure-logger'; import { ActiveOrderStrategy } from './order/active-order-strategy'; import { ChangedPriceHandlingStrategy } from './order/changed-price-handling-strategy'; -import { CustomOrderProcess } from './order/custom-order-process'; import { OrderByCodeAccessStrategy } from './order/order-by-code-access-strategy'; import { OrderCodeStrategy } from './order/order-code-strategy'; import { OrderItemPriceCalculationStrategy } from './order/order-item-price-calculation-strategy'; import { OrderMergeStrategy } from './order/order-merge-strategy'; import { OrderPlacedStrategy } from './order/order-placed-strategy'; +import { OrderProcess } from './order/order-process'; import { OrderSellerStrategy } from './order/order-seller-strategy'; import { StockAllocationStrategy } from './order/stock-allocation-strategy'; import { CustomPaymentProcess } from './payment/custom-payment-process'; @@ -490,11 +490,11 @@ export interface OrderOptions { /** * @description * Allows the definition of custom states and transition logic for the order process state machine. - * Takes an array of objects implementing the {@link CustomOrderProcess} interface. + * Takes an array of objects implementing the {@link OrderProcess} interface. * * @default [] */ - process?: Array>; + process?: Array>; /** * @description * Determines the point of the order process at which stock gets allocated. diff --git a/packages/core/src/entity/order/aggregate-order.entity.ts b/packages/core/src/entity/order/aggregate-order.entity.ts deleted file mode 100644 index a5f8b22094..0000000000 --- a/packages/core/src/entity/order/aggregate-order.entity.ts +++ /dev/null @@ -1,15 +0,0 @@ -import { DeepPartial } from '@vendure/common/lib/shared-types'; -import { ChildEntity, OneToMany } from 'typeorm'; - -import { Order } from './order.entity'; -import { SellerOrder } from './seller-order.entity'; - -@ChildEntity() -export class AggregateOrder extends Order { - constructor(input?: DeepPartial) { - super(input); - } - - @OneToMany(type => SellerOrder, sellerOrder => sellerOrder.aggregateOrder) - sellerOrders: SellerOrder[]; -} diff --git a/packages/core/src/entity/order/seller-order.entity.ts b/packages/core/src/entity/order/seller-order.entity.ts deleted file mode 100644 index afd541a7b2..0000000000 --- a/packages/core/src/entity/order/seller-order.entity.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { DeepPartial } from '@vendure/common/lib/shared-types'; -import { ChildEntity, ManyToOne } from 'typeorm'; - -import { AggregateOrder } from './aggregate-order.entity'; -import { Order } from './order.entity'; - -@ChildEntity() -export class SellerOrder extends Order { - constructor(input?: DeepPartial) { - super(input); - } - @ManyToOne(type => AggregateOrder, aggregateOrder => aggregateOrder.sellerOrders) - aggregateOrder: AggregateOrder; -} diff --git a/packages/core/src/service/helpers/order-state-machine/order-state-machine.ts b/packages/core/src/service/helpers/order-state-machine/order-state-machine.ts index b4a4149a5d..5f51d462e4 100644 --- a/packages/core/src/service/helpers/order-state-machine/order-state-machine.ts +++ b/packages/core/src/service/helpers/order-state-machine/order-state-machine.ts @@ -1,7 +1,4 @@ import { Injectable } from '@nestjs/common'; -import { HistoryEntryType } from '@vendure/common/lib/generated-types'; -import { ID } from '@vendure/common/lib/shared-types'; -import { unique } from '@vendure/common/lib/unique'; import { RequestContext } from '../../../api/common/request-context'; import { IllegalOperationError } from '../../../common/error/errors'; @@ -11,28 +8,16 @@ import { StateMachineConfig, Transitions } from '../../../common/finite-state-ma import { validateTransitionDefinition } from '../../../common/finite-state-machine/validate-transition-definition'; import { awaitPromiseOrObservable } from '../../../common/utils'; import { ConfigService } from '../../../config/config.service'; +import { OrderProcess } from '../../../config/index'; import { TransactionalConnection } from '../../../connection/transactional-connection'; -import { OrderModification } from '../../../entity/order-modification/order-modification.entity'; import { Order } from '../../../entity/order/order.entity'; -import { Payment } from '../../../entity/payment/payment.entity'; -import { ProductVariant } from '../../../entity/product-variant/product-variant.entity'; -import { OrderPlacedEvent } from '../../../event-bus/events/order-placed-event'; import { EventBus } from '../../../event-bus/index'; import { HistoryService } from '../../services/history.service'; import { ProductVariantService } from '../../services/product-variant.service'; import { PromotionService } from '../../services/promotion.service'; import { StockMovementService } from '../../services/stock-movement.service'; -import { - orderItemsAreAllCancelled, - orderItemsAreDelivered, - orderItemsArePartiallyDelivered, - orderItemsArePartiallyShipped, - orderItemsAreShipped, - orderTotalIsCovered, - totalCoveredByPayments, -} from '../utils/order-utils'; -import { OrderState, orderStateTransitions, OrderTransitionData } from './order-state'; +import { OrderState, OrderTransitionData } from './order-state'; @Injectable() export class OrderStateMachine { @@ -70,170 +55,14 @@ export class OrderStateMachine { order.state = fsm.currentState; } - private async findOrderWithFulfillments(ctx: RequestContext, id: ID): Promise { - return await this.connection.getEntityOrThrow(ctx, Order, id, { - relations: ['lines', 'lines.items', 'lines.items.fulfillments'], - }); - } - - /** - * Specific business logic to be executed on Order state transitions. - */ - private async onTransitionStart(fromState: OrderState, toState: OrderState, data: OrderTransitionData) { - if (fromState === 'Modifying') { - const modifications = await this.connection - .getRepository(data.ctx, OrderModification) - .find({ where: { order: data.order }, relations: ['refund', 'payment'] }); - if (toState === 'ArrangingAdditionalPayment') { - if (0 < modifications.length && modifications.every(modification => modification.isSettled)) { - return `message.cannot-transition-no-additional-payments-needed`; - } - } else { - if (modifications.some(modification => !modification.isSettled)) { - return `message.cannot-transition-without-modification-payment`; - } - } - } - if (fromState === 'ArrangingAdditionalPayment') { - if (toState === 'Cancelled') { - return; - } - const existingPayments = await this.connection.getRepository(data.ctx, Payment).find({ - relations: ['refunds'], - where: { - order: { id: data.order.id }, - }, - }); - data.order.payments = existingPayments; - const deficit = data.order.totalWithTax - totalCoveredByPayments(data.order); - if (0 < deficit) { - return `message.cannot-transition-from-arranging-additional-payment`; - } - } - if (fromState === 'AddingItems' && toState !== 'Cancelled' && data.order.lines.length > 0) { - const variantIds = unique(data.order.lines.map(l => l.productVariant.id)); - const qb = this.connection - .getRepository(data.ctx, ProductVariant) - .createQueryBuilder('variant') - .leftJoin('variant.product', 'product') - .where('variant.deletedAt IS NULL') - .andWhere('product.deletedAt IS NULL') - .andWhere('variant.id IN (:...variantIds)', { variantIds }); - const availableVariants = await qb.getMany(); - if (availableVariants.length !== variantIds.length) { - return `message.cannot-transition-order-contains-products-which-are-unavailable`; - } - } - if (toState === 'ArrangingPayment') { - if (data.order.lines.length === 0) { - return `message.cannot-transition-to-payment-when-order-is-empty`; - } - if (!data.order.customer) { - return `message.cannot-transition-to-payment-without-customer`; - } - if (!data.order.shippingLines || data.order.shippingLines.length === 0) { - return `message.cannot-transition-to-payment-without-shipping-method`; - } - const variantsWithInsufficientSaleableStock: ProductVariant[] = []; - for (const line of data.order.lines) { - const availableStock = await this.productVariantService.getSaleableStockLevel( - data.ctx, - line.productVariant, - ); - if (line.quantity > availableStock) { - variantsWithInsufficientSaleableStock.push(line.productVariant); - } - } - if (variantsWithInsufficientSaleableStock.length) { - return data.ctx.translate('message.cannot-transition-to-payment-due-to-insufficient-stock', { - productVariantNames: variantsWithInsufficientSaleableStock.map(v => v.name).join(', '), - }); - } - } - if (toState === 'PaymentAuthorized') { - const hasAnAuthorizedPayment = !!data.order.payments.find(p => p.state === 'Authorized'); - if (!orderTotalIsCovered(data.order, ['Authorized', 'Settled']) || !hasAnAuthorizedPayment) { - return `message.cannot-transition-without-authorized-payments`; - } - } - if (toState === 'PaymentSettled' && !orderTotalIsCovered(data.order, 'Settled')) { - return `message.cannot-transition-without-settled-payments`; - } - if (toState === 'Cancelled' && fromState !== 'AddingItems' && fromState !== 'ArrangingPayment') { - if (!orderItemsAreAllCancelled(data.order)) { - return `message.cannot-transition-unless-all-cancelled`; - } - } - if (toState === 'PartiallyShipped') { - const orderWithFulfillments = await this.findOrderWithFulfillments(data.ctx, data.order.id); - if (!orderItemsArePartiallyShipped(orderWithFulfillments)) { - return `message.cannot-transition-unless-some-order-items-shipped`; - } - } - if (toState === 'Shipped') { - const orderWithFulfillments = await this.findOrderWithFulfillments(data.ctx, data.order.id); - if (!orderItemsAreShipped(orderWithFulfillments)) { - return `message.cannot-transition-unless-all-order-items-shipped`; - } - } - if (toState === 'PartiallyDelivered') { - const orderWithFulfillments = await this.findOrderWithFulfillments(data.ctx, data.order.id); - if (!orderItemsArePartiallyDelivered(orderWithFulfillments)) { - return `message.cannot-transition-unless-some-order-items-delivered`; - } - } - if (toState === 'Delivered') { - const orderWithFulfillments = await this.findOrderWithFulfillments(data.ctx, data.order.id); - if (!orderItemsAreDelivered(orderWithFulfillments)) { - return `message.cannot-transition-unless-all-order-items-delivered`; - } - } - } - - /** - * Specific business logic to be executed after Order state transition completes. - */ - private async onTransitionEnd(fromState: OrderState, toState: OrderState, data: OrderTransitionData) { - const { ctx, order } = data; - const { stockAllocationStrategy, orderPlacedStrategy } = this.configService.orderOptions; - if (order.active) { - const shouldSetAsPlaced = orderPlacedStrategy.shouldSetAsPlaced(ctx, fromState, toState, order); - if (shouldSetAsPlaced) { - order.active = false; - order.orderPlacedAt = new Date(); - this.eventBus.publish(new OrderPlacedEvent(fromState, toState, ctx, order)); - } - } - const shouldAllocateStock = await stockAllocationStrategy.shouldAllocateStock( - ctx, - fromState, - toState, - order, - ); - if (shouldAllocateStock) { - await this.stockMovementService.createAllocationsForOrder(ctx, order); - } - if (toState === 'Cancelled') { - order.active = false; - } - await this.historyService.createHistoryEntryForOrder({ - orderId: order.id, - type: HistoryEntryType.ORDER_STATE_TRANSITION, - ctx, - data: { - from: fromState, - to: toState, - }, - }); - } - private initConfig(): StateMachineConfig { - const customProcesses = this.configService.orderOptions.process ?? []; + const orderProcesses = this.configService.orderOptions.process ?? []; - const allTransitions = customProcesses.reduce( + const emptyProcess: OrderProcess = { transitions: {} }; + const allTransitions = orderProcesses.reduce( (transitions, process) => mergeTransitionDefinitions(transitions, process.transitions as Transitions), - orderStateTransitions, + {} as Transitions, ); const validationResult = validateTransitionDefinition(allTransitions, 'AddingItems'); @@ -241,7 +70,7 @@ export class OrderStateMachine { return { transitions: allTransitions, onTransitionStart: async (fromState, toState, data) => { - for (const process of customProcesses) { + for (const process of orderProcesses) { if (typeof process.onTransitionStart === 'function') { const result = await awaitPromiseOrObservable( process.onTransitionStart(fromState, toState, data), @@ -251,18 +80,16 @@ export class OrderStateMachine { } } } - return this.onTransitionStart(fromState, toState, data); }, onTransitionEnd: async (fromState, toState, data) => { - for (const process of customProcesses) { + for (const process of orderProcesses) { if (typeof process.onTransitionEnd === 'function') { await awaitPromiseOrObservable(process.onTransitionEnd(fromState, toState, data)); } } - await this.onTransitionEnd(fromState, toState, data); }, onError: async (fromState, toState, message) => { - for (const process of customProcesses) { + for (const process of orderProcesses) { if (typeof process.onTransitionError === 'function') { await awaitPromiseOrObservable( process.onTransitionError(fromState, toState, message), diff --git a/packages/core/src/service/helpers/order-state-machine/order-state.ts b/packages/core/src/service/helpers/order-state-machine/order-state.ts index 181db9bcd9..121272c3aa 100644 --- a/packages/core/src/service/helpers/order-state-machine/order-state.ts +++ b/packages/core/src/service/helpers/order-state-machine/order-state.ts @@ -7,96 +7,43 @@ import { Order } from '../../../entity/order/order.entity'; * An interface to extend standard {@link OrderState}. * * @docsCategory orders + * @deprecated use OrderStates */ export interface CustomOrderStates {} +/** + * @description + * An interface to extend the {@link OrderState} type. + * + * @docsCategory orders + * @docsPage OrderProcess + * @since 2.0.0 + */ +export interface OrderStates {} + /** * @description * These are the default states of the Order process. They can be augmented and * modified by using the {@link OrderOptions} `process` property. * * @docsCategory orders + * @docsPage OrderProcess */ export type OrderState = | 'Created' | 'Draft' | 'AddingItems' - | 'ArrangingPayment' - | 'PaymentAuthorized' - | 'PaymentSettled' - | 'PartiallyShipped' - | 'Shipped' - | 'PartiallyDelivered' - | 'Delivered' - | 'Modifying' - | 'ArrangingAdditionalPayment' | 'Cancelled' - | keyof CustomOrderStates; - -export const orderStateTransitions: Transitions = { - Created: { - to: ['AddingItems', 'Draft'], - }, - Draft: { - to: ['Cancelled', 'ArrangingPayment'], - }, - AddingItems: { - to: ['ArrangingPayment', 'Cancelled'], - }, - ArrangingPayment: { - to: ['PaymentAuthorized', 'PaymentSettled', 'AddingItems', 'Cancelled'], - }, - PaymentAuthorized: { - to: ['PaymentSettled', 'Cancelled', 'Modifying', 'ArrangingAdditionalPayment'], - }, - PaymentSettled: { - to: [ - 'PartiallyDelivered', - 'Delivered', - 'PartiallyShipped', - 'Shipped', - 'Cancelled', - 'Modifying', - 'ArrangingAdditionalPayment', - ], - }, - PartiallyShipped: { - to: ['Shipped', 'PartiallyDelivered', 'Cancelled', 'Modifying'], - }, - Shipped: { - to: ['PartiallyDelivered', 'Delivered', 'Cancelled', 'Modifying'], - }, - PartiallyDelivered: { - to: ['Delivered', 'Cancelled', 'Modifying'], - }, - Delivered: { - to: ['Cancelled'], - }, - Modifying: { - to: [ - 'PaymentAuthorized', - 'PaymentSettled', - 'PartiallyShipped', - 'Shipped', - 'PartiallyDelivered', - 'ArrangingAdditionalPayment', - ], - }, - ArrangingAdditionalPayment: { - to: [ - 'PaymentAuthorized', - 'PaymentSettled', - 'PartiallyShipped', - 'Shipped', - 'PartiallyDelivered', - 'Cancelled', - ], - }, - Cancelled: { - to: [], - }, -}; + | keyof CustomOrderStates + | keyof OrderStates; +/** + * @description + * This is the object passed to the {@link OrderProcess} state transition hooks. + * + * @docsCategory orders + * @docsPage OrderProcess + */ export interface OrderTransitionData { ctx: RequestContext; order: Order; diff --git a/packages/core/src/service/index.ts b/packages/core/src/service/index.ts index b12352efa6..165756d9ec 100644 --- a/packages/core/src/service/index.ts +++ b/packages/core/src/service/index.ts @@ -21,6 +21,7 @@ export * from './helpers/translatable-saver/translatable-saver'; export * from './helpers/translator/translator.service'; export * from './helpers/utils/patch-entity'; export * from './helpers/utils/translate-entity'; +export * from './helpers/utils/order-utils'; export * from './helpers/verification-token-generator/verification-token-generator'; export * from './services/administrator.service'; export * from './services/asset.service';