From 61ac0418c488ceffc3a4b17df8fc40fa8d7f89e3 Mon Sep 17 00:00:00 2001 From: Michael Bromley Date: Mon, 13 Feb 2023 15:41:18 +0100 Subject: [PATCH] feat(core): Implement MoneyStrategy Relates to #1835. BREAKING CHANGE: The introduction of the new MoneyStrategy includes a new GraphQL `Money` scalar, which replaces `Int` used in v1.x. In practice, this is still a `number` type and should not break any client applications. One point to note is that `Money` is based on the `Float` scalar and therefore can represent decimal values, allowing fractions of cents to be represented. --- .../core/src/common/introspection-result.ts | 538 +- .../src/lib/core/src/data/data.module.ts | 2 + ...generated-e2e-asset-server-plugin-types.ts | 7542 ++++----- packages/common/src/generated-shop-types.ts | 4765 +++--- .../fixtures/e2e-products-money-handling.csv | 3 + .../e2e/graphql/generated-e2e-admin-types.ts | 13307 ++++++---------- .../e2e/graphql/generated-e2e-shop-types.ts | 5871 +++---- packages/core/e2e/graphql/shop-definitions.ts | 2 + packages/core/e2e/money-strategy.e2e-spec.ts | 135 + .../core/e2e/order-modification.e2e-spec.ts | 1 - packages/core/e2e/order-promotion.e2e-spec.ts | 4 +- packages/core/e2e/product-channel.e2e-spec.ts | 16 +- packages/core/src/api/common/id-codec.ts | 2 +- .../src/api/config/generate-list-options.ts | 3 +- .../core/src/api/config/generate-resolvers.ts | 7 +- packages/core/src/api/config/money-scalar.ts | 68 + .../schema/admin-api/order-admin.type.graphql | 2 +- .../api/schema/admin-api/order.api.graphql | 6 +- .../api/schema/admin-api/product.api.graphql | 4 +- .../admin-api/shipping-method.api.graphql | 4 +- .../api/schema/common/common-types.graphql | 9 +- .../src/api/schema/common/order.type.graphql | 86 +- .../schema/common/product-search.type.graphql | 6 +- .../api/schema/common/product.type.graphql | 4 +- packages/core/src/bootstrap.ts | 3 + packages/core/src/common/round-money.ts | 11 + packages/core/src/common/tax-utils.ts | 4 +- ...variant-price-calculation-strategy.spec.ts | 7 +- ...duct-variant-price-calculation-strategy.ts | 3 +- .../core/src/config/config.service.mock.ts | 2 +- packages/core/src/config/config.service.ts | 2 +- packages/core/src/config/default-config.ts | 4 +- .../auto-increment-id-strategy.ts | 0 .../base64-id-strategy.ts | 0 .../config/entity/bigint-money-strategy.ts | 44 + .../config/entity/default-money-strategy.ts | 23 + .../entity-id-strategy.ts | 0 .../core/src/config/entity/money-strategy.ts | 64 + .../uuid-id-strategy.ts | 0 packages/core/src/config/index.ts | 9 +- packages/core/src/config/vendure-config.ts | 11 +- packages/core/src/entity/money.decorator.ts | 51 + .../entity/order-line/order-line.entity.ts | 167 +- .../order-modification.entity.ts | 3 +- .../core/src/entity/order/order.entity.ts | 9 +- .../core/src/entity/payment/payment.entity.ts | 3 +- .../product-variant-price.entity.ts | 3 +- .../product-variant/product-variant.entity.ts | 15 +- .../src/entity/promotion/promotion.entity.ts | 7 +- .../core/src/entity/refund/refund.entity.ts | 9 +- .../core/src/entity/set-entity-id-strategy.ts | 2 +- .../core/src/entity/set-money-strategy.ts | 19 + .../shipping-line/shipping-line.entity.ts | 28 +- .../shipping-method/shipping-method.entity.ts | 6 +- .../src/entity/surcharge/surcharge.entity.ts | 3 +- .../entities/search-index-item.entity.ts | 5 +- .../order-calculator/order-calculator.spec.ts | 46 +- .../services/product-variant.service.ts | 3 +- packages/dev-server/dev-config.ts | 8 +- ...enerated-e2e-elasticsearch-plugin-types.ts | 7617 ++++----- .../e2e/graphql/generated-admin-types.ts | 7629 ++++----- .../e2e/graphql/generated-shop-types.ts | 4983 +++--- .../mollie/graphql/generated-shop-types.ts | 4819 +++--- 63 files changed, 26851 insertions(+), 31158 deletions(-) create mode 100644 packages/core/e2e/fixtures/e2e-products-money-handling.csv create mode 100644 packages/core/e2e/money-strategy.e2e-spec.ts create mode 100644 packages/core/src/api/config/money-scalar.ts create mode 100644 packages/core/src/common/round-money.ts rename packages/core/src/config/{entity-id-strategy => entity}/auto-increment-id-strategy.ts (100%) rename packages/core/src/config/{entity-id-strategy => entity}/base64-id-strategy.ts (100%) create mode 100644 packages/core/src/config/entity/bigint-money-strategy.ts create mode 100644 packages/core/src/config/entity/default-money-strategy.ts rename packages/core/src/config/{entity-id-strategy => entity}/entity-id-strategy.ts (100%) create mode 100644 packages/core/src/config/entity/money-strategy.ts rename packages/core/src/config/{entity-id-strategy => entity}/uuid-id-strategy.ts (100%) create mode 100644 packages/core/src/entity/money.decorator.ts create mode 100644 packages/core/src/entity/set-money-strategy.ts diff --git a/packages/admin-ui/src/lib/core/src/common/introspection-result.ts b/packages/admin-ui/src/lib/core/src/common/introspection-result.ts index 61236004d5..7ae74920ac 100644 --- a/packages/admin-ui/src/lib/core/src/common/introspection-result.ts +++ b/packages/admin-ui/src/lib/core/src/common/introspection-result.ts @@ -1,232 +1,312 @@ // tslint:disable -export interface PossibleTypesResultData { - possibleTypes: { - [key: string]: string[]; - }; -} -const result: PossibleTypesResultData = { - possibleTypes: { - AddFulfillmentToOrderResult: [ - 'CreateFulfillmentError', - 'EmptyOrderLineSelectionError', - 'Fulfillment', - 'FulfillmentStateTransitionError', - 'InsufficientStockOnHandError', - 'InvalidFulfillmentHandlerError', - 'ItemsAlreadyFulfilledError', - ], - AddManualPaymentToOrderResult: ['ManualPaymentStateError', 'Order'], - ApplyCouponCodeResult: [ - 'CouponCodeExpiredError', - 'CouponCodeInvalidError', - 'CouponCodeLimitError', - 'Order', - ], - AuthenticationResult: ['CurrentUser', 'InvalidCredentialsError'], - CancelOrderResult: [ - 'CancelActiveOrderError', - 'EmptyOrderLineSelectionError', - 'MultipleOrderError', - 'Order', - 'OrderStateTransitionError', - 'QuantityTooGreatError', - ], - CancelPaymentResult: ['CancelPaymentError', 'Payment', 'PaymentStateTransitionError'], - CreateAssetResult: ['Asset', 'MimeTypeError'], - CreateChannelResult: ['Channel', 'LanguageNotAvailableError'], - CreateCustomerResult: ['Customer', 'EmailAddressConflictError'], - CreatePromotionResult: ['MissingConditionsError', 'Promotion'], - CustomField: [ - 'BooleanCustomFieldConfig', - 'DateTimeCustomFieldConfig', - 'FloatCustomFieldConfig', - 'IntCustomFieldConfig', - 'LocaleStringCustomFieldConfig', - 'RelationCustomFieldConfig', - 'StringCustomFieldConfig', - 'TextCustomFieldConfig', - ], - CustomFieldConfig: [ - 'BooleanCustomFieldConfig', - 'DateTimeCustomFieldConfig', - 'FloatCustomFieldConfig', - 'IntCustomFieldConfig', - 'LocaleStringCustomFieldConfig', - 'RelationCustomFieldConfig', - 'StringCustomFieldConfig', - 'TextCustomFieldConfig', - ], - ErrorResult: [ - 'AlreadyRefundedError', - 'CancelActiveOrderError', - 'CancelPaymentError', - 'ChannelDefaultLanguageError', - 'CouponCodeExpiredError', - 'CouponCodeInvalidError', - 'CouponCodeLimitError', - 'CreateFulfillmentError', - 'EmailAddressConflictError', - 'EmptyOrderLineSelectionError', - 'FacetInUseError', - 'FulfillmentStateTransitionError', - 'IneligibleShippingMethodError', - 'InsufficientStockError', - 'InsufficientStockOnHandError', - 'InvalidCredentialsError', - 'InvalidFulfillmentHandlerError', - 'ItemsAlreadyFulfilledError', - 'LanguageNotAvailableError', - 'ManualPaymentStateError', - 'MimeTypeError', - 'MissingConditionsError', - 'MultipleOrderError', - 'NativeAuthStrategyError', - 'NegativeQuantityError', - 'NoActiveOrderError', - 'NoChangesSpecifiedError', - 'NothingToRefundError', - 'OrderLimitError', - 'OrderModificationError', - 'OrderModificationStateError', - 'OrderStateTransitionError', - 'PaymentMethodMissingError', - 'PaymentOrderMismatchError', - 'PaymentStateTransitionError', - 'ProductOptionInUseError', - 'QuantityTooGreatError', - 'RefundOrderStateError', - 'RefundPaymentIdMissingError', - 'RefundStateTransitionError', - 'SettlePaymentError', - ], - ModifyOrderResult: [ - 'CouponCodeExpiredError', - 'CouponCodeInvalidError', - 'CouponCodeLimitError', - 'InsufficientStockError', - 'NegativeQuantityError', - 'NoChangesSpecifiedError', - 'Order', - 'OrderLimitError', - 'OrderModificationStateError', - 'PaymentMethodMissingError', - 'RefundPaymentIdMissingError', - ], - NativeAuthenticationResult: ['CurrentUser', 'InvalidCredentialsError', 'NativeAuthStrategyError'], - Node: [ - 'Address', - 'Administrator', - 'Allocation', - 'Asset', - 'AuthenticationMethod', - 'Cancellation', - 'Channel', - 'Collection', - 'Country', - 'Customer', - 'CustomerGroup', - 'Facet', - 'FacetValue', - 'Fulfillment', - 'HistoryEntry', - 'Job', - 'Order', - 'OrderItem', - 'OrderLine', - 'OrderModification', - 'Payment', - 'PaymentMethod', - 'Product', - 'ProductOption', - 'ProductOptionGroup', - 'ProductVariant', - 'Promotion', - 'Refund', - 'Release', - 'Return', - 'Role', - 'Sale', - 'Seller', - 'ShippingMethod', - 'StockAdjustment', - 'StockLevel', - 'StockLocation', - 'Surcharge', - 'Tag', - 'TaxCategory', - 'TaxRate', - 'User', - 'Zone', - ], - PaginatedList: [ - 'AdministratorList', - 'AssetList', - 'CollectionList', - 'CountryList', - 'CustomerGroupList', - 'CustomerList', - 'FacetList', - 'FacetValueList', - 'HistoryEntryList', - 'JobList', - 'OrderList', - 'PaymentMethodList', - 'ProductList', - 'ProductVariantList', - 'PromotionList', - 'RoleList', - 'SellerList', - 'ShippingMethodList', - 'StockLocationList', - 'TagList', - 'TaxRateList', - ], - RefundOrderResult: [ - 'AlreadyRefundedError', - 'MultipleOrderError', - 'NothingToRefundError', - 'OrderStateTransitionError', - 'PaymentOrderMismatchError', - 'QuantityTooGreatError', - 'Refund', - 'RefundOrderStateError', - 'RefundStateTransitionError', - ], - RemoveFacetFromChannelResult: ['Facet', 'FacetInUseError'], - RemoveOptionGroupFromProductResult: ['Product', 'ProductOptionInUseError'], - RemoveOrderItemsResult: ['Order', 'OrderModificationError'], - SearchResultPrice: ['PriceRange', 'SinglePrice'], - SetCustomerForDraftOrderResult: ['EmailAddressConflictError', 'Order'], - SetOrderShippingMethodResult: [ - 'IneligibleShippingMethodError', - 'NoActiveOrderError', - 'Order', - 'OrderModificationError', - ], - SettlePaymentResult: [ - 'OrderStateTransitionError', - 'Payment', - 'PaymentStateTransitionError', - 'SettlePaymentError', - ], - SettleRefundResult: ['Refund', 'RefundStateTransitionError'], - StockMovement: ['Allocation', 'Cancellation', 'Release', 'Return', 'Sale', 'StockAdjustment'], - StockMovementItem: ['Allocation', 'Cancellation', 'Release', 'Return', 'Sale', 'StockAdjustment'], - TransitionFulfillmentToStateResult: ['Fulfillment', 'FulfillmentStateTransitionError'], - TransitionOrderToStateResult: ['Order', 'OrderStateTransitionError'], - TransitionPaymentToStateResult: ['Payment', 'PaymentStateTransitionError'], - UpdateChannelResult: ['Channel', 'LanguageNotAvailableError'], - UpdateCustomerResult: ['Customer', 'EmailAddressConflictError'], - UpdateGlobalSettingsResult: ['ChannelDefaultLanguageError', 'GlobalSettings'], - UpdateOrderItemsResult: [ - 'InsufficientStockError', - 'NegativeQuantityError', - 'Order', - 'OrderLimitError', - 'OrderModificationError', - ], - UpdatePromotionResult: ['MissingConditionsError', 'Promotion'], - }, + export interface PossibleTypesResultData { + possibleTypes: { + [key: string]: string[] + } + } + const result: PossibleTypesResultData = { + "possibleTypes": { + "AddFulfillmentToOrderResult": [ + "CreateFulfillmentError", + "EmptyOrderLineSelectionError", + "Fulfillment", + "FulfillmentStateTransitionError", + "InsufficientStockOnHandError", + "InvalidFulfillmentHandlerError", + "ItemsAlreadyFulfilledError" + ], + "AddManualPaymentToOrderResult": [ + "ManualPaymentStateError", + "Order" + ], + "ApplyCouponCodeResult": [ + "CouponCodeExpiredError", + "CouponCodeInvalidError", + "CouponCodeLimitError", + "Order" + ], + "AuthenticationResult": [ + "CurrentUser", + "InvalidCredentialsError" + ], + "CancelOrderResult": [ + "CancelActiveOrderError", + "EmptyOrderLineSelectionError", + "MultipleOrderError", + "Order", + "OrderStateTransitionError", + "QuantityTooGreatError" + ], + "CancelPaymentResult": [ + "CancelPaymentError", + "Payment", + "PaymentStateTransitionError" + ], + "CreateAssetResult": [ + "Asset", + "MimeTypeError" + ], + "CreateChannelResult": [ + "Channel", + "LanguageNotAvailableError" + ], + "CreateCustomerResult": [ + "Customer", + "EmailAddressConflictError" + ], + "CreatePromotionResult": [ + "MissingConditionsError", + "Promotion" + ], + "CustomField": [ + "BooleanCustomFieldConfig", + "DateTimeCustomFieldConfig", + "FloatCustomFieldConfig", + "IntCustomFieldConfig", + "LocaleStringCustomFieldConfig", + "RelationCustomFieldConfig", + "StringCustomFieldConfig", + "TextCustomFieldConfig" + ], + "CustomFieldConfig": [ + "BooleanCustomFieldConfig", + "DateTimeCustomFieldConfig", + "FloatCustomFieldConfig", + "IntCustomFieldConfig", + "LocaleStringCustomFieldConfig", + "RelationCustomFieldConfig", + "StringCustomFieldConfig", + "TextCustomFieldConfig" + ], + "ErrorResult": [ + "AlreadyRefundedError", + "CancelActiveOrderError", + "CancelPaymentError", + "ChannelDefaultLanguageError", + "CouponCodeExpiredError", + "CouponCodeInvalidError", + "CouponCodeLimitError", + "CreateFulfillmentError", + "EmailAddressConflictError", + "EmptyOrderLineSelectionError", + "FacetInUseError", + "FulfillmentStateTransitionError", + "IneligibleShippingMethodError", + "InsufficientStockError", + "InsufficientStockOnHandError", + "InvalidCredentialsError", + "InvalidFulfillmentHandlerError", + "ItemsAlreadyFulfilledError", + "LanguageNotAvailableError", + "ManualPaymentStateError", + "MimeTypeError", + "MissingConditionsError", + "MultipleOrderError", + "NativeAuthStrategyError", + "NegativeQuantityError", + "NoActiveOrderError", + "NoChangesSpecifiedError", + "NothingToRefundError", + "OrderLimitError", + "OrderModificationError", + "OrderModificationStateError", + "OrderStateTransitionError", + "PaymentMethodMissingError", + "PaymentOrderMismatchError", + "PaymentStateTransitionError", + "ProductOptionInUseError", + "QuantityTooGreatError", + "RefundOrderStateError", + "RefundPaymentIdMissingError", + "RefundStateTransitionError", + "SettlePaymentError" + ], + "ModifyOrderResult": [ + "CouponCodeExpiredError", + "CouponCodeInvalidError", + "CouponCodeLimitError", + "InsufficientStockError", + "NegativeQuantityError", + "NoChangesSpecifiedError", + "Order", + "OrderLimitError", + "OrderModificationStateError", + "PaymentMethodMissingError", + "RefundPaymentIdMissingError" + ], + "NativeAuthenticationResult": [ + "CurrentUser", + "InvalidCredentialsError", + "NativeAuthStrategyError" + ], + "Node": [ + "Address", + "Administrator", + "Allocation", + "Asset", + "AuthenticationMethod", + "Cancellation", + "Channel", + "Collection", + "Country", + "Customer", + "CustomerGroup", + "Facet", + "FacetValue", + "Fulfillment", + "HistoryEntry", + "Job", + "Order", + "OrderItem", + "OrderLine", + "OrderModification", + "Payment", + "PaymentMethod", + "Product", + "ProductOption", + "ProductOptionGroup", + "ProductVariant", + "Promotion", + "Refund", + "Release", + "Return", + "Role", + "Sale", + "Seller", + "ShippingMethod", + "StockAdjustment", + "StockLevel", + "StockLocation", + "Surcharge", + "Tag", + "TaxCategory", + "TaxRate", + "User", + "Zone" + ], + "PaginatedList": [ + "AdministratorList", + "AssetList", + "CollectionList", + "CountryList", + "CustomerGroupList", + "CustomerList", + "FacetList", + "FacetValueList", + "HistoryEntryList", + "JobList", + "OrderList", + "PaymentMethodList", + "ProductList", + "ProductVariantList", + "PromotionList", + "RoleList", + "SellerList", + "ShippingMethodList", + "StockLocationList", + "TagList", + "TaxRateList" + ], + "RefundOrderResult": [ + "AlreadyRefundedError", + "MultipleOrderError", + "NothingToRefundError", + "OrderStateTransitionError", + "PaymentOrderMismatchError", + "QuantityTooGreatError", + "Refund", + "RefundOrderStateError", + "RefundStateTransitionError" + ], + "RemoveFacetFromChannelResult": [ + "Facet", + "FacetInUseError" + ], + "RemoveOptionGroupFromProductResult": [ + "Product", + "ProductOptionInUseError" + ], + "RemoveOrderItemsResult": [ + "Order", + "OrderModificationError" + ], + "SearchResultPrice": [ + "PriceRange", + "SinglePrice" + ], + "SetCustomerForDraftOrderResult": [ + "EmailAddressConflictError", + "Order" + ], + "SetOrderShippingMethodResult": [ + "IneligibleShippingMethodError", + "NoActiveOrderError", + "Order", + "OrderModificationError" + ], + "SettlePaymentResult": [ + "OrderStateTransitionError", + "Payment", + "PaymentStateTransitionError", + "SettlePaymentError" + ], + "SettleRefundResult": [ + "Refund", + "RefundStateTransitionError" + ], + "StockMovement": [ + "Allocation", + "Cancellation", + "Release", + "Return", + "Sale", + "StockAdjustment" + ], + "StockMovementItem": [ + "Allocation", + "Cancellation", + "Release", + "Return", + "Sale", + "StockAdjustment" + ], + "TransitionFulfillmentToStateResult": [ + "Fulfillment", + "FulfillmentStateTransitionError" + ], + "TransitionOrderToStateResult": [ + "Order", + "OrderStateTransitionError" + ], + "TransitionPaymentToStateResult": [ + "Payment", + "PaymentStateTransitionError" + ], + "UpdateChannelResult": [ + "Channel", + "LanguageNotAvailableError" + ], + "UpdateCustomerResult": [ + "Customer", + "EmailAddressConflictError" + ], + "UpdateGlobalSettingsResult": [ + "ChannelDefaultLanguageError", + "GlobalSettings" + ], + "UpdateOrderItemsResult": [ + "InsufficientStockError", + "NegativeQuantityError", + "Order", + "OrderLimitError", + "OrderModificationError" + ], + "UpdatePromotionResult": [ + "MissingConditionsError", + "Promotion" + ] + } }; -export default result; + export default result; + \ No newline at end of file diff --git a/packages/admin-ui/src/lib/core/src/data/data.module.ts b/packages/admin-ui/src/lib/core/src/data/data.module.ts index 5cfed8411c..55dcce392b 100644 --- a/packages/admin-ui/src/lib/core/src/data/data.module.ts +++ b/packages/admin-ui/src/lib/core/src/data/data.module.ts @@ -86,6 +86,8 @@ export function createApollo( }; } +// List of all EU countries + /** * The DataModule is responsible for all API calls *and* serves as the source of truth for global app * state via the apollo-link-state package. diff --git a/packages/asset-server-plugin/e2e/graphql/generated-e2e-asset-server-plugin-types.ts b/packages/asset-server-plugin/e2e/graphql/generated-e2e-asset-server-plugin-types.ts index 9ca9ffc43d..dc1f12df9a 100644 --- a/packages/asset-server-plugin/e2e/graphql/generated-e2e-asset-server-plugin-types.ts +++ b/packages/asset-server-plugin/e2e/graphql/generated-e2e-asset-server-plugin-types.ts @@ -6,366 +6,347 @@ export type MakeOptional = Omit & { [SubKey in K]?: export type MakeMaybe = Omit & { [SubKey in K]: Maybe }; /** All built-in and custom scalars, mapped to their actual values */ export type Scalars = { - ID: string; - String: string; - Boolean: boolean; - Int: number; - Float: number; - /** 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 Adjustment = { - adjustmentSource: Scalars['String']; - amount: Scalars['Int']; - data?: Maybe; - description: Scalars['String']; - type: AdjustmentType; + adjustmentSource: Scalars['String']; + amount: Scalars['Int']; + data?: Maybe; + description: Scalars['String']; + type: AdjustmentType; }; export enum AdjustmentType { - DISTRIBUTED_ORDER_PROMOTION = 'DISTRIBUTED_ORDER_PROMOTION', - OTHER = 'OTHER', - PROMOTION = 'PROMOTION', + DISTRIBUTED_ORDER_PROMOTION = 'DISTRIBUTED_ORDER_PROMOTION', + OTHER = 'OTHER', + PROMOTION = 'PROMOTION' } export type Administrator = Node & { - createdAt: Scalars['DateTime']; - customFields?: Maybe; - emailAddress: Scalars['String']; - firstName: Scalars['String']; - id: Scalars['ID']; - lastName: Scalars['String']; - updatedAt: Scalars['DateTime']; - user: User; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + emailAddress: Scalars['String']; + firstName: Scalars['String']; + id: Scalars['ID']; + lastName: Scalars['String']; + updatedAt: Scalars['DateTime']; + user: User; }; export type AdministratorFilterParameter = { - createdAt?: InputMaybe; - emailAddress?: InputMaybe; - firstName?: InputMaybe; - id?: InputMaybe; - lastName?: InputMaybe; - updatedAt?: InputMaybe; + createdAt?: InputMaybe; + emailAddress?: InputMaybe; + firstName?: InputMaybe; + id?: InputMaybe; + lastName?: InputMaybe; + updatedAt?: InputMaybe; }; export type AdministratorList = PaginatedList & { - items: Array; - totalItems: Scalars['Int']; + items: Array; + totalItems: Scalars['Int']; }; export type AdministratorListOptions = { - /** Allows the results to be filtered */ - filter?: InputMaybe; - /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ - filterOperator?: InputMaybe; - /** Skips the first n results, for use in pagination */ - skip?: InputMaybe; - /** Specifies which properties to sort the results by */ - sort?: InputMaybe; - /** Takes n results, for use in pagination */ - take?: InputMaybe; + /** Allows the results to be filtered */ + filter?: InputMaybe; + /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ + filterOperator?: InputMaybe; + /** Skips the first n results, for use in pagination */ + skip?: InputMaybe; + /** Specifies which properties to sort the results by */ + sort?: InputMaybe; + /** Takes n results, for use in pagination */ + take?: InputMaybe; }; export type AdministratorPaymentInput = { - metadata?: InputMaybe; - paymentMethod?: InputMaybe; + metadata?: InputMaybe; + paymentMethod?: InputMaybe; }; export type AdministratorRefundInput = { - paymentId: Scalars['ID']; - reason?: InputMaybe; + paymentId: Scalars['ID']; + reason?: InputMaybe; }; export type AdministratorSortParameter = { - createdAt?: InputMaybe; - emailAddress?: InputMaybe; - firstName?: InputMaybe; - id?: InputMaybe; - lastName?: InputMaybe; - updatedAt?: InputMaybe; -}; - -export type Allocation = Node & - StockMovement & { - createdAt: Scalars['DateTime']; - id: Scalars['ID']; - orderLine: OrderLine; - productVariant: ProductVariant; - quantity: Scalars['Int']; - type: StockMovementType; - updatedAt: Scalars['DateTime']; - }; + createdAt?: InputMaybe; + emailAddress?: InputMaybe; + firstName?: InputMaybe; + id?: InputMaybe; + lastName?: InputMaybe; + updatedAt?: InputMaybe; +}; + +export type Allocation = Node & StockMovement & { + createdAt: Scalars['DateTime']; + id: Scalars['ID']; + orderLine: OrderLine; + productVariant: ProductVariant; + quantity: Scalars['Int']; + type: StockMovementType; + updatedAt: Scalars['DateTime']; +}; /** Returned if an attempting to refund an OrderItem which has already been refunded */ export type AlreadyRefundedError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; - refundId: Scalars['ID']; + errorCode: ErrorCode; + message: Scalars['String']; + refundId: Scalars['ID']; }; -export type ApplyCouponCodeResult = - | CouponCodeExpiredError - | CouponCodeInvalidError - | CouponCodeLimitError - | Order; +export type ApplyCouponCodeResult = CouponCodeExpiredError | CouponCodeInvalidError | CouponCodeLimitError | Order; export type Asset = Node & { - createdAt: Scalars['DateTime']; - customFields?: Maybe; - fileSize: Scalars['Int']; - focalPoint?: Maybe; - height: Scalars['Int']; - id: Scalars['ID']; - mimeType: Scalars['String']; - name: Scalars['String']; - preview: Scalars['String']; - source: Scalars['String']; - tags: Array; - type: AssetType; - updatedAt: Scalars['DateTime']; - width: Scalars['Int']; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + fileSize: Scalars['Int']; + focalPoint?: Maybe; + height: Scalars['Int']; + id: Scalars['ID']; + mimeType: Scalars['String']; + name: Scalars['String']; + preview: Scalars['String']; + source: Scalars['String']; + tags: Array; + type: AssetType; + updatedAt: Scalars['DateTime']; + width: Scalars['Int']; }; export type AssetFilterParameter = { - createdAt?: InputMaybe; - fileSize?: InputMaybe; - height?: InputMaybe; - id?: InputMaybe; - mimeType?: InputMaybe; - name?: InputMaybe; - preview?: InputMaybe; - source?: InputMaybe; - type?: InputMaybe; - updatedAt?: InputMaybe; - width?: InputMaybe; + createdAt?: InputMaybe; + fileSize?: InputMaybe; + height?: InputMaybe; + id?: InputMaybe; + mimeType?: InputMaybe; + name?: InputMaybe; + preview?: InputMaybe; + source?: InputMaybe; + type?: InputMaybe; + updatedAt?: InputMaybe; + width?: InputMaybe; }; export type AssetList = PaginatedList & { - items: Array; - totalItems: Scalars['Int']; + items: Array; + totalItems: Scalars['Int']; }; export type AssetListOptions = { - /** Allows the results to be filtered */ - filter?: InputMaybe; - /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ - filterOperator?: InputMaybe; - /** Skips the first n results, for use in pagination */ - skip?: InputMaybe; - /** Specifies which properties to sort the results by */ - sort?: InputMaybe; - tags?: InputMaybe>; - tagsOperator?: InputMaybe; - /** Takes n results, for use in pagination */ - take?: InputMaybe; + /** Allows the results to be filtered */ + filter?: InputMaybe; + /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ + filterOperator?: InputMaybe; + /** Skips the first n results, for use in pagination */ + skip?: InputMaybe; + /** Specifies which properties to sort the results by */ + sort?: InputMaybe; + tags?: InputMaybe>; + tagsOperator?: InputMaybe; + /** Takes n results, for use in pagination */ + take?: InputMaybe; }; export type AssetSortParameter = { - createdAt?: InputMaybe; - fileSize?: InputMaybe; - height?: InputMaybe; - id?: InputMaybe; - mimeType?: InputMaybe; - name?: InputMaybe; - preview?: InputMaybe; - source?: InputMaybe; - updatedAt?: InputMaybe; - width?: InputMaybe; + createdAt?: InputMaybe; + fileSize?: InputMaybe; + height?: InputMaybe; + id?: InputMaybe; + mimeType?: InputMaybe; + name?: InputMaybe; + preview?: InputMaybe; + source?: InputMaybe; + updatedAt?: InputMaybe; + width?: InputMaybe; }; export enum AssetType { - BINARY = 'BINARY', - IMAGE = 'IMAGE', - VIDEO = 'VIDEO', + BINARY = 'BINARY', + IMAGE = 'IMAGE', + VIDEO = 'VIDEO' } export type AssignAssetsToChannelInput = { - assetIds: Array; - channelId: Scalars['ID']; + assetIds: Array; + channelId: Scalars['ID']; }; export type AssignCollectionsToChannelInput = { - channelId: Scalars['ID']; - collectionIds: Array; + channelId: Scalars['ID']; + collectionIds: Array; }; export type AssignFacetsToChannelInput = { - channelId: Scalars['ID']; - facetIds: Array; + channelId: Scalars['ID']; + facetIds: Array; }; export type AssignProductVariantsToChannelInput = { - channelId: Scalars['ID']; - priceFactor?: InputMaybe; - productVariantIds: Array; + channelId: Scalars['ID']; + priceFactor?: InputMaybe; + productVariantIds: Array; }; export type AssignProductsToChannelInput = { - channelId: Scalars['ID']; - priceFactor?: InputMaybe; - productIds: Array; + channelId: Scalars['ID']; + priceFactor?: InputMaybe; + productIds: Array; }; export type AssignPromotionsToChannelInput = { - channelId: Scalars['ID']; - promotionIds: Array; + channelId: Scalars['ID']; + promotionIds: Array; }; export type AuthenticationInput = { - native?: InputMaybe; + native?: InputMaybe; }; export type AuthenticationMethod = Node & { - createdAt: Scalars['DateTime']; - id: Scalars['ID']; - strategy: Scalars['String']; - updatedAt: Scalars['DateTime']; + createdAt: Scalars['DateTime']; + id: Scalars['ID']; + strategy: Scalars['String']; + updatedAt: Scalars['DateTime']; }; export type AuthenticationResult = CurrentUser | InvalidCredentialsError; export type BooleanCustomFieldConfig = CustomField & { - description?: Maybe>; - internal?: Maybe; - label?: Maybe>; - list: Scalars['Boolean']; - name: Scalars['String']; - nullable?: Maybe; - readonly?: Maybe; - type: Scalars['String']; - ui?: Maybe; + description?: Maybe>; + internal?: Maybe; + label?: Maybe>; + list: Scalars['Boolean']; + name: Scalars['String']; + nullable?: Maybe; + readonly?: Maybe; + type: Scalars['String']; + ui?: Maybe; }; /** Operators for filtering on a list of Boolean fields */ export type BooleanListOperators = { - inList: Scalars['Boolean']; + inList: Scalars['Boolean']; }; /** Operators for filtering on a Boolean field */ export type BooleanOperators = { - eq?: InputMaybe; - isNull?: InputMaybe; + eq?: InputMaybe; + isNull?: InputMaybe; }; /** Returned if an attempting to cancel lines from an Order which is still active */ export type CancelActiveOrderError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; - orderState: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; + orderState: Scalars['String']; }; export type CancelOrderInput = { - /** Specify whether the shipping charges should also be cancelled. Defaults to false */ - cancelShipping?: InputMaybe; - /** Optionally specify which OrderLines to cancel. If not provided, all OrderLines will be cancelled */ - lines?: InputMaybe>; - /** The id of the order to be cancelled */ - orderId: Scalars['ID']; - reason?: InputMaybe; -}; - -export type CancelOrderResult = - | CancelActiveOrderError - | EmptyOrderLineSelectionError - | MultipleOrderError - | Order - | OrderStateTransitionError - | QuantityTooGreatError; + /** Specify whether the shipping charges should also be cancelled. Defaults to false */ + cancelShipping?: InputMaybe; + /** Optionally specify which OrderLines to cancel. If not provided, all OrderLines will be cancelled */ + lines?: InputMaybe>; + /** The id of the order to be cancelled */ + orderId: Scalars['ID']; + reason?: InputMaybe; +}; + +export type CancelOrderResult = CancelActiveOrderError | EmptyOrderLineSelectionError | MultipleOrderError | Order | OrderStateTransitionError | QuantityTooGreatError; /** Returned if the Payment cancellation fails */ export type CancelPaymentError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; - paymentErrorMessage: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; + paymentErrorMessage: Scalars['String']; }; export type CancelPaymentResult = CancelPaymentError | Payment | PaymentStateTransitionError; -export type Cancellation = Node & - StockMovement & { - createdAt: Scalars['DateTime']; - id: Scalars['ID']; - orderLine: OrderLine; - productVariant: ProductVariant; - quantity: Scalars['Int']; - type: StockMovementType; - updatedAt: Scalars['DateTime']; - }; +export type Cancellation = Node & StockMovement & { + createdAt: Scalars['DateTime']; + id: Scalars['ID']; + orderLine: OrderLine; + productVariant: ProductVariant; + quantity: Scalars['Int']; + type: StockMovementType; + updatedAt: Scalars['DateTime']; +}; export type Channel = Node & { - code: Scalars['String']; - createdAt: Scalars['DateTime']; - 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']; }; /** @@ -373,73 +354,74 @@ export type Channel = Node & { * of the GlobalSettings */ export type ChannelDefaultLanguageError = ErrorResult & { - channelCode: Scalars['String']; - errorCode: ErrorCode; - language: Scalars['String']; - message: Scalars['String']; + channelCode: Scalars['String']; + errorCode: ErrorCode; + language: Scalars['String']; + message: Scalars['String']; }; export type Collection = Node & { - assets: Array; - breadcrumbs: Array; - children?: Maybe>; - createdAt: Scalars['DateTime']; - customFields?: Maybe; - description: Scalars['String']; - featuredAsset?: Maybe; - filters: Array; - id: Scalars['ID']; - inheritFilters: Scalars['Boolean']; - isPrivate: Scalars['Boolean']; - languageCode?: Maybe; - name: Scalars['String']; - parent?: Maybe; - position: Scalars['Int']; - productVariants: ProductVariantList; - slug: Scalars['String']; - translations: Array; - updatedAt: Scalars['DateTime']; + assets: Array; + breadcrumbs: Array; + children?: Maybe>; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + description: Scalars['String']; + featuredAsset?: Maybe; + filters: Array; + id: Scalars['ID']; + inheritFilters: Scalars['Boolean']; + isPrivate: Scalars['Boolean']; + languageCode?: Maybe; + name: Scalars['String']; + parent?: Maybe; + position: Scalars['Int']; + productVariants: ProductVariantList; + slug: Scalars['String']; + translations: Array; + updatedAt: Scalars['DateTime']; }; + export type CollectionProductVariantsArgs = { - options?: InputMaybe; + options?: InputMaybe; }; export type CollectionBreadcrumb = { - id: Scalars['ID']; - name: Scalars['String']; - slug: Scalars['String']; + id: Scalars['ID']; + name: Scalars['String']; + slug: Scalars['String']; }; export type CollectionFilterParameter = { - createdAt?: InputMaybe; - description?: InputMaybe; - id?: InputMaybe; - inheritFilters?: InputMaybe; - isPrivate?: InputMaybe; - languageCode?: InputMaybe; - name?: InputMaybe; - position?: InputMaybe; - slug?: InputMaybe; - updatedAt?: InputMaybe; + createdAt?: InputMaybe; + description?: InputMaybe; + id?: InputMaybe; + inheritFilters?: InputMaybe; + isPrivate?: InputMaybe; + languageCode?: InputMaybe; + name?: InputMaybe; + position?: InputMaybe; + slug?: InputMaybe; + updatedAt?: InputMaybe; }; export type CollectionList = PaginatedList & { - items: Array; - totalItems: Scalars['Int']; + items: Array; + totalItems: Scalars['Int']; }; export type CollectionListOptions = { - /** Allows the results to be filtered */ - filter?: InputMaybe; - /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ - filterOperator?: InputMaybe; - /** Skips the first n results, for use in pagination */ - skip?: InputMaybe; - /** Specifies which properties to sort the results by */ - sort?: InputMaybe; - /** Takes n results, for use in pagination */ - take?: InputMaybe; + /** Allows the results to be filtered */ + filter?: InputMaybe; + /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ + filterOperator?: InputMaybe; + /** Skips the first n results, for use in pagination */ + skip?: InputMaybe; + /** Specifies which properties to sort the results by */ + sort?: InputMaybe; + /** Takes n results, for use in pagination */ + take?: InputMaybe; }; /** @@ -447,406 +429,406 @@ 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']; - stockLevels?: InputMaybe>; - stockOnHand?: InputMaybe; - taxCategoryId?: InputMaybe; - trackInventory?: InputMaybe; - translations: Array; - useGlobalOutOfStockThreshold?: InputMaybe; + assetIds?: InputMaybe>; + customFields?: InputMaybe; + facetValueIds?: InputMaybe>; + featuredAssetId?: InputMaybe; + optionIds?: InputMaybe>; + outOfStockThreshold?: InputMaybe; + price?: InputMaybe; + productId: Scalars['ID']; + sku: Scalars['String']; + stockLevels?: InputMaybe>; + stockOnHand?: InputMaybe; + taxCategoryId?: InputMaybe; + trackInventory?: InputMaybe; + translations: Array; + useGlobalOutOfStockThreshold?: InputMaybe; }; export type CreateProductVariantOptionInput = { - code: Scalars['String']; - optionGroupId: Scalars['ID']; - translations: Array; + code: Scalars['String']; + optionGroupId: Scalars['ID']; + translations: Array; }; export type CreatePromotionInput = { - actions: Array; - conditions: Array; - couponCode?: InputMaybe; - customFields?: InputMaybe; - enabled: Scalars['Boolean']; - endsAt?: InputMaybe; - 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 CreateSellerInput = { - customFields?: InputMaybe; - name: Scalars['String']; + customFields?: InputMaybe; + name: Scalars['String']; }; export type CreateShippingMethodInput = { - calculator: ConfigurableOperationInput; - checker: ConfigurableOperationInput; - code: Scalars['String']; - customFields?: InputMaybe; - fulfillmentHandler: Scalars['String']; - translations: Array; + calculator: ConfigurableOperationInput; + checker: ConfigurableOperationInput; + code: Scalars['String']; + customFields?: InputMaybe; + fulfillmentHandler: Scalars['String']; + translations: Array; }; export type CreateStockLocationInput = { - customFields?: InputMaybe; - description?: InputMaybe; - name: Scalars['String']; + customFields?: InputMaybe; + description?: InputMaybe; + name: Scalars['String']; }; export type CreateTagInput = { - value: Scalars['String']; + value: Scalars['String']; }; export type CreateTaxCategoryInput = { - customFields?: InputMaybe; - isDefault?: InputMaybe; - name: Scalars['String']; + customFields?: InputMaybe; + isDefault?: InputMaybe; + name: Scalars['String']; }; export type CreateTaxRateInput = { - categoryId: Scalars['ID']; - customFields?: InputMaybe; - customerGroupId?: InputMaybe; - enabled: Scalars['Boolean']; - name: Scalars['String']; - value: Scalars['Float']; - zoneId: Scalars['ID']; + categoryId: Scalars['ID']; + customFields?: InputMaybe; + customerGroupId?: InputMaybe; + enabled: Scalars['Boolean']; + name: Scalars['String']; + value: Scalars['Float']; + zoneId: Scalars['ID']; }; export type CreateZoneInput = { - customFields?: InputMaybe; - memberIds?: InputMaybe>; - name: Scalars['String']; + customFields?: InputMaybe; + memberIds?: InputMaybe>; + name: Scalars['String']; }; /** @@ -856,515 +838,510 @@ export type CreateZoneInput = { * @docsCategory common */ export enum CurrencyCode { - /** United Arab Emirates dirham */ - AED = 'AED', - /** Afghan afghani */ - AFN = 'AFN', - /** Albanian lek */ - ALL = 'ALL', - /** Armenian dram */ - AMD = 'AMD', - /** Netherlands Antillean guilder */ - ANG = 'ANG', - /** Angolan kwanza */ - AOA = 'AOA', - /** Argentine peso */ - ARS = 'ARS', - /** Australian dollar */ - AUD = 'AUD', - /** Aruban florin */ - AWG = 'AWG', - /** Azerbaijani manat */ - AZN = 'AZN', - /** Bosnia and Herzegovina convertible mark */ - BAM = 'BAM', - /** Barbados dollar */ - BBD = 'BBD', - /** Bangladeshi taka */ - BDT = 'BDT', - /** Bulgarian lev */ - BGN = 'BGN', - /** Bahraini dinar */ - BHD = 'BHD', - /** Burundian franc */ - BIF = 'BIF', - /** Bermudian dollar */ - BMD = 'BMD', - /** Brunei dollar */ - BND = 'BND', - /** Boliviano */ - BOB = 'BOB', - /** Brazilian real */ - BRL = 'BRL', - /** Bahamian dollar */ - BSD = 'BSD', - /** Bhutanese ngultrum */ - BTN = 'BTN', - /** Botswana pula */ - BWP = 'BWP', - /** Belarusian ruble */ - BYN = 'BYN', - /** Belize dollar */ - BZD = 'BZD', - /** Canadian dollar */ - CAD = 'CAD', - /** Congolese franc */ - CDF = 'CDF', - /** Swiss franc */ - CHF = 'CHF', - /** Chilean peso */ - CLP = 'CLP', - /** Renminbi (Chinese) yuan */ - CNY = 'CNY', - /** Colombian peso */ - COP = 'COP', - /** Costa Rican colon */ - CRC = 'CRC', - /** Cuban convertible peso */ - CUC = 'CUC', - /** Cuban peso */ - CUP = 'CUP', - /** Cape Verde escudo */ - CVE = 'CVE', - /** Czech koruna */ - CZK = 'CZK', - /** Djiboutian franc */ - DJF = 'DJF', - /** Danish krone */ - DKK = 'DKK', - /** Dominican peso */ - DOP = 'DOP', - /** Algerian dinar */ - DZD = 'DZD', - /** Egyptian pound */ - EGP = 'EGP', - /** Eritrean nakfa */ - ERN = 'ERN', - /** Ethiopian birr */ - ETB = 'ETB', - /** Euro */ - EUR = 'EUR', - /** Fiji dollar */ - FJD = 'FJD', - /** Falkland Islands pound */ - FKP = 'FKP', - /** Pound sterling */ - GBP = 'GBP', - /** Georgian lari */ - GEL = 'GEL', - /** Ghanaian cedi */ - GHS = 'GHS', - /** Gibraltar pound */ - GIP = 'GIP', - /** Gambian dalasi */ - GMD = 'GMD', - /** Guinean franc */ - GNF = 'GNF', - /** Guatemalan quetzal */ - GTQ = 'GTQ', - /** Guyanese dollar */ - GYD = 'GYD', - /** Hong Kong dollar */ - HKD = 'HKD', - /** Honduran lempira */ - HNL = 'HNL', - /** Croatian kuna */ - HRK = 'HRK', - /** Haitian gourde */ - HTG = 'HTG', - /** Hungarian forint */ - HUF = 'HUF', - /** Indonesian rupiah */ - IDR = 'IDR', - /** Israeli new shekel */ - ILS = 'ILS', - /** Indian rupee */ - INR = 'INR', - /** Iraqi dinar */ - IQD = 'IQD', - /** Iranian rial */ - IRR = 'IRR', - /** Icelandic króna */ - ISK = 'ISK', - /** Jamaican dollar */ - JMD = 'JMD', - /** Jordanian dinar */ - JOD = 'JOD', - /** Japanese yen */ - JPY = 'JPY', - /** Kenyan shilling */ - KES = 'KES', - /** Kyrgyzstani som */ - KGS = 'KGS', - /** Cambodian riel */ - KHR = 'KHR', - /** Comoro franc */ - KMF = 'KMF', - /** North Korean won */ - KPW = 'KPW', - /** South Korean won */ - KRW = 'KRW', - /** Kuwaiti dinar */ - KWD = 'KWD', - /** Cayman Islands dollar */ - KYD = 'KYD', - /** Kazakhstani tenge */ - KZT = 'KZT', - /** Lao kip */ - LAK = 'LAK', - /** Lebanese pound */ - LBP = 'LBP', - /** Sri Lankan rupee */ - LKR = 'LKR', - /** Liberian dollar */ - LRD = 'LRD', - /** Lesotho loti */ - LSL = 'LSL', - /** Libyan dinar */ - LYD = 'LYD', - /** Moroccan dirham */ - MAD = 'MAD', - /** Moldovan leu */ - MDL = 'MDL', - /** Malagasy ariary */ - MGA = 'MGA', - /** Macedonian denar */ - MKD = 'MKD', - /** Myanmar kyat */ - MMK = 'MMK', - /** Mongolian tögrög */ - MNT = 'MNT', - /** Macanese pataca */ - MOP = 'MOP', - /** Mauritanian ouguiya */ - MRU = 'MRU', - /** Mauritian rupee */ - MUR = 'MUR', - /** Maldivian rufiyaa */ - MVR = 'MVR', - /** Malawian kwacha */ - MWK = 'MWK', - /** Mexican peso */ - MXN = 'MXN', - /** Malaysian ringgit */ - MYR = 'MYR', - /** Mozambican metical */ - MZN = 'MZN', - /** Namibian dollar */ - NAD = 'NAD', - /** Nigerian naira */ - NGN = 'NGN', - /** Nicaraguan córdoba */ - NIO = 'NIO', - /** Norwegian krone */ - NOK = 'NOK', - /** Nepalese rupee */ - NPR = 'NPR', - /** New Zealand dollar */ - NZD = 'NZD', - /** Omani rial */ - OMR = 'OMR', - /** Panamanian balboa */ - PAB = 'PAB', - /** Peruvian sol */ - PEN = 'PEN', - /** Papua New Guinean kina */ - PGK = 'PGK', - /** Philippine peso */ - PHP = 'PHP', - /** Pakistani rupee */ - PKR = 'PKR', - /** Polish złoty */ - PLN = 'PLN', - /** Paraguayan guaraní */ - PYG = 'PYG', - /** Qatari riyal */ - QAR = 'QAR', - /** Romanian leu */ - RON = 'RON', - /** Serbian dinar */ - RSD = 'RSD', - /** Russian ruble */ - RUB = 'RUB', - /** Rwandan franc */ - RWF = 'RWF', - /** Saudi riyal */ - SAR = 'SAR', - /** Solomon Islands dollar */ - SBD = 'SBD', - /** Seychelles rupee */ - SCR = 'SCR', - /** Sudanese pound */ - SDG = 'SDG', - /** Swedish krona/kronor */ - SEK = 'SEK', - /** Singapore dollar */ - SGD = 'SGD', - /** Saint Helena pound */ - SHP = 'SHP', - /** Sierra Leonean leone */ - SLL = 'SLL', - /** Somali shilling */ - SOS = 'SOS', - /** Surinamese dollar */ - SRD = 'SRD', - /** South Sudanese pound */ - SSP = 'SSP', - /** São Tomé and Príncipe dobra */ - STN = 'STN', - /** Salvadoran colón */ - SVC = 'SVC', - /** Syrian pound */ - SYP = 'SYP', - /** Swazi lilangeni */ - SZL = 'SZL', - /** Thai baht */ - THB = 'THB', - /** Tajikistani somoni */ - TJS = 'TJS', - /** Turkmenistan manat */ - TMT = 'TMT', - /** Tunisian dinar */ - TND = 'TND', - /** Tongan paʻanga */ - TOP = 'TOP', - /** Turkish lira */ - TRY = 'TRY', - /** Trinidad and Tobago dollar */ - TTD = 'TTD', - /** New Taiwan dollar */ - TWD = 'TWD', - /** Tanzanian shilling */ - TZS = 'TZS', - /** Ukrainian hryvnia */ - UAH = 'UAH', - /** Ugandan shilling */ - UGX = 'UGX', - /** United States dollar */ - USD = 'USD', - /** Uruguayan peso */ - UYU = 'UYU', - /** Uzbekistan som */ - UZS = 'UZS', - /** Venezuelan bolívar soberano */ - VES = 'VES', - /** Vietnamese đồng */ - VND = 'VND', - /** Vanuatu vatu */ - VUV = 'VUV', - /** Samoan tala */ - WST = 'WST', - /** CFA franc BEAC */ - XAF = 'XAF', - /** East Caribbean dollar */ - XCD = 'XCD', - /** CFA franc BCEAO */ - XOF = 'XOF', - /** CFP franc (franc Pacifique) */ - XPF = 'XPF', - /** Yemeni rial */ - YER = 'YER', - /** South African rand */ - ZAR = 'ZAR', - /** Zambian kwacha */ - ZMW = 'ZMW', - /** Zimbabwean dollar */ - ZWL = 'ZWL', + /** United Arab Emirates dirham */ + AED = 'AED', + /** Afghan afghani */ + AFN = 'AFN', + /** Albanian lek */ + ALL = 'ALL', + /** Armenian dram */ + AMD = 'AMD', + /** Netherlands Antillean guilder */ + ANG = 'ANG', + /** Angolan kwanza */ + AOA = 'AOA', + /** Argentine peso */ + ARS = 'ARS', + /** Australian dollar */ + AUD = 'AUD', + /** Aruban florin */ + AWG = 'AWG', + /** Azerbaijani manat */ + AZN = 'AZN', + /** Bosnia and Herzegovina convertible mark */ + BAM = 'BAM', + /** Barbados dollar */ + BBD = 'BBD', + /** Bangladeshi taka */ + BDT = 'BDT', + /** Bulgarian lev */ + BGN = 'BGN', + /** Bahraini dinar */ + BHD = 'BHD', + /** Burundian franc */ + BIF = 'BIF', + /** Bermudian dollar */ + BMD = 'BMD', + /** Brunei dollar */ + BND = 'BND', + /** Boliviano */ + BOB = 'BOB', + /** Brazilian real */ + BRL = 'BRL', + /** Bahamian dollar */ + BSD = 'BSD', + /** Bhutanese ngultrum */ + BTN = 'BTN', + /** Botswana pula */ + BWP = 'BWP', + /** Belarusian ruble */ + BYN = 'BYN', + /** Belize dollar */ + BZD = 'BZD', + /** Canadian dollar */ + CAD = 'CAD', + /** Congolese franc */ + CDF = 'CDF', + /** Swiss franc */ + CHF = 'CHF', + /** Chilean peso */ + CLP = 'CLP', + /** Renminbi (Chinese) yuan */ + CNY = 'CNY', + /** Colombian peso */ + COP = 'COP', + /** Costa Rican colon */ + CRC = 'CRC', + /** Cuban convertible peso */ + CUC = 'CUC', + /** Cuban peso */ + CUP = 'CUP', + /** Cape Verde escudo */ + CVE = 'CVE', + /** Czech koruna */ + CZK = 'CZK', + /** Djiboutian franc */ + DJF = 'DJF', + /** Danish krone */ + DKK = 'DKK', + /** Dominican peso */ + DOP = 'DOP', + /** Algerian dinar */ + DZD = 'DZD', + /** Egyptian pound */ + EGP = 'EGP', + /** Eritrean nakfa */ + ERN = 'ERN', + /** Ethiopian birr */ + ETB = 'ETB', + /** Euro */ + EUR = 'EUR', + /** Fiji dollar */ + FJD = 'FJD', + /** Falkland Islands pound */ + FKP = 'FKP', + /** Pound sterling */ + GBP = 'GBP', + /** Georgian lari */ + GEL = 'GEL', + /** Ghanaian cedi */ + GHS = 'GHS', + /** Gibraltar pound */ + GIP = 'GIP', + /** Gambian dalasi */ + GMD = 'GMD', + /** Guinean franc */ + GNF = 'GNF', + /** Guatemalan quetzal */ + GTQ = 'GTQ', + /** Guyanese dollar */ + GYD = 'GYD', + /** Hong Kong dollar */ + HKD = 'HKD', + /** Honduran lempira */ + HNL = 'HNL', + /** Croatian kuna */ + HRK = 'HRK', + /** Haitian gourde */ + HTG = 'HTG', + /** Hungarian forint */ + HUF = 'HUF', + /** Indonesian rupiah */ + IDR = 'IDR', + /** Israeli new shekel */ + ILS = 'ILS', + /** Indian rupee */ + INR = 'INR', + /** Iraqi dinar */ + IQD = 'IQD', + /** Iranian rial */ + IRR = 'IRR', + /** Icelandic króna */ + ISK = 'ISK', + /** Jamaican dollar */ + JMD = 'JMD', + /** Jordanian dinar */ + JOD = 'JOD', + /** Japanese yen */ + JPY = 'JPY', + /** Kenyan shilling */ + KES = 'KES', + /** Kyrgyzstani som */ + KGS = 'KGS', + /** Cambodian riel */ + KHR = 'KHR', + /** Comoro franc */ + KMF = 'KMF', + /** North Korean won */ + KPW = 'KPW', + /** South Korean won */ + KRW = 'KRW', + /** Kuwaiti dinar */ + KWD = 'KWD', + /** Cayman Islands dollar */ + KYD = 'KYD', + /** Kazakhstani tenge */ + KZT = 'KZT', + /** Lao kip */ + LAK = 'LAK', + /** Lebanese pound */ + LBP = 'LBP', + /** Sri Lankan rupee */ + LKR = 'LKR', + /** Liberian dollar */ + LRD = 'LRD', + /** Lesotho loti */ + LSL = 'LSL', + /** Libyan dinar */ + LYD = 'LYD', + /** Moroccan dirham */ + MAD = 'MAD', + /** Moldovan leu */ + MDL = 'MDL', + /** Malagasy ariary */ + MGA = 'MGA', + /** Macedonian denar */ + MKD = 'MKD', + /** Myanmar kyat */ + MMK = 'MMK', + /** Mongolian tögrög */ + MNT = 'MNT', + /** Macanese pataca */ + MOP = 'MOP', + /** Mauritanian ouguiya */ + MRU = 'MRU', + /** Mauritian rupee */ + MUR = 'MUR', + /** Maldivian rufiyaa */ + MVR = 'MVR', + /** Malawian kwacha */ + MWK = 'MWK', + /** Mexican peso */ + MXN = 'MXN', + /** Malaysian ringgit */ + MYR = 'MYR', + /** Mozambican metical */ + MZN = 'MZN', + /** Namibian dollar */ + NAD = 'NAD', + /** Nigerian naira */ + NGN = 'NGN', + /** Nicaraguan córdoba */ + NIO = 'NIO', + /** Norwegian krone */ + NOK = 'NOK', + /** Nepalese rupee */ + NPR = 'NPR', + /** New Zealand dollar */ + NZD = 'NZD', + /** Omani rial */ + OMR = 'OMR', + /** Panamanian balboa */ + PAB = 'PAB', + /** Peruvian sol */ + PEN = 'PEN', + /** Papua New Guinean kina */ + PGK = 'PGK', + /** Philippine peso */ + PHP = 'PHP', + /** Pakistani rupee */ + PKR = 'PKR', + /** Polish złoty */ + PLN = 'PLN', + /** Paraguayan guaraní */ + PYG = 'PYG', + /** Qatari riyal */ + QAR = 'QAR', + /** Romanian leu */ + RON = 'RON', + /** Serbian dinar */ + RSD = 'RSD', + /** Russian ruble */ + RUB = 'RUB', + /** Rwandan franc */ + RWF = 'RWF', + /** Saudi riyal */ + SAR = 'SAR', + /** Solomon Islands dollar */ + SBD = 'SBD', + /** Seychelles rupee */ + SCR = 'SCR', + /** Sudanese pound */ + SDG = 'SDG', + /** Swedish krona/kronor */ + SEK = 'SEK', + /** Singapore dollar */ + SGD = 'SGD', + /** Saint Helena pound */ + SHP = 'SHP', + /** Sierra Leonean leone */ + SLL = 'SLL', + /** Somali shilling */ + SOS = 'SOS', + /** Surinamese dollar */ + SRD = 'SRD', + /** South Sudanese pound */ + SSP = 'SSP', + /** São Tomé and Príncipe dobra */ + STN = 'STN', + /** Salvadoran colón */ + SVC = 'SVC', + /** Syrian pound */ + SYP = 'SYP', + /** Swazi lilangeni */ + SZL = 'SZL', + /** Thai baht */ + THB = 'THB', + /** Tajikistani somoni */ + TJS = 'TJS', + /** Turkmenistan manat */ + TMT = 'TMT', + /** Tunisian dinar */ + TND = 'TND', + /** Tongan paʻanga */ + TOP = 'TOP', + /** Turkish lira */ + TRY = 'TRY', + /** Trinidad and Tobago dollar */ + TTD = 'TTD', + /** New Taiwan dollar */ + TWD = 'TWD', + /** Tanzanian shilling */ + TZS = 'TZS', + /** Ukrainian hryvnia */ + UAH = 'UAH', + /** Ugandan shilling */ + UGX = 'UGX', + /** United States dollar */ + USD = 'USD', + /** Uruguayan peso */ + UYU = 'UYU', + /** Uzbekistan som */ + UZS = 'UZS', + /** Venezuelan bolívar soberano */ + VES = 'VES', + /** Vietnamese đồng */ + VND = 'VND', + /** Vanuatu vatu */ + VUV = 'VUV', + /** Samoan tala */ + WST = 'WST', + /** CFA franc BEAC */ + XAF = 'XAF', + /** East Caribbean dollar */ + XCD = 'XCD', + /** CFA franc BCEAO */ + XOF = 'XOF', + /** CFP franc (franc Pacifique) */ + XPF = 'XPF', + /** Yemeni rial */ + YER = 'YER', + /** South African rand */ + ZAR = 'ZAR', + /** Zambian kwacha */ + ZMW = 'ZMW', + /** Zimbabwean dollar */ + ZWL = 'ZWL' } export type CurrentUser = { - channels: Array; - id: Scalars['ID']; - identifier: Scalars['String']; + channels: Array; + id: Scalars['ID']; + identifier: Scalars['String']; }; export type CurrentUserChannel = { - code: Scalars['String']; - id: Scalars['ID']; - permissions: Array; - token: Scalars['String']; + code: Scalars['String']; + id: Scalars['ID']; + permissions: Array; + token: Scalars['String']; }; export type CustomField = { - description?: Maybe>; - internal?: Maybe; - label?: Maybe>; - list: Scalars['Boolean']; - name: Scalars['String']; - nullable?: Maybe; - readonly?: Maybe; - type: Scalars['String']; - ui?: Maybe; -}; - -export type CustomFieldConfig = - | BooleanCustomFieldConfig - | DateTimeCustomFieldConfig - | FloatCustomFieldConfig - | IntCustomFieldConfig - | LocaleStringCustomFieldConfig - | 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; - StockLocation: 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; + StockLocation: Array; + TaxCategory: Array; + TaxRate: Array; + User: Array; + Zone: Array; }; export type Customer = Node & { - addresses?: Maybe>; - createdAt: Scalars['DateTime']; - customFields?: Maybe; - emailAddress: Scalars['String']; - firstName: Scalars['String']; - groups: Array; - history: HistoryEntryList; - id: Scalars['ID']; - lastName: Scalars['String']; - orders: OrderList; - phoneNumber?: Maybe; - title?: Maybe; - updatedAt: Scalars['DateTime']; - user?: Maybe; + addresses?: Maybe>; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + emailAddress: Scalars['String']; + firstName: Scalars['String']; + groups: Array; + history: HistoryEntryList; + id: Scalars['ID']; + lastName: Scalars['String']; + orders: OrderList; + phoneNumber?: Maybe; + title?: Maybe; + updatedAt: Scalars['DateTime']; + user?: Maybe; }; + export type CustomerHistoryArgs = { - options?: InputMaybe; + options?: InputMaybe; }; + export type CustomerOrdersArgs = { - options?: InputMaybe; + options?: InputMaybe; }; export type CustomerFilterParameter = { - createdAt?: InputMaybe; - emailAddress?: InputMaybe; - firstName?: InputMaybe; - id?: InputMaybe; - lastName?: InputMaybe; - phoneNumber?: InputMaybe; - postalCode?: InputMaybe; - title?: InputMaybe; - updatedAt?: InputMaybe; + createdAt?: InputMaybe; + emailAddress?: InputMaybe; + firstName?: InputMaybe; + id?: InputMaybe; + lastName?: InputMaybe; + phoneNumber?: InputMaybe; + postalCode?: InputMaybe; + title?: InputMaybe; + updatedAt?: InputMaybe; }; export type CustomerGroup = Node & { - createdAt: Scalars['DateTime']; - customFields?: Maybe; - customers: CustomerList; - id: Scalars['ID']; - name: Scalars['String']; - updatedAt: Scalars['DateTime']; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + customers: CustomerList; + id: Scalars['ID']; + name: Scalars['String']; + updatedAt: Scalars['DateTime']; }; + export type CustomerGroupCustomersArgs = { - options?: InputMaybe; + options?: InputMaybe; }; export type CustomerGroupFilterParameter = { - createdAt?: InputMaybe; - id?: InputMaybe; - name?: InputMaybe; - updatedAt?: InputMaybe; + createdAt?: InputMaybe; + id?: InputMaybe; + name?: InputMaybe; + updatedAt?: InputMaybe; }; export type CustomerGroupList = PaginatedList & { - items: Array; - totalItems: Scalars['Int']; + items: Array; + totalItems: Scalars['Int']; }; export type CustomerGroupListOptions = { - /** Allows the results to be filtered */ - filter?: InputMaybe; - /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ - filterOperator?: InputMaybe; - /** Skips the first n results, for use in pagination */ - skip?: InputMaybe; - /** Specifies which properties to sort the results by */ - sort?: InputMaybe; - /** Takes n results, for use in pagination */ - take?: InputMaybe; + /** Allows the results to be filtered */ + filter?: InputMaybe; + /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ + filterOperator?: InputMaybe; + /** Skips the first n results, for use in pagination */ + skip?: InputMaybe; + /** Specifies which properties to sort the results by */ + sort?: InputMaybe; + /** Takes n results, for use in pagination */ + take?: InputMaybe; }; export type CustomerGroupSortParameter = { - createdAt?: InputMaybe; - id?: InputMaybe; - name?: InputMaybe; - updatedAt?: InputMaybe; + createdAt?: InputMaybe; + id?: InputMaybe; + name?: InputMaybe; + updatedAt?: InputMaybe; }; export type CustomerList = PaginatedList & { - items: Array; - totalItems: Scalars['Int']; + items: Array; + totalItems: Scalars['Int']; }; export type CustomerListOptions = { - /** Allows the results to be filtered */ - filter?: InputMaybe; - /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ - filterOperator?: InputMaybe; - /** Skips the first n results, for use in pagination */ - skip?: InputMaybe; - /** Specifies which properties to sort the results by */ - sort?: InputMaybe; - /** Takes n results, for use in pagination */ - take?: InputMaybe; + /** Allows the results to be filtered */ + filter?: InputMaybe; + /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ + filterOperator?: InputMaybe; + /** Skips the first n results, for use in pagination */ + skip?: InputMaybe; + /** Specifies which properties to sort the results by */ + sort?: InputMaybe; + /** Takes n results, for use in pagination */ + take?: InputMaybe; }; export type CustomerSortParameter = { - createdAt?: InputMaybe; - emailAddress?: InputMaybe; - firstName?: InputMaybe; - id?: InputMaybe; - lastName?: InputMaybe; - phoneNumber?: InputMaybe; - title?: InputMaybe; - updatedAt?: InputMaybe; + createdAt?: InputMaybe; + emailAddress?: InputMaybe; + firstName?: InputMaybe; + id?: InputMaybe; + lastName?: InputMaybe; + phoneNumber?: InputMaybe; + title?: InputMaybe; + updatedAt?: InputMaybe; }; /** Operators for filtering on a list of Date fields */ export type DateListOperators = { - inList: Scalars['DateTime']; + inList: Scalars['DateTime']; }; /** Operators for filtering on a DateTime field */ export type DateOperators = { - after?: InputMaybe; - before?: InputMaybe; - between?: InputMaybe; - eq?: InputMaybe; - isNull?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; + between?: InputMaybe; + eq?: InputMaybe; + isNull?: InputMaybe; }; export type DateRange = { - end: Scalars['DateTime']; - start: Scalars['DateTime']; + end: Scalars['DateTime']; + start: Scalars['DateTime']; }; /** @@ -1372,201 +1349,201 @@ export type DateRange = { * See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/datetime-local#Additional_attributes */ export type DateTimeCustomFieldConfig = CustomField & { - description?: Maybe>; - internal?: Maybe; - label?: Maybe>; - list: Scalars['Boolean']; - max?: Maybe; - min?: Maybe; - name: Scalars['String']; - nullable?: Maybe; - readonly?: Maybe; - step?: Maybe; - type: Scalars['String']; - ui?: Maybe; + description?: Maybe>; + internal?: Maybe; + label?: Maybe>; + list: Scalars['Boolean']; + max?: Maybe; + min?: Maybe; + name: Scalars['String']; + nullable?: Maybe; + readonly?: Maybe; + step?: Maybe; + type: Scalars['String']; + ui?: Maybe; }; export type DeleteAssetInput = { - assetId: Scalars['ID']; - deleteFromAllChannels?: InputMaybe; - force?: InputMaybe; + assetId: Scalars['ID']; + deleteFromAllChannels?: InputMaybe; + force?: InputMaybe; }; export type DeleteAssetsInput = { - assetIds: Array; - deleteFromAllChannels?: InputMaybe; - force?: InputMaybe; + assetIds: Array; + deleteFromAllChannels?: InputMaybe; + force?: InputMaybe; }; export type DeleteStockLocationInput = { - id: Scalars['ID']; - transferToLocationId?: InputMaybe; + id: Scalars['ID']; + transferToLocationId?: InputMaybe; }; export type DeletionResponse = { - message?: Maybe; - result: DeletionResult; + message?: Maybe; + result: DeletionResult; }; export enum DeletionResult { - /** The entity was successfully deleted */ - DELETED = 'DELETED', - /** Deletion did not take place, reason given in message */ - NOT_DELETED = 'NOT_DELETED', + /** The entity was successfully deleted */ + DELETED = 'DELETED', + /** Deletion did not take place, reason given in message */ + NOT_DELETED = 'NOT_DELETED' } export type Discount = { - adjustmentSource: Scalars['String']; - amount: Scalars['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']; }; /** @@ -1578,35 +1555,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; }; /** @@ -1614,202 +1591,202 @@ export type FacetValueListOptions = { * by the search, and in what quantity. */ export type FacetValueResult = { - count: Scalars['Int']; - facetValue: FacetValue; + count: Scalars['Int']; + facetValue: FacetValue; }; export type FacetValueSortParameter = { - code?: InputMaybe; - createdAt?: InputMaybe; - id?: InputMaybe; - name?: InputMaybe; - updatedAt?: InputMaybe; + code?: InputMaybe; + createdAt?: InputMaybe; + id?: InputMaybe; + name?: InputMaybe; + updatedAt?: InputMaybe; }; export type FacetValueTranslation = { - createdAt: Scalars['DateTime']; - id: Scalars['ID']; - languageCode: LanguageCode; - name: Scalars['String']; - updatedAt: Scalars['DateTime']; + createdAt: Scalars['DateTime']; + id: Scalars['ID']; + languageCode: LanguageCode; + name: Scalars['String']; + updatedAt: Scalars['DateTime']; }; export type FacetValueTranslationInput = { - customFields?: InputMaybe; - id?: InputMaybe; - languageCode: LanguageCode; - name?: InputMaybe; + customFields?: InputMaybe; + id?: InputMaybe; + languageCode: LanguageCode; + name?: InputMaybe; }; export type FloatCustomFieldConfig = CustomField & { - description?: Maybe>; - internal?: Maybe; - label?: Maybe>; - list: Scalars['Boolean']; - max?: Maybe; - min?: Maybe; - name: Scalars['String']; - nullable?: Maybe; - readonly?: Maybe; - step?: Maybe; - type: Scalars['String']; - ui?: Maybe; + description?: Maybe>; + internal?: Maybe; + label?: Maybe>; + list: Scalars['Boolean']; + max?: Maybe; + min?: Maybe; + name: Scalars['String']; + nullable?: Maybe; + readonly?: Maybe; + step?: Maybe; + type: Scalars['String']; + ui?: Maybe; }; export type FulfillOrderInput = { - handler: ConfigurableOperationInput; - lines: Array; + handler: ConfigurableOperationInput; + lines: Array; }; export type Fulfillment = Node & { - createdAt: Scalars['DateTime']; - customFields?: Maybe; - id: Scalars['ID']; - lines: Array; - method: Scalars['String']; - nextStates: Array; - state: Scalars['String']; - /** @deprecated Use the `lines` field instead */ - summary: Array; - trackingCode?: Maybe; - updatedAt: Scalars['DateTime']; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + id: Scalars['ID']; + lines: Array; + method: Scalars['String']; + nextStates: Array; + state: Scalars['String']; + /** @deprecated Use the `lines` field instead */ + summary: Array; + trackingCode?: Maybe; + updatedAt: Scalars['DateTime']; }; export type FulfillmentLine = { - fulfillment: Fulfillment; - fulfillmentId: Scalars['ID']; - orderLine: OrderLine; - orderLineId: Scalars['ID']; - quantity: Scalars['Int']; + fulfillment: Fulfillment; + fulfillmentId: Scalars['ID']; + orderLine: OrderLine; + orderLineId: Scalars['ID']; + quantity: Scalars['Int']; }; /** Returned when there is an error in transitioning the Fulfillment state */ export type FulfillmentStateTransitionError = ErrorResult & { - errorCode: ErrorCode; - fromState: Scalars['String']; - message: Scalars['String']; - toState: Scalars['String']; - transitionError: Scalars['String']; + errorCode: ErrorCode; + fromState: Scalars['String']; + message: Scalars['String']; + toState: Scalars['String']; + transitionError: Scalars['String']; }; export enum GlobalFlag { - FALSE = 'FALSE', - INHERIT = 'INHERIT', - TRUE = 'TRUE', + FALSE = 'FALSE', + INHERIT = 'INHERIT', + TRUE = 'TRUE' } export type GlobalSettings = { - availableLanguages: Array; - createdAt: Scalars['DateTime']; - customFields?: Maybe; - id: Scalars['ID']; - outOfStockThreshold: Scalars['Int']; - serverConfig: ServerConfig; - trackInventory: Scalars['Boolean']; - updatedAt: Scalars['DateTime']; + availableLanguages: Array; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + id: Scalars['ID']; + outOfStockThreshold: Scalars['Int']; + serverConfig: ServerConfig; + trackInventory: Scalars['Boolean']; + updatedAt: Scalars['DateTime']; }; 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']; }; /** @@ -1817,116 +1794,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; }; /** @@ -1936,12 +1913,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' } /** @@ -1954,358 +1931,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; }; /** @@ -2313,905 +2290,1027 @@ 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; - createStockLocation: StockLocation; - /** Create a new Tag */ - createTag: Tag; - /** Create a new TaxCategory */ - createTaxCategory: TaxCategory; - /** Create a new TaxRate */ - createTaxRate: TaxRate; - /** Create a new Zone */ - createZone: Zone; - /** Delete an Administrator */ - deleteAdministrator: DeletionResponse; - /** Delete an Asset */ - deleteAsset: DeletionResponse; - /** Delete multiple Assets */ - deleteAssets: DeletionResponse; - /** Delete a Channel */ - deleteChannel: DeletionResponse; - /** Delete a Collection and all of its descendants */ - deleteCollection: DeletionResponse; - /** Delete multiple Collections and all of their descendants */ - deleteCollections: Array; - /** Delete a Country */ - deleteCountry: DeletionResponse; - /** Delete a Customer */ - deleteCustomer: DeletionResponse; - /** Update an existing Address */ - deleteCustomerAddress: Success; - /** Delete a CustomerGroup */ - deleteCustomerGroup: DeletionResponse; - deleteCustomerNote: DeletionResponse; - /** Deletes a draft Order */ - deleteDraftOrder: DeletionResponse; - /** Delete an existing Facet */ - deleteFacet: DeletionResponse; - /** Delete one or more FacetValues */ - deleteFacetValues: Array; - /** Delete multiple existing Facets */ - deleteFacets: Array; - deleteOrderNote: DeletionResponse; - /** Delete a PaymentMethod */ - deletePaymentMethod: DeletionResponse; - /** Delete a Product */ - deleteProduct: DeletionResponse; - /** Delete a ProductOption */ - deleteProductOption: DeletionResponse; - /** Delete a ProductVariant */ - deleteProductVariant: DeletionResponse; - /** Delete multiple ProductVariants */ - deleteProductVariants: Array; - /** Delete multiple Products */ - deleteProducts: Array; - deletePromotion: DeletionResponse; - /** Delete an existing Role */ - deleteRole: DeletionResponse; - /** Delete a Seller */ - deleteSeller: DeletionResponse; - /** Delete a ShippingMethod */ - deleteShippingMethod: DeletionResponse; - deleteStockLocation: DeletionResponse; - /** Delete an existing Tag */ - deleteTag: DeletionResponse; - /** Deletes a TaxCategory */ - deleteTaxCategory: DeletionResponse; - /** Delete a TaxRate */ - deleteTaxRate: DeletionResponse; - /** Delete a Zone */ - deleteZone: DeletionResponse; - flushBufferedJobs: Success; - importProducts?: Maybe; - /** Authenticates the user using the native authentication strategy. This mutation is an alias for `authenticate({ native: { ... }})` */ - login: NativeAuthenticationResult; - logout: Success; - /** - * Allows an Order to be modified after it has been completed by the Customer. The Order must first - * be in the `Modifying` state. - */ - modifyOrder: ModifyOrderResult; - /** Move a Collection to a different parent or index */ - moveCollection: Collection; - refundOrder: RefundOrderResult; - reindex: Job; - /** Removes Collections from the specified Channel */ - removeCollectionsFromChannel: Array; - /** Removes the given coupon code from the draft Order */ - removeCouponCodeFromDraftOrder?: Maybe; - /** Remove Customers from a CustomerGroup */ - removeCustomersFromGroup: CustomerGroup; - /** Remove an OrderLine from the draft Order */ - removeDraftOrderLine: RemoveOrderItemsResult; - /** Removes Facets from the specified Channel */ - removeFacetsFromChannel: Array; - /** Remove members from a Zone */ - removeMembersFromZone: Zone; - /** Remove an OptionGroup from a Product */ - removeOptionGroupFromProduct: RemoveOptionGroupFromProductResult; - /** Removes ProductVariants from the specified Channel */ - removeProductVariantsFromChannel: Array; - /** Removes all ProductVariants of Product from the specified Channel */ - removeProductsFromChannel: Array; - /** Removes Promotions from the specified Channel */ - removePromotionsFromChannel: Array; - /** Remove all settled jobs in the given queues older than the given date. Returns the number of jobs deleted. */ - removeSettledJobs: Scalars['Int']; - runPendingSearchIndexUpdates: Success; - setCustomerForDraftOrder: SetCustomerForDraftOrderResult; - /** Sets the billing address for a draft Order */ - setDraftOrderBillingAddress: Order; - /** Allows any custom fields to be set for the active order */ - setDraftOrderCustomFields: Order; - /** Sets the shipping address for a draft Order */ - setDraftOrderShippingAddress: Order; - /** Sets the shipping method by id, which can be obtained with the `eligibleShippingMethodsForDraftOrder` query */ - setDraftOrderShippingMethod: SetOrderShippingMethodResult; - setOrderCustomFields?: Maybe; - settlePayment: SettlePaymentResult; - settleRefund: SettleRefundResult; - transitionFulfillmentToState: TransitionFulfillmentToStateResult; - transitionOrderToState?: Maybe; - transitionPaymentToState: TransitionPaymentToStateResult; - /** Update the active (currently logged-in) Administrator */ - updateActiveAdministrator: Administrator; - /** Update an existing Administrator */ - updateAdministrator: Administrator; - /** Update an existing Asset */ - updateAsset: Asset; - /** Update an existing Channel */ - updateChannel: UpdateChannelResult; - /** Update an existing Collection */ - updateCollection: Collection; - /** Update an existing Country */ - updateCountry: Country; - /** Update an existing Customer */ - updateCustomer: UpdateCustomerResult; - /** Update an existing Address */ - updateCustomerAddress: Address; - /** Update an existing CustomerGroup */ - updateCustomerGroup: CustomerGroup; - updateCustomerNote: HistoryEntry; - /** Update an existing Facet */ - updateFacet: Facet; - /** Update one or more FacetValues */ - updateFacetValues: Array; - updateGlobalSettings: UpdateGlobalSettingsResult; - updateOrderNote: HistoryEntry; - /** Update an existing PaymentMethod */ - updatePaymentMethod: PaymentMethod; - /** Update an existing Product */ - updateProduct: Product; - /** Create a new ProductOption within a ProductOptionGroup */ - updateProductOption: ProductOption; - /** Update an existing ProductOptionGroup */ - updateProductOptionGroup: ProductOptionGroup; - /** Update existing ProductVariants */ - updateProductVariants: Array>; - /** Update multiple existing Products */ - updateProducts: Array; - updatePromotion: UpdatePromotionResult; - /** Update an existing Role */ - updateRole: Role; - /** Update an existing Seller */ - updateSeller: Seller; - /** Update an existing ShippingMethod */ - updateShippingMethod: ShippingMethod; - updateStockLocation: StockLocation; - /** Update an existing Tag */ - updateTag: Tag; - /** Update an existing TaxCategory */ - updateTaxCategory: TaxCategory; - /** Update an existing TaxRate */ - updateTaxRate: TaxRate; - /** Update an existing Zone */ - updateZone: Zone; + /** Add Customers to a CustomerGroup */ + addCustomersToGroup: CustomerGroup; + addFulfillmentToOrder: AddFulfillmentToOrderResult; + /** Adds an item to the draft Order. */ + addItemToDraftOrder: UpdateOrderItemsResult; + /** + * Used to manually create a new Payment against an Order. + * This can be used by an Administrator when an Order is in the ArrangingPayment state. + * + * It is also used when a completed Order + * has been modified (using `modifyOrder`) and the price has increased. The extra payment + * can then be manually arranged by the administrator, and the details used to create a new + * Payment. + */ + addManualPaymentToOrder: AddManualPaymentToOrderResult; + /** Add members to a Zone */ + addMembersToZone: Zone; + addNoteToCustomer: Customer; + addNoteToOrder: Order; + /** Add an OptionGroup to a Product */ + addOptionGroupToProduct: Product; + /** Adjusts a draft OrderLine. If custom fields are defined on the OrderLine entity, a third argument 'customFields' of type `OrderLineCustomFieldsInput` will be available. */ + adjustDraftOrderLine: UpdateOrderItemsResult; + /** Applies the given coupon code to the draft Order */ + applyCouponCodeToDraftOrder: ApplyCouponCodeResult; + /** Assign assets to channel */ + assignAssetsToChannel: Array; + /** Assigns Collections to the specified Channel */ + assignCollectionsToChannel: Array; + /** Assigns Facets to the specified Channel */ + assignFacetsToChannel: Array; + /** Assigns ProductVariants to the specified Channel */ + assignProductVariantsToChannel: Array; + /** Assigns all ProductVariants of Product to the specified Channel */ + assignProductsToChannel: Array; + /** Assigns Promotions to the specified Channel */ + assignPromotionsToChannel: Array; + /** Assign a Role to an Administrator */ + assignRoleToAdministrator: Administrator; + /** Authenticates the user using a named authentication strategy */ + authenticate: AuthenticationResult; + cancelJob: Job; + cancelOrder: CancelOrderResult; + cancelPayment: CancelPaymentResult; + /** Create a new Administrator */ + createAdministrator: Administrator; + /** Create a new Asset */ + createAssets: Array; + /** Create a new Channel */ + createChannel: CreateChannelResult; + /** Create a new Collection */ + createCollection: Collection; + /** Create a new Country */ + createCountry: Country; + /** Create a new Customer. If a password is provided, a new User will also be created an linked to the Customer. */ + createCustomer: CreateCustomerResult; + /** Create a new Address and associate it with the Customer specified by customerId */ + createCustomerAddress: Address; + /** Create a new CustomerGroup */ + createCustomerGroup: CustomerGroup; + /** Creates a draft Order */ + createDraftOrder: Order; + /** Create a new Facet */ + createFacet: Facet; + /** Create one or more FacetValues */ + createFacetValues: Array; + /** Create existing PaymentMethod */ + createPaymentMethod: PaymentMethod; + /** Create a new Product */ + createProduct: Product; + /** Create a new ProductOption within a ProductOptionGroup */ + createProductOption: ProductOption; + /** Create a new ProductOptionGroup */ + createProductOptionGroup: ProductOptionGroup; + /** Create a set of ProductVariants based on the OptionGroups assigned to the given Product */ + createProductVariants: Array>; + createPromotion: CreatePromotionResult; + /** Create a new Role */ + createRole: Role; + /** Create a new Seller */ + createSeller: Seller; + /** Create a new ShippingMethod */ + createShippingMethod: ShippingMethod; + createStockLocation: StockLocation; + /** Create a new Tag */ + createTag: Tag; + /** Create a new TaxCategory */ + createTaxCategory: TaxCategory; + /** Create a new TaxRate */ + createTaxRate: TaxRate; + /** Create a new Zone */ + createZone: Zone; + /** Delete an Administrator */ + deleteAdministrator: DeletionResponse; + /** Delete an Asset */ + deleteAsset: DeletionResponse; + /** Delete multiple Assets */ + deleteAssets: DeletionResponse; + /** Delete a Channel */ + deleteChannel: DeletionResponse; + /** Delete a Collection and all of its descendants */ + deleteCollection: DeletionResponse; + /** Delete multiple Collections and all of their descendants */ + deleteCollections: Array; + /** Delete a Country */ + deleteCountry: DeletionResponse; + /** Delete a Customer */ + deleteCustomer: DeletionResponse; + /** Update an existing Address */ + deleteCustomerAddress: Success; + /** Delete a CustomerGroup */ + deleteCustomerGroup: DeletionResponse; + deleteCustomerNote: DeletionResponse; + /** Deletes a draft Order */ + deleteDraftOrder: DeletionResponse; + /** Delete an existing Facet */ + deleteFacet: DeletionResponse; + /** Delete one or more FacetValues */ + deleteFacetValues: Array; + /** Delete multiple existing Facets */ + deleteFacets: Array; + deleteOrderNote: DeletionResponse; + /** Delete a PaymentMethod */ + deletePaymentMethod: DeletionResponse; + /** Delete a Product */ + deleteProduct: DeletionResponse; + /** Delete a ProductOption */ + deleteProductOption: DeletionResponse; + /** Delete a ProductVariant */ + deleteProductVariant: DeletionResponse; + /** Delete multiple ProductVariants */ + deleteProductVariants: Array; + /** Delete multiple Products */ + deleteProducts: Array; + deletePromotion: DeletionResponse; + /** Delete an existing Role */ + deleteRole: DeletionResponse; + /** Delete a Seller */ + deleteSeller: DeletionResponse; + /** Delete a ShippingMethod */ + deleteShippingMethod: DeletionResponse; + deleteStockLocation: DeletionResponse; + /** Delete an existing Tag */ + deleteTag: DeletionResponse; + /** Deletes a TaxCategory */ + deleteTaxCategory: DeletionResponse; + /** Delete a TaxRate */ + deleteTaxRate: DeletionResponse; + /** Delete a Zone */ + deleteZone: DeletionResponse; + flushBufferedJobs: Success; + importProducts?: Maybe; + /** Authenticates the user using the native authentication strategy. This mutation is an alias for `authenticate({ native: { ... }})` */ + login: NativeAuthenticationResult; + logout: Success; + /** + * Allows an Order to be modified after it has been completed by the Customer. The Order must first + * be in the `Modifying` state. + */ + modifyOrder: ModifyOrderResult; + /** Move a Collection to a different parent or index */ + moveCollection: Collection; + refundOrder: RefundOrderResult; + reindex: Job; + /** Removes Collections from the specified Channel */ + removeCollectionsFromChannel: Array; + /** Removes the given coupon code from the draft Order */ + removeCouponCodeFromDraftOrder?: Maybe; + /** Remove Customers from a CustomerGroup */ + removeCustomersFromGroup: CustomerGroup; + /** Remove an OrderLine from the draft Order */ + removeDraftOrderLine: RemoveOrderItemsResult; + /** Removes Facets from the specified Channel */ + removeFacetsFromChannel: Array; + /** Remove members from a Zone */ + removeMembersFromZone: Zone; + /** Remove an OptionGroup from a Product */ + removeOptionGroupFromProduct: RemoveOptionGroupFromProductResult; + /** Removes ProductVariants from the specified Channel */ + removeProductVariantsFromChannel: Array; + /** Removes all ProductVariants of Product from the specified Channel */ + removeProductsFromChannel: Array; + /** Removes Promotions from the specified Channel */ + removePromotionsFromChannel: Array; + /** Remove all settled jobs in the given queues older than the given date. Returns the number of jobs deleted. */ + removeSettledJobs: Scalars['Int']; + runPendingSearchIndexUpdates: Success; + setCustomerForDraftOrder: SetCustomerForDraftOrderResult; + /** Sets the billing address for a draft Order */ + setDraftOrderBillingAddress: Order; + /** Allows any custom fields to be set for the active order */ + setDraftOrderCustomFields: Order; + /** Sets the shipping address for a draft Order */ + setDraftOrderShippingAddress: Order; + /** Sets the shipping method by id, which can be obtained with the `eligibleShippingMethodsForDraftOrder` query */ + setDraftOrderShippingMethod: SetOrderShippingMethodResult; + setOrderCustomFields?: Maybe; + settlePayment: SettlePaymentResult; + settleRefund: SettleRefundResult; + transitionFulfillmentToState: TransitionFulfillmentToStateResult; + transitionOrderToState?: Maybe; + transitionPaymentToState: TransitionPaymentToStateResult; + /** Update the active (currently logged-in) Administrator */ + updateActiveAdministrator: Administrator; + /** Update an existing Administrator */ + updateAdministrator: Administrator; + /** Update an existing Asset */ + updateAsset: Asset; + /** Update an existing Channel */ + updateChannel: UpdateChannelResult; + /** Update an existing Collection */ + updateCollection: Collection; + /** Update an existing Country */ + updateCountry: Country; + /** Update an existing Customer */ + updateCustomer: UpdateCustomerResult; + /** Update an existing Address */ + updateCustomerAddress: Address; + /** Update an existing CustomerGroup */ + updateCustomerGroup: CustomerGroup; + updateCustomerNote: HistoryEntry; + /** Update an existing Facet */ + updateFacet: Facet; + /** Update one or more FacetValues */ + updateFacetValues: Array; + updateGlobalSettings: UpdateGlobalSettingsResult; + updateOrderNote: HistoryEntry; + /** Update an existing PaymentMethod */ + updatePaymentMethod: PaymentMethod; + /** Update an existing Product */ + updateProduct: Product; + /** Create a new ProductOption within a ProductOptionGroup */ + updateProductOption: ProductOption; + /** Update an existing ProductOptionGroup */ + updateProductOptionGroup: ProductOptionGroup; + /** Update existing ProductVariants */ + updateProductVariants: Array>; + /** Update multiple existing Products */ + updateProducts: Array; + updatePromotion: UpdatePromotionResult; + /** Update an existing Role */ + updateRole: Role; + /** Update an existing Seller */ + updateSeller: Seller; + /** Update an existing ShippingMethod */ + updateShippingMethod: ShippingMethod; + updateStockLocation: StockLocation; + /** Update an existing Tag */ + updateTag: Tag; + /** Update an existing TaxCategory */ + updateTaxCategory: TaxCategory; + /** Update an existing TaxRate */ + updateTaxRate: TaxRate; + /** Update an existing Zone */ + updateZone: Zone; }; + export type MutationAddCustomersToGroupArgs = { - customerGroupId: Scalars['ID']; - customerIds: Array; + customerGroupId: Scalars['ID']; + customerIds: Array; }; + export type MutationAddFulfillmentToOrderArgs = { - input: FulfillOrderInput; + input: FulfillOrderInput; }; + export type MutationAddItemToDraftOrderArgs = { - input: AddItemToDraftOrderInput; - orderId: Scalars['ID']; + input: AddItemToDraftOrderInput; + orderId: Scalars['ID']; }; + export type MutationAddManualPaymentToOrderArgs = { - input: ManualPaymentInput; + input: ManualPaymentInput; }; + export type MutationAddMembersToZoneArgs = { - memberIds: Array; - zoneId: Scalars['ID']; + memberIds: Array; + zoneId: Scalars['ID']; }; + export type MutationAddNoteToCustomerArgs = { - input: AddNoteToCustomerInput; + input: AddNoteToCustomerInput; }; + export type MutationAddNoteToOrderArgs = { - input: AddNoteToOrderInput; + input: AddNoteToOrderInput; }; + export type MutationAddOptionGroupToProductArgs = { - optionGroupId: Scalars['ID']; - productId: Scalars['ID']; + optionGroupId: Scalars['ID']; + productId: Scalars['ID']; }; + export type MutationAdjustDraftOrderLineArgs = { - input: AdjustDraftOrderLineInput; - orderId: Scalars['ID']; + input: AdjustDraftOrderLineInput; + orderId: Scalars['ID']; }; + export type MutationApplyCouponCodeToDraftOrderArgs = { - couponCode: Scalars['String']; - orderId: Scalars['ID']; + couponCode: Scalars['String']; + orderId: Scalars['ID']; }; + export type MutationAssignAssetsToChannelArgs = { - input: AssignAssetsToChannelInput; + input: AssignAssetsToChannelInput; }; + export type MutationAssignCollectionsToChannelArgs = { - input: AssignCollectionsToChannelInput; + input: AssignCollectionsToChannelInput; }; + export type MutationAssignFacetsToChannelArgs = { - input: AssignFacetsToChannelInput; + input: AssignFacetsToChannelInput; }; + export type MutationAssignProductVariantsToChannelArgs = { - input: AssignProductVariantsToChannelInput; + input: AssignProductVariantsToChannelInput; }; + export type MutationAssignProductsToChannelArgs = { - input: AssignProductsToChannelInput; + input: AssignProductsToChannelInput; }; + export type MutationAssignPromotionsToChannelArgs = { - input: AssignPromotionsToChannelInput; + input: AssignPromotionsToChannelInput; }; + export type MutationAssignRoleToAdministratorArgs = { - administratorId: Scalars['ID']; - roleId: Scalars['ID']; + administratorId: Scalars['ID']; + roleId: Scalars['ID']; }; + export type MutationAuthenticateArgs = { - input: AuthenticationInput; - rememberMe?: InputMaybe; + input: AuthenticationInput; + rememberMe?: InputMaybe; }; + export type MutationCancelJobArgs = { - jobId: Scalars['ID']; + jobId: Scalars['ID']; }; + export type MutationCancelOrderArgs = { - input: CancelOrderInput; + input: CancelOrderInput; }; + export type MutationCancelPaymentArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type MutationCreateAdministratorArgs = { - input: CreateAdministratorInput; + input: CreateAdministratorInput; }; + export type MutationCreateAssetsArgs = { - input: Array; + input: Array; }; + export type MutationCreateChannelArgs = { - input: CreateChannelInput; + input: CreateChannelInput; }; + export type MutationCreateCollectionArgs = { - input: CreateCollectionInput; + input: CreateCollectionInput; }; + export type MutationCreateCountryArgs = { - input: CreateCountryInput; + input: CreateCountryInput; }; + export type MutationCreateCustomerArgs = { - input: CreateCustomerInput; - password?: InputMaybe; + input: CreateCustomerInput; + password?: InputMaybe; }; + export type MutationCreateCustomerAddressArgs = { - customerId: Scalars['ID']; - input: CreateAddressInput; + customerId: Scalars['ID']; + input: CreateAddressInput; }; + export type MutationCreateCustomerGroupArgs = { - input: CreateCustomerGroupInput; + input: CreateCustomerGroupInput; }; + export type MutationCreateFacetArgs = { - input: CreateFacetInput; + input: CreateFacetInput; }; + export type MutationCreateFacetValuesArgs = { - input: Array; + input: Array; }; + export type MutationCreatePaymentMethodArgs = { - input: CreatePaymentMethodInput; + input: CreatePaymentMethodInput; }; + export type MutationCreateProductArgs = { - input: CreateProductInput; + input: CreateProductInput; }; + export type MutationCreateProductOptionArgs = { - input: CreateProductOptionInput; + input: CreateProductOptionInput; }; + export type MutationCreateProductOptionGroupArgs = { - input: CreateProductOptionGroupInput; + input: CreateProductOptionGroupInput; }; + export type MutationCreateProductVariantsArgs = { - input: Array; + input: Array; }; + export type MutationCreatePromotionArgs = { - input: CreatePromotionInput; + input: CreatePromotionInput; }; + export type MutationCreateRoleArgs = { - input: CreateRoleInput; + input: CreateRoleInput; }; + export type MutationCreateSellerArgs = { - input: CreateSellerInput; + input: CreateSellerInput; }; + export type MutationCreateShippingMethodArgs = { - input: CreateShippingMethodInput; + input: CreateShippingMethodInput; }; + export type MutationCreateStockLocationArgs = { - input: CreateStockLocationInput; + input: CreateStockLocationInput; }; + export type MutationCreateTagArgs = { - input: CreateTagInput; + input: CreateTagInput; }; + export type MutationCreateTaxCategoryArgs = { - input: CreateTaxCategoryInput; + input: CreateTaxCategoryInput; }; + export type MutationCreateTaxRateArgs = { - input: CreateTaxRateInput; + input: CreateTaxRateInput; }; + export type MutationCreateZoneArgs = { - input: CreateZoneInput; + input: CreateZoneInput; }; + export type MutationDeleteAdministratorArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type MutationDeleteAssetArgs = { - input: DeleteAssetInput; + input: DeleteAssetInput; }; + export type MutationDeleteAssetsArgs = { - input: DeleteAssetsInput; + input: DeleteAssetsInput; }; + export type MutationDeleteChannelArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type MutationDeleteCollectionArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type MutationDeleteCollectionsArgs = { - ids: Array; + ids: Array; }; + export type MutationDeleteCountryArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type MutationDeleteCustomerArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type MutationDeleteCustomerAddressArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type MutationDeleteCustomerGroupArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type MutationDeleteCustomerNoteArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type MutationDeleteDraftOrderArgs = { - orderId: Scalars['ID']; + orderId: Scalars['ID']; }; + export type MutationDeleteFacetArgs = { - force?: InputMaybe; - id: Scalars['ID']; + force?: InputMaybe; + id: Scalars['ID']; }; + export type MutationDeleteFacetValuesArgs = { - force?: InputMaybe; - ids: Array; + force?: InputMaybe; + ids: Array; }; + export type MutationDeleteFacetsArgs = { - force?: InputMaybe; - ids: Array; + force?: InputMaybe; + ids: Array; }; + export type MutationDeleteOrderNoteArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type MutationDeletePaymentMethodArgs = { - force?: InputMaybe; - id: Scalars['ID']; + force?: InputMaybe; + id: Scalars['ID']; }; + export type MutationDeleteProductArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type MutationDeleteProductOptionArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type MutationDeleteProductVariantArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type MutationDeleteProductVariantsArgs = { - ids: Array; + ids: Array; }; + export type MutationDeleteProductsArgs = { - ids: Array; + ids: Array; }; + export type MutationDeletePromotionArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type MutationDeleteRoleArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type MutationDeleteSellerArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type MutationDeleteShippingMethodArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type MutationDeleteStockLocationArgs = { - input: DeleteStockLocationInput; + input: DeleteStockLocationInput; }; + export type MutationDeleteTagArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type MutationDeleteTaxCategoryArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type MutationDeleteTaxRateArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type MutationDeleteZoneArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type MutationFlushBufferedJobsArgs = { - bufferIds?: InputMaybe>; + bufferIds?: InputMaybe>; }; + export type MutationImportProductsArgs = { - csvFile: Scalars['Upload']; + csvFile: Scalars['Upload']; }; + export type MutationLoginArgs = { - password: Scalars['String']; - rememberMe?: InputMaybe; - username: Scalars['String']; + password: Scalars['String']; + rememberMe?: InputMaybe; + username: Scalars['String']; }; + export type MutationModifyOrderArgs = { - input: ModifyOrderInput; + input: ModifyOrderInput; }; + export type MutationMoveCollectionArgs = { - input: MoveCollectionInput; + input: MoveCollectionInput; }; + export type MutationRefundOrderArgs = { - input: RefundOrderInput; + input: RefundOrderInput; }; + export type MutationRemoveCollectionsFromChannelArgs = { - input: RemoveCollectionsFromChannelInput; + input: RemoveCollectionsFromChannelInput; }; + export type MutationRemoveCouponCodeFromDraftOrderArgs = { - couponCode: Scalars['String']; - orderId: Scalars['ID']; + couponCode: Scalars['String']; + orderId: Scalars['ID']; }; + export type MutationRemoveCustomersFromGroupArgs = { - customerGroupId: Scalars['ID']; - customerIds: Array; + customerGroupId: Scalars['ID']; + customerIds: Array; }; + export type MutationRemoveDraftOrderLineArgs = { - orderId: Scalars['ID']; - orderLineId: Scalars['ID']; + orderId: Scalars['ID']; + orderLineId: Scalars['ID']; }; + export type MutationRemoveFacetsFromChannelArgs = { - input: RemoveFacetsFromChannelInput; + input: RemoveFacetsFromChannelInput; }; + export type MutationRemoveMembersFromZoneArgs = { - memberIds: Array; - zoneId: Scalars['ID']; + memberIds: Array; + zoneId: Scalars['ID']; }; + export type MutationRemoveOptionGroupFromProductArgs = { - optionGroupId: Scalars['ID']; - productId: Scalars['ID']; + optionGroupId: Scalars['ID']; + productId: Scalars['ID']; }; + export type MutationRemoveProductVariantsFromChannelArgs = { - input: RemoveProductVariantsFromChannelInput; + input: RemoveProductVariantsFromChannelInput; }; + export type MutationRemoveProductsFromChannelArgs = { - input: RemoveProductsFromChannelInput; + input: RemoveProductsFromChannelInput; }; + export type MutationRemovePromotionsFromChannelArgs = { - input: RemovePromotionsFromChannelInput; + input: RemovePromotionsFromChannelInput; }; + export type MutationRemoveSettledJobsArgs = { - olderThan?: InputMaybe; - queueNames?: InputMaybe>; + olderThan?: InputMaybe; + queueNames?: InputMaybe>; }; + export type MutationSetCustomerForDraftOrderArgs = { - customerId?: InputMaybe; - input?: InputMaybe; - orderId: Scalars['ID']; + customerId?: InputMaybe; + input?: InputMaybe; + orderId: Scalars['ID']; }; + export type MutationSetDraftOrderBillingAddressArgs = { - input: CreateAddressInput; - orderId: Scalars['ID']; + input: CreateAddressInput; + orderId: Scalars['ID']; }; + export type MutationSetDraftOrderCustomFieldsArgs = { - input: UpdateOrderInput; - orderId: Scalars['ID']; + input: UpdateOrderInput; + orderId: Scalars['ID']; }; + export type MutationSetDraftOrderShippingAddressArgs = { - input: CreateAddressInput; - orderId: Scalars['ID']; + input: CreateAddressInput; + orderId: Scalars['ID']; }; + export type MutationSetDraftOrderShippingMethodArgs = { - orderId: Scalars['ID']; - shippingMethodId: Scalars['ID']; + orderId: Scalars['ID']; + shippingMethodId: Scalars['ID']; }; + export type MutationSetOrderCustomFieldsArgs = { - input: UpdateOrderInput; + input: UpdateOrderInput; }; + export type MutationSettlePaymentArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type MutationSettleRefundArgs = { - input: SettleRefundInput; + input: SettleRefundInput; }; + export type MutationTransitionFulfillmentToStateArgs = { - id: Scalars['ID']; - state: Scalars['String']; + id: Scalars['ID']; + state: Scalars['String']; }; + export type MutationTransitionOrderToStateArgs = { - id: Scalars['ID']; - state: Scalars['String']; + id: Scalars['ID']; + state: Scalars['String']; }; + export type MutationTransitionPaymentToStateArgs = { - id: Scalars['ID']; - state: Scalars['String']; + id: Scalars['ID']; + state: Scalars['String']; }; + export type MutationUpdateActiveAdministratorArgs = { - input: UpdateActiveAdministratorInput; + input: UpdateActiveAdministratorInput; }; + export type MutationUpdateAdministratorArgs = { - input: UpdateAdministratorInput; + input: UpdateAdministratorInput; }; + export type MutationUpdateAssetArgs = { - input: UpdateAssetInput; + input: UpdateAssetInput; }; + export type MutationUpdateChannelArgs = { - input: UpdateChannelInput; + input: UpdateChannelInput; }; + export type MutationUpdateCollectionArgs = { - input: UpdateCollectionInput; + input: UpdateCollectionInput; }; + export type MutationUpdateCountryArgs = { - input: UpdateCountryInput; + input: UpdateCountryInput; }; + export type MutationUpdateCustomerArgs = { - input: UpdateCustomerInput; + input: UpdateCustomerInput; }; + export type MutationUpdateCustomerAddressArgs = { - input: UpdateAddressInput; + input: UpdateAddressInput; }; + export type MutationUpdateCustomerGroupArgs = { - input: UpdateCustomerGroupInput; + input: UpdateCustomerGroupInput; }; + export type MutationUpdateCustomerNoteArgs = { - input: UpdateCustomerNoteInput; + input: UpdateCustomerNoteInput; }; + export type MutationUpdateFacetArgs = { - input: UpdateFacetInput; + input: UpdateFacetInput; }; + export type MutationUpdateFacetValuesArgs = { - input: Array; + input: Array; }; + export type MutationUpdateGlobalSettingsArgs = { - input: UpdateGlobalSettingsInput; + input: UpdateGlobalSettingsInput; }; + export type MutationUpdateOrderNoteArgs = { - input: UpdateOrderNoteInput; + input: UpdateOrderNoteInput; }; + export type MutationUpdatePaymentMethodArgs = { - input: UpdatePaymentMethodInput; + input: UpdatePaymentMethodInput; }; + export type MutationUpdateProductArgs = { - input: UpdateProductInput; + input: UpdateProductInput; }; + export type MutationUpdateProductOptionArgs = { - input: UpdateProductOptionInput; + input: UpdateProductOptionInput; }; + export type MutationUpdateProductOptionGroupArgs = { - input: UpdateProductOptionGroupInput; + input: UpdateProductOptionGroupInput; }; + export type MutationUpdateProductVariantsArgs = { - input: Array; + input: Array; }; + export type MutationUpdateProductsArgs = { - input: Array; + input: Array; }; + export type MutationUpdatePromotionArgs = { - input: UpdatePromotionInput; + input: UpdatePromotionInput; }; + export type MutationUpdateRoleArgs = { - input: UpdateRoleInput; + input: UpdateRoleInput; }; + export type MutationUpdateSellerArgs = { - input: UpdateSellerInput; + input: UpdateSellerInput; }; + export type MutationUpdateShippingMethodArgs = { - input: UpdateShippingMethodInput; + input: UpdateShippingMethodInput; }; + export type MutationUpdateStockLocationArgs = { - input: UpdateStockLocationInput; + input: UpdateStockLocationInput; }; + export type MutationUpdateTagArgs = { - input: UpdateTagInput; + input: UpdateTagInput; }; + export type MutationUpdateTaxCategoryArgs = { - input: UpdateTaxCategoryInput; + input: UpdateTaxCategoryInput; }; + export type MutationUpdateTaxRateArgs = { - input: UpdateTaxRateInput; + input: UpdateTaxRateInput; }; + export type MutationUpdateZoneArgs = { - input: UpdateZoneInput; + input: UpdateZoneInput; }; export type NativeAuthInput = { - password: Scalars['String']; - username: Scalars['String']; + password: Scalars['String']; + username: Scalars['String']; }; /** Returned when attempting an operation that relies on the NativeAuthStrategy, if that strategy is not configured. */ export type NativeAuthStrategyError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; }; export type NativeAuthenticationResult = CurrentUser | InvalidCredentialsError | NativeAuthStrategyError; /** Returned when attempting to set a negative OrderLine quantity. */ export type NegativeQuantityError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; }; /** @@ -3219,342 +3318,343 @@ export type NegativeQuantityError = ErrorResult & { * current session. */ export type NoActiveOrderError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; }; /** Returned when a call to modifyOrder fails to specify any changes */ export type NoChangesSpecifiedError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; }; export type Node = { - id: Scalars['ID']; + id: Scalars['ID']; }; /** Returned if an attempting to refund an Order but neither items nor shipping refund was specified */ export type NothingToRefundError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; }; /** Operators for filtering on a list of Number fields */ export type NumberListOperators = { - inList: Scalars['Float']; + inList: Scalars['Float']; }; /** Operators for filtering on a Int or Float field */ export type NumberOperators = { - between?: InputMaybe; - eq?: InputMaybe; - gt?: InputMaybe; - gte?: InputMaybe; - isNull?: InputMaybe; - lt?: InputMaybe; - lte?: InputMaybe; + between?: InputMaybe; + eq?: InputMaybe; + gt?: InputMaybe; + gte?: InputMaybe; + isNull?: InputMaybe; + lt?: InputMaybe; + lte?: InputMaybe; }; export type NumberRange = { - end: Scalars['Float']; - start: Scalars['Float']; + end: Scalars['Float']; + start: Scalars['Float']; }; export type Order = Node & { - /** An order is active as long as the payment process has not been completed */ - active: Scalars['Boolean']; - aggregateOrder?: Maybe; - aggregateOrderId?: Maybe; - billingAddress?: Maybe; - channels: Array; - /** A unique code for the Order */ - code: Scalars['String']; - /** An array of all coupon codes applied to the Order */ - couponCodes: Array; - createdAt: Scalars['DateTime']; - currencyCode: CurrencyCode; - customFields?: Maybe; - customer?: Maybe; - discounts: Array; - fulfillments?: Maybe>; - history: HistoryEntryList; - id: Scalars['ID']; - lines: Array; - modifications: Array; - nextStates: Array; - /** - * The date & time that the Order was placed, i.e. the Customer - * completed the checkout and the Order is no longer "active" - */ - orderPlacedAt?: Maybe; - payments?: Maybe>; - /** Promotions applied to the order. Only gets populated after the payment process has completed. */ - promotions: Array; - sellerOrders?: Maybe>; - shipping: Scalars['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; - fulfillmentLines?: Maybe>; - id: Scalars['ID']; - /** 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; - /** The quantity at the time the Order was placed */ - orderPlacedQuantity: Scalars['Int']; - productVariant: ProductVariant; - /** - * The actual line price, taking into account both item discounts _and_ prorated (proportionally-distributed) - * Order-level discounts. This value is the true economic value of the OrderLine, and is used in tax - * and refund calculations. - */ - proratedLinePrice: Scalars['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; + fulfillmentLines?: Maybe>; + id: Scalars['ID']; + /** 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; + /** The quantity at the time the Order was placed */ + orderPlacedQuantity: Scalars['Int']; + productVariant: ProductVariant; + /** + * The actual line price, taking into account both item discounts _and_ prorated (proportionally-distributed) + * Order-level discounts. This value is the true economic value of the OrderLine, and is used in tax + * and refund calculations. + */ + proratedLinePrice: Scalars['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']; - lines: Array; - note: Scalars['String']; - payment?: Maybe; - priceChange: Scalars['Int']; - refund?: Maybe; - surcharges?: Maybe>; - updatedAt: Scalars['DateTime']; + createdAt: Scalars['DateTime']; + id: Scalars['ID']; + isSettled: Scalars['Boolean']; + lines: Array; + note: Scalars['String']; + payment?: Maybe; + priceChange: Scalars['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']; }; export type OrderModificationLine = { - modification: OrderModification; - modificationId: Scalars['ID']; - orderLine: OrderLine; - orderLineId: Scalars['ID']; - quantity: Scalars['Int']; + modification: OrderModification; + modificationId: Scalars['ID']; + orderLine: OrderLine; + orderLineId: Scalars['ID']; + quantity: Scalars['Int']; }; /** Returned when attempting to modify the contents of an Order that is not in the `Modifying` state. */ export type OrderModificationStateError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; }; export type OrderProcessState = { - name: Scalars['String']; - to: Array; + name: Scalars['String']; + to: Array; }; export type OrderSortParameter = { - aggregateOrderId?: InputMaybe; - code?: InputMaybe; - createdAt?: InputMaybe; - customerLastName?: InputMaybe; - id?: InputMaybe; - orderPlacedAt?: InputMaybe; - shipping?: InputMaybe; - shippingWithTax?: InputMaybe; - state?: InputMaybe; - subTotal?: InputMaybe; - subTotalWithTax?: InputMaybe; - total?: InputMaybe; - totalQuantity?: InputMaybe; - totalWithTax?: InputMaybe; - transactionId?: InputMaybe; - updatedAt?: InputMaybe; + aggregateOrderId?: InputMaybe; + code?: InputMaybe; + createdAt?: InputMaybe; + customerLastName?: InputMaybe; + id?: InputMaybe; + orderPlacedAt?: InputMaybe; + shipping?: InputMaybe; + shippingWithTax?: InputMaybe; + state?: InputMaybe; + subTotal?: InputMaybe; + subTotalWithTax?: InputMaybe; + total?: InputMaybe; + totalQuantity?: InputMaybe; + totalWithTax?: InputMaybe; + transactionId?: InputMaybe; + updatedAt?: InputMaybe; }; /** Returned if there is an error in transitioning the Order state */ export type OrderStateTransitionError = ErrorResult & { - errorCode: ErrorCode; - fromState: Scalars['String']; - message: Scalars['String']; - toState: Scalars['String']; - transitionError: Scalars['String']; + errorCode: ErrorCode; + fromState: Scalars['String']; + message: Scalars['String']; + toState: Scalars['String']; + transitionError: Scalars['String']; }; /** @@ -3562,80 +3662,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; }; /** @@ -3643,42 +3743,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']; }; /** @@ -3714,855 +3814,899 @@ 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']; - /** @deprecated use stockLevels */ - stockAllocated: Scalars['Int']; - stockLevel: Scalars['String']; - stockLevels: Array; - stockMovements: StockMovementList; - /** @deprecated use stockLevels */ - stockOnHand: Scalars['Int']; - taxCategory: TaxCategory; - taxRateApplied: TaxRate; - trackInventory: GlobalFlag; - translations: Array; - updatedAt: Scalars['DateTime']; - useGlobalOutOfStockThreshold: Scalars['Boolean']; + assets: Array; + channels: Array; + createdAt: Scalars['DateTime']; + currencyCode: CurrencyCode; + customFields?: Maybe; + enabled: Scalars['Boolean']; + facetValues: Array; + featuredAsset?: Maybe; + id: Scalars['ID']; + languageCode: LanguageCode; + name: Scalars['String']; + options: Array; + outOfStockThreshold: Scalars['Int']; + price: Scalars['Int']; + priceWithTax: Scalars['Int']; + product: Product; + productId: Scalars['ID']; + sku: Scalars['String']; + /** @deprecated use stockLevels */ + stockAllocated: Scalars['Int']; + stockLevel: Scalars['String']; + stockLevels: Array; + stockMovements: StockMovementList; + /** @deprecated use stockLevels */ + stockOnHand: Scalars['Int']; + taxCategory: TaxCategory; + taxRateApplied: TaxRate; + trackInventory: GlobalFlag; + translations: Array; + updatedAt: Scalars['DateTime']; + useGlobalOutOfStockThreshold: Scalars['Boolean']; }; + export type ProductVariantStockMovementsArgs = { - options?: InputMaybe; + options?: InputMaybe; }; export type ProductVariantFilterParameter = { - createdAt?: InputMaybe; - currencyCode?: InputMaybe; - enabled?: InputMaybe; - id?: InputMaybe; - languageCode?: InputMaybe; - name?: InputMaybe; - outOfStockThreshold?: InputMaybe; - price?: InputMaybe; - priceWithTax?: InputMaybe; - productId?: InputMaybe; - sku?: InputMaybe; - stockAllocated?: InputMaybe; - stockLevel?: InputMaybe; - stockOnHand?: InputMaybe; - trackInventory?: InputMaybe; - updatedAt?: InputMaybe; - useGlobalOutOfStockThreshold?: InputMaybe; + createdAt?: InputMaybe; + currencyCode?: InputMaybe; + enabled?: InputMaybe; + id?: InputMaybe; + languageCode?: InputMaybe; + name?: InputMaybe; + outOfStockThreshold?: InputMaybe; + price?: InputMaybe; + priceWithTax?: InputMaybe; + productId?: InputMaybe; + sku?: InputMaybe; + stockAllocated?: InputMaybe; + stockLevel?: InputMaybe; + stockOnHand?: InputMaybe; + trackInventory?: InputMaybe; + updatedAt?: InputMaybe; + useGlobalOutOfStockThreshold?: InputMaybe; }; export type ProductVariantList = PaginatedList & { - items: Array; - totalItems: Scalars['Int']; + items: Array; + totalItems: Scalars['Int']; }; export type ProductVariantListOptions = { - /** Allows the results to be filtered */ - filter?: InputMaybe; - /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ - filterOperator?: InputMaybe; - /** Skips the first n results, for use in pagination */ - skip?: InputMaybe; - /** Specifies which properties to sort the results by */ - sort?: InputMaybe; - /** Takes n results, for use in pagination */ - take?: InputMaybe; + /** Allows the results to be filtered */ + filter?: InputMaybe; + /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ + filterOperator?: InputMaybe; + /** Skips the first n results, for use in pagination */ + skip?: InputMaybe; + /** Specifies which properties to sort the results by */ + sort?: InputMaybe; + /** Takes n results, for use in pagination */ + take?: InputMaybe; }; export type ProductVariantSortParameter = { - createdAt?: InputMaybe; - id?: InputMaybe; - name?: InputMaybe; - outOfStockThreshold?: InputMaybe; - price?: InputMaybe; - priceWithTax?: InputMaybe; - productId?: InputMaybe; - sku?: InputMaybe; - stockAllocated?: InputMaybe; - stockLevel?: InputMaybe; - stockOnHand?: InputMaybe; - updatedAt?: InputMaybe; + createdAt?: InputMaybe; + id?: InputMaybe; + name?: InputMaybe; + outOfStockThreshold?: InputMaybe; + price?: InputMaybe; + priceWithTax?: InputMaybe; + productId?: InputMaybe; + sku?: InputMaybe; + stockAllocated?: InputMaybe; + stockLevel?: InputMaybe; + stockOnHand?: InputMaybe; + updatedAt?: InputMaybe; }; export type ProductVariantTranslation = { - createdAt: Scalars['DateTime']; - id: Scalars['ID']; - languageCode: LanguageCode; - name: Scalars['String']; - updatedAt: Scalars['DateTime']; + createdAt: Scalars['DateTime']; + id: Scalars['ID']; + languageCode: LanguageCode; + name: Scalars['String']; + updatedAt: Scalars['DateTime']; }; export type ProductVariantTranslationInput = { - customFields?: InputMaybe; - id?: InputMaybe; - languageCode: LanguageCode; - name?: InputMaybe; + customFields?: InputMaybe; + id?: InputMaybe; + languageCode: LanguageCode; + name?: InputMaybe; }; export type Promotion = Node & { - actions: Array; - conditions: Array; - couponCode?: Maybe; - createdAt: Scalars['DateTime']; - customFields?: Maybe; - 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; - stockLocation?: Maybe; - stockLocations: StockLocationList; - tag: Tag; - tags: TagList; - taxCategories: Array; - taxCategory?: Maybe; - taxRate?: Maybe; - taxRates: TaxRateList; - testEligibleShippingMethods: Array; - testShippingMethod: TestShippingMethodResult; - zone?: Maybe; - zones: Array; + activeAdministrator?: Maybe; + activeChannel: Channel; + administrator?: Maybe; + administrators: AdministratorList; + /** Get a single Asset by id */ + asset?: Maybe; + /** Get a list of Assets */ + assets: AssetList; + channel?: Maybe; + channels: Array; + /** Get a Collection either by id or slug. If neither id nor slug is specified, an error will result. */ + collection?: Maybe; + collectionFilters: Array; + collections: CollectionList; + countries: CountryList; + country?: Maybe; + customer?: Maybe; + customerGroup?: Maybe; + customerGroups: CustomerGroupList; + customers: CustomerList; + /** Returns a list of eligible shipping methods for the draft Order */ + eligibleShippingMethodsForDraftOrder: Array; + facet?: Maybe; + facetValues: FacetValueList; + facets: FacetList; + fulfillmentHandlers: Array; + globalSettings: GlobalSettings; + job?: Maybe; + jobBufferSize: Array; + jobQueues: Array; + jobs: JobList; + jobsById: Array; + me?: Maybe; + order?: Maybe; + orders: OrderList; + paymentMethod?: Maybe; + paymentMethodEligibilityCheckers: Array; + paymentMethodHandlers: Array; + paymentMethods: PaymentMethodList; + pendingSearchIndexUpdates: Scalars['Int']; + /** Used for real-time previews of the contents of a Collection */ + previewCollectionVariants: ProductVariantList; + /** Get a Product either by id or slug. If neither id nor slug is specified, an error will result. */ + product?: Maybe; + productOptionGroup?: Maybe; + productOptionGroups: Array; + /** Get a ProductVariant by id */ + productVariant?: Maybe; + /** List ProductVariants either all or for the specific product. */ + productVariants: ProductVariantList; + /** List Products */ + products: ProductList; + promotion?: Maybe; + promotionActions: Array; + promotionConditions: Array; + promotions: PromotionList; + role?: Maybe; + roles: RoleList; + search: SearchResponse; + seller?: Maybe; + sellers: SellerList; + shippingCalculators: Array; + shippingEligibilityCheckers: Array; + shippingMethod?: Maybe; + shippingMethods: ShippingMethodList; + stockLocation?: Maybe; + stockLocations: StockLocationList; + tag: Tag; + tags: TagList; + taxCategories: Array; + taxCategory?: Maybe; + taxRate?: Maybe; + taxRates: TaxRateList; + testEligibleShippingMethods: Array; + testShippingMethod: TestShippingMethodResult; + zone?: Maybe; + zones: Array; }; + export type QueryAdministratorArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type QueryAdministratorsArgs = { - options?: InputMaybe; + options?: InputMaybe; }; + export type QueryAssetArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type QueryAssetsArgs = { - options?: InputMaybe; + options?: InputMaybe; }; + export type QueryChannelArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type QueryCollectionArgs = { - id?: InputMaybe; - slug?: InputMaybe; + id?: InputMaybe; + slug?: InputMaybe; }; + export type QueryCollectionsArgs = { - options?: InputMaybe; + options?: InputMaybe; }; + export type QueryCountriesArgs = { - options?: InputMaybe; + options?: InputMaybe; }; + export type QueryCountryArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type QueryCustomerArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type QueryCustomerGroupArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type QueryCustomerGroupsArgs = { - options?: InputMaybe; + options?: InputMaybe; }; + export type QueryCustomersArgs = { - options?: InputMaybe; + options?: InputMaybe; }; + export type QueryEligibleShippingMethodsForDraftOrderArgs = { - orderId: Scalars['ID']; + orderId: Scalars['ID']; }; + export type QueryFacetArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type QueryFacetValuesArgs = { - options?: InputMaybe; + options?: InputMaybe; }; + export type QueryFacetsArgs = { - options?: InputMaybe; + options?: InputMaybe; }; + export type QueryJobArgs = { - jobId: Scalars['ID']; + jobId: Scalars['ID']; }; + export type QueryJobBufferSizeArgs = { - bufferIds?: InputMaybe>; + bufferIds?: InputMaybe>; }; + export type QueryJobsArgs = { - options?: InputMaybe; + options?: InputMaybe; }; + export type QueryJobsByIdArgs = { - jobIds: Array; + jobIds: Array; }; + export type QueryOrderArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type QueryOrdersArgs = { - options?: InputMaybe; + options?: InputMaybe; }; + export type QueryPaymentMethodArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type QueryPaymentMethodsArgs = { - options?: InputMaybe; + options?: InputMaybe; }; + export type QueryPreviewCollectionVariantsArgs = { - input: PreviewCollectionVariantsInput; - options?: InputMaybe; + input: PreviewCollectionVariantsInput; + options?: InputMaybe; }; + export type QueryProductArgs = { - id?: InputMaybe; - slug?: InputMaybe; + id?: InputMaybe; + slug?: InputMaybe; }; + export type QueryProductOptionGroupArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type QueryProductOptionGroupsArgs = { - filterTerm?: InputMaybe; + filterTerm?: InputMaybe; }; + export type QueryProductVariantArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type QueryProductVariantsArgs = { - options?: InputMaybe; - productId?: InputMaybe; + options?: InputMaybe; + productId?: InputMaybe; }; + export type QueryProductsArgs = { - options?: InputMaybe; + options?: InputMaybe; }; + export type QueryPromotionArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type QueryPromotionsArgs = { - options?: InputMaybe; + options?: InputMaybe; }; + export type QueryRoleArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type QueryRolesArgs = { - options?: InputMaybe; + options?: InputMaybe; }; + export type QuerySearchArgs = { - input: SearchInput; + input: SearchInput; }; + export type QuerySellerArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type QuerySellersArgs = { - options?: InputMaybe; + options?: InputMaybe; }; + export type QueryShippingMethodArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type QueryShippingMethodsArgs = { - options?: InputMaybe; + options?: InputMaybe; }; + export type QueryStockLocationArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type QueryStockLocationsArgs = { - options?: InputMaybe; + options?: InputMaybe; }; + export type QueryTagArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type QueryTagsArgs = { - options?: InputMaybe; + options?: InputMaybe; }; + export type QueryTaxCategoryArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type QueryTaxRateArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type QueryTaxRatesArgs = { - options?: InputMaybe; + options?: InputMaybe; }; + export type QueryTestEligibleShippingMethodsArgs = { - input: TestEligibleShippingMethodsInput; + input: TestEligibleShippingMethodsInput; }; + export type QueryTestShippingMethodArgs = { - input: TestShippingMethodInput; + input: TestShippingMethodInput; }; + export type QueryZoneArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; export type Refund = Node & { - adjustment: Scalars['Int']; - createdAt: Scalars['DateTime']; - id: Scalars['ID']; - items: Scalars['Int']; - lines: Array; - metadata?: Maybe; - method?: Maybe; - 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']; + lines: Array; + metadata?: Maybe; + method?: Maybe; + paymentId: Scalars['ID']; + reason?: Maybe; + shipping: Scalars['Int']; + state: Scalars['String']; + total: Scalars['Int']; + transactionId?: Maybe; + updatedAt: Scalars['DateTime']; }; export type RefundLine = { - orderLine: OrderLine; - orderLineId: Scalars['ID']; - quantity: Scalars['Int']; - refund: Refund; - refundId: Scalars['ID']; + orderLine: OrderLine; + orderLineId: Scalars['ID']; + quantity: Scalars['Int']; + refund: Refund; + refundId: Scalars['ID']; }; export type RefundOrderInput = { - adjustment: Scalars['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']; }; /** @@ -4570,55 +4714,54 @@ 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; @@ -4626,627 +4769,616 @@ 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 SellerFilterParameter = { - createdAt?: InputMaybe; - id?: InputMaybe; - name?: InputMaybe; - updatedAt?: InputMaybe; + createdAt?: InputMaybe; + id?: InputMaybe; + name?: InputMaybe; + updatedAt?: InputMaybe; }; export type SellerList = PaginatedList & { - items: Array; - totalItems: Scalars['Int']; + items: Array; + totalItems: Scalars['Int']; }; export type SellerListOptions = { - /** Allows the results to be filtered */ - filter?: InputMaybe; - /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ - filterOperator?: InputMaybe; - /** Skips the first n results, for use in pagination */ - skip?: InputMaybe; - /** Specifies which properties to sort the results by */ - sort?: InputMaybe; - /** Takes n results, for use in pagination */ - take?: InputMaybe; + /** Allows the results to be filtered */ + filter?: InputMaybe; + /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ + filterOperator?: InputMaybe; + /** Skips the first n results, for use in pagination */ + skip?: InputMaybe; + /** Specifies which properties to sort the results by */ + sort?: InputMaybe; + /** Takes n results, for use in pagination */ + take?: InputMaybe; }; export type SellerSortParameter = { - createdAt?: InputMaybe; - id?: InputMaybe; - name?: InputMaybe; - updatedAt?: InputMaybe; + createdAt?: InputMaybe; + id?: InputMaybe; + name?: InputMaybe; + updatedAt?: InputMaybe; }; export type ServerConfig = { - customFieldConfig: CustomFields; - orderProcess: Array; - permissions: Array; - permittedAssetTypes: Array; + customFieldConfig: CustomFields; + orderProcess: Array; + permissions: Array; + permittedAssetTypes: Array; }; export type SetCustomerForDraftOrderResult = EmailAddressConflictError | Order; -export type SetOrderShippingMethodResult = - | IneligibleShippingMethodError - | NoActiveOrderError - | Order - | OrderModificationError; +export type SetOrderShippingMethodResult = IneligibleShippingMethodError | NoActiveOrderError | Order | OrderModificationError; /** Returned if the Payment settlement fails */ export type SettlePaymentError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; - paymentErrorMessage: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; + paymentErrorMessage: Scalars['String']; }; -export type SettlePaymentResult = - | OrderStateTransitionError - | Payment - | PaymentStateTransitionError - | SettlePaymentError; +export type SettlePaymentResult = OrderStateTransitionError | Payment | PaymentStateTransitionError | SettlePaymentError; export type SettleRefundInput = { - id: Scalars['ID']; - transactionId: Scalars['String']; + id: Scalars['ID']; + transactionId: Scalars['String']; }; export type SettleRefundResult = Refund | RefundStateTransitionError; export type ShippingLine = { - discountedPrice: Scalars['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 StockLevel = Node & { - createdAt: Scalars['DateTime']; - id: Scalars['ID']; - stockAllocated: Scalars['Int']; - stockLocation: StockLocation; - stockLocationId: Scalars['ID']; - stockOnHand: Scalars['Int']; - updatedAt: Scalars['DateTime']; + createdAt: Scalars['DateTime']; + id: Scalars['ID']; + stockAllocated: Scalars['Int']; + stockLocation: StockLocation; + stockLocationId: Scalars['ID']; + stockOnHand: Scalars['Int']; + updatedAt: Scalars['DateTime']; }; export type StockLevelInput = { - stockLocationId: Scalars['ID']; - stockOnHand: Scalars['Int']; + stockLocationId: Scalars['ID']; + stockOnHand: Scalars['Int']; }; export type StockLocation = Node & { - createdAt: Scalars['DateTime']; - customFields?: Maybe; - description: Scalars['String']; - id: Scalars['ID']; - name: Scalars['String']; - updatedAt: Scalars['DateTime']; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + description: Scalars['String']; + id: Scalars['ID']; + name: Scalars['String']; + updatedAt: Scalars['DateTime']; }; export type StockLocationFilterParameter = { - createdAt?: InputMaybe; - description?: InputMaybe; - id?: InputMaybe; - name?: InputMaybe; - updatedAt?: InputMaybe; + createdAt?: InputMaybe; + description?: InputMaybe; + id?: InputMaybe; + name?: InputMaybe; + updatedAt?: InputMaybe; }; export type StockLocationList = PaginatedList & { - items: Array; - totalItems: Scalars['Int']; + items: Array; + totalItems: Scalars['Int']; }; export type StockLocationListOptions = { - /** Allows the results to be filtered */ - filter?: InputMaybe; - /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ - filterOperator?: InputMaybe; - /** Skips the first n results, for use in pagination */ - skip?: InputMaybe; - /** Specifies which properties to sort the results by */ - sort?: InputMaybe; - /** Takes n results, for use in pagination */ - take?: InputMaybe; + /** Allows the results to be filtered */ + filter?: InputMaybe; + /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ + filterOperator?: InputMaybe; + /** Skips the first n results, for use in pagination */ + skip?: InputMaybe; + /** Specifies which properties to sort the results by */ + sort?: InputMaybe; + /** Takes n results, for use in pagination */ + take?: InputMaybe; }; export type StockLocationSortParameter = { - createdAt?: InputMaybe; - description?: InputMaybe; - id?: InputMaybe; - name?: InputMaybe; - updatedAt?: InputMaybe; + createdAt?: InputMaybe; + description?: InputMaybe; + id?: InputMaybe; + name?: InputMaybe; + updatedAt?: InputMaybe; }; export type StockMovement = { - createdAt: Scalars['DateTime']; - id: Scalars['ID']; - productVariant: ProductVariant; - quantity: Scalars['Int']; - type: StockMovementType; - updatedAt: Scalars['DateTime']; + createdAt: Scalars['DateTime']; + id: Scalars['ID']; + productVariant: ProductVariant; + quantity: Scalars['Int']; + type: StockMovementType; + updatedAt: Scalars['DateTime']; }; export type StockMovementItem = Allocation | Cancellation | Release | Return | Sale | StockAdjustment; export type StockMovementList = { - items: Array; - totalItems: Scalars['Int']; + items: Array; + totalItems: Scalars['Int']; }; export type StockMovementListOptions = { - skip?: InputMaybe; - take?: InputMaybe; - type?: InputMaybe; + skip?: InputMaybe; + take?: InputMaybe; + type?: InputMaybe; }; export enum StockMovementType { - ADJUSTMENT = 'ADJUSTMENT', - ALLOCATION = 'ALLOCATION', - CANCELLATION = 'CANCELLATION', - RELEASE = 'RELEASE', - RETURN = 'RETURN', - SALE = 'SALE', + ADJUSTMENT = 'ADJUSTMENT', + ALLOCATION = 'ALLOCATION', + CANCELLATION = 'CANCELLATION', + RELEASE = 'RELEASE', + RETURN = 'RETURN', + SALE = 'SALE' } export type StringCustomFieldConfig = CustomField & { - description?: Maybe>; - internal?: Maybe; - label?: Maybe>; - length?: Maybe; - list: Scalars['Boolean']; - name: Scalars['String']; - nullable?: Maybe; - options?: Maybe>; - pattern?: Maybe; - readonly?: Maybe; - type: Scalars['String']; - ui?: Maybe; + description?: Maybe>; + internal?: Maybe; + label?: Maybe>; + length?: Maybe; + list: Scalars['Boolean']; + name: Scalars['String']; + nullable?: Maybe; + options?: Maybe>; + pattern?: Maybe; + readonly?: Maybe; + type: Scalars['String']; + ui?: Maybe; }; export type StringFieldOption = { - label?: Maybe>; - value: Scalars['String']; + label?: Maybe>; + value: Scalars['String']; }; /** Operators for filtering on a list of String fields */ export type StringListOperators = { - inList: Scalars['String']; + inList: Scalars['String']; }; /** Operators for filtering on a String field */ export type StringOperators = { - contains?: InputMaybe; - eq?: InputMaybe; - in?: InputMaybe>; - isNull?: InputMaybe; - notContains?: InputMaybe; - notEq?: InputMaybe; - notIn?: InputMaybe>; - regex?: InputMaybe; + contains?: InputMaybe; + eq?: InputMaybe; + in?: InputMaybe>; + isNull?: InputMaybe; + notContains?: InputMaybe; + notEq?: InputMaybe; + notIn?: InputMaybe>; + regex?: InputMaybe; }; /** Indicates that an operation succeeded, where we do not want to return any more specific information. */ export type Success = { - success: Scalars['Boolean']; + success: Scalars['Boolean']; }; export type Surcharge = Node & { - createdAt: Scalars['DateTime']; - description: Scalars['String']; - id: Scalars['ID']; - price: Scalars['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; @@ -5256,336 +5388,322 @@ 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; - stockLevels?: InputMaybe>; - stockOnHand?: InputMaybe; - taxCategoryId?: InputMaybe; - trackInventory?: InputMaybe; - translations?: InputMaybe>; - useGlobalOutOfStockThreshold?: InputMaybe; + assetIds?: InputMaybe>; + customFields?: InputMaybe; + enabled?: InputMaybe; + facetValueIds?: InputMaybe>; + featuredAssetId?: InputMaybe; + id: Scalars['ID']; + outOfStockThreshold?: InputMaybe; + price?: InputMaybe; + sku?: InputMaybe; + stockLevels?: InputMaybe>; + stockOnHand?: InputMaybe; + taxCategoryId?: InputMaybe; + trackInventory?: InputMaybe; + translations?: InputMaybe>; + useGlobalOutOfStockThreshold?: InputMaybe; }; export type UpdatePromotionInput = { - actions?: InputMaybe>; - conditions?: InputMaybe>; - couponCode?: InputMaybe; - customFields?: InputMaybe; - enabled?: InputMaybe; - endsAt?: InputMaybe; - id: Scalars['ID']; - 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 UpdateSellerInput = { - customFields?: InputMaybe; - id: Scalars['ID']; - name?: InputMaybe; + customFields?: InputMaybe; + id: Scalars['ID']; + name?: InputMaybe; }; export type UpdateShippingMethodInput = { - calculator?: InputMaybe; - checker?: InputMaybe; - code?: InputMaybe; - customFields?: InputMaybe; - fulfillmentHandler?: InputMaybe; - id: Scalars['ID']; - translations: Array; + calculator?: InputMaybe; + checker?: InputMaybe; + code?: InputMaybe; + customFields?: InputMaybe; + fulfillmentHandler?: InputMaybe; + id: Scalars['ID']; + translations: Array; }; export type UpdateStockLocationInput = { - customFields?: InputMaybe; - description?: InputMaybe; - id: Scalars['ID']; - name?: InputMaybe; + customFields?: InputMaybe; + description?: InputMaybe; + id: Scalars['ID']; + name?: InputMaybe; }; export type UpdateTagInput = { - id: Scalars['ID']; - value?: InputMaybe; + id: Scalars['ID']; + value?: InputMaybe; }; export type UpdateTaxCategoryInput = { - customFields?: InputMaybe; - id: Scalars['ID']; - isDefault?: InputMaybe; - name?: InputMaybe; + customFields?: InputMaybe; + id: Scalars['ID']; + isDefault?: InputMaybe; + name?: InputMaybe; }; export type UpdateTaxRateInput = { - categoryId?: InputMaybe; - customFields?: InputMaybe; - customerGroupId?: InputMaybe; - enabled?: InputMaybe; - id: Scalars['ID']; - name?: InputMaybe; - value?: InputMaybe; - zoneId?: InputMaybe; + categoryId?: InputMaybe; + customFields?: InputMaybe; + customerGroupId?: InputMaybe; + enabled?: InputMaybe; + id: Scalars['ID']; + name?: InputMaybe; + value?: InputMaybe; + zoneId?: InputMaybe; }; export type UpdateZoneInput = { - customFields?: InputMaybe; - id: Scalars['ID']; - name?: InputMaybe; + customFields?: InputMaybe; + id: Scalars['ID']; + name?: InputMaybe; }; export type User = Node & { - authenticationMethods: Array; - createdAt: Scalars['DateTime']; - customFields?: Maybe; - id: Scalars['ID']; - identifier: Scalars['String']; - lastLogin?: Maybe; - roles: Array; - updatedAt: Scalars['DateTime']; - verified: Scalars['Boolean']; + authenticationMethods: Array; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + id: Scalars['ID']; + identifier: Scalars['String']; + lastLogin?: Maybe; + roles: Array; + updatedAt: Scalars['DateTime']; + verified: Scalars['Boolean']; }; export type Zone = Node & { - createdAt: Scalars['DateTime']; - customFields?: Maybe; - id: Scalars['ID']; - members: Array; - name: Scalars['String']; - updatedAt: Scalars['DateTime']; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + id: Scalars['ID']; + members: Array; + name: Scalars['String']; + updatedAt: Scalars['DateTime']; }; export type CreateAssetsMutationVariables = Exact<{ - input: Array | CreateAssetInput; + input: Array | CreateAssetInput; }>; -export type CreateAssetsMutation = { - createAssets: Array< - | { - id: string; - name: string; - source: string; - preview: string; - focalPoint?: { x: number; y: number } | null; - } - | {} - >; -}; + +export type CreateAssetsMutation = { createAssets: Array<{ id: string, name: string, source: string, preview: string, focalPoint?: { x: number, y: number } | null } | {}> }; export type DeleteAssetMutationVariables = Exact<{ - input: DeleteAssetInput; + input: DeleteAssetInput; }>; + export type DeleteAssetMutation = { deleteAsset: { result: DeletionResult } }; diff --git a/packages/common/src/generated-shop-types.ts b/packages/common/src/generated-shop-types.ts index 76d552b9f0..7911815fba 100644 --- a/packages/common/src/generated-shop-types.ts +++ b/packages/common/src/generated-shop-types.ts @@ -6,221 +6,211 @@ export type MakeOptional = Omit & { [SubKey in K]?: export type MakeMaybe = Omit & { [SubKey in K]: Maybe }; /** All built-in and custom scalars, mapped to their actual values */ export type Scalars = { - ID: string | number; - String: string; - Boolean: boolean; - Int: number; - Float: number; - /** A date-time string at UTC, such as 2007-12-03T10:15:30Z, compliant with the `date-time` format outlined in section 5.6 of the RFC 3339 profile of the ISO 8601 standard for representation of dates and times using the Gregorian calendar. */ - DateTime: any; - /** The `JSON` scalar type represents JSON values as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf). */ - JSON: any; - /** The `Upload` scalar type represents a file upload. */ - Upload: any; + ID: string | number; + String: string; + Boolean: boolean; + Int: number; + Float: number; + /** A date-time string at UTC, such as 2007-12-03T10:15:30Z, compliant with the `date-time` format outlined in section 5.6 of the RFC 3339 profile of the ISO 8601 standard for representation of dates and times using the Gregorian calendar. */ + DateTime: any; + /** The `JSON` scalar type represents JSON values as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf). */ + JSON: any; + /** The `Upload` scalar type represents a file upload. */ + Upload: any; }; export type ActiveOrderResult = NoActiveOrderError | Order; -export type AddPaymentToOrderResult = - | IneligiblePaymentMethodError - | NoActiveOrderError - | Order - | OrderPaymentStateError - | OrderStateTransitionError - | PaymentDeclinedError - | PaymentFailedError; +export type AddPaymentToOrderResult = IneligiblePaymentMethodError | NoActiveOrderError | Order | OrderPaymentStateError | OrderStateTransitionError | PaymentDeclinedError | PaymentFailedError; export type Address = Node & { - __typename?: 'Address'; - city?: Maybe; - company?: Maybe; - country: Country; - createdAt: Scalars['DateTime']; - customFields?: Maybe; - defaultBillingAddress?: Maybe; - defaultShippingAddress?: Maybe; - fullName?: Maybe; - id: Scalars['ID']; - phoneNumber?: Maybe; - postalCode?: Maybe; - province?: Maybe; - streetLine1: Scalars['String']; - streetLine2?: Maybe; - updatedAt: Scalars['DateTime']; + __typename?: 'Address'; + city?: Maybe; + company?: Maybe; + country: Country; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + defaultBillingAddress?: Maybe; + defaultShippingAddress?: Maybe; + fullName?: Maybe; + id: Scalars['ID']; + phoneNumber?: Maybe; + postalCode?: Maybe; + province?: Maybe; + streetLine1: Scalars['String']; + streetLine2?: Maybe; + updatedAt: Scalars['DateTime']; }; export type Adjustment = { - __typename?: 'Adjustment'; - adjustmentSource: Scalars['String']; - amount: Scalars['Int']; - data?: Maybe; - description: Scalars['String']; - type: AdjustmentType; + __typename?: 'Adjustment'; + adjustmentSource: Scalars['String']; + amount: Scalars['Int']; + data?: Maybe; + description: Scalars['String']; + type: AdjustmentType; }; export enum AdjustmentType { - DISTRIBUTED_ORDER_PROMOTION = 'DISTRIBUTED_ORDER_PROMOTION', - OTHER = 'OTHER', - PROMOTION = 'PROMOTION', + DISTRIBUTED_ORDER_PROMOTION = 'DISTRIBUTED_ORDER_PROMOTION', + OTHER = 'OTHER', + PROMOTION = 'PROMOTION' } /** Returned when attempting to set the Customer for an Order when already logged in. */ export type AlreadyLoggedInError = ErrorResult & { - __typename?: 'AlreadyLoggedInError'; - errorCode: ErrorCode; - message: Scalars['String']; + __typename?: 'AlreadyLoggedInError'; + errorCode: ErrorCode; + message: Scalars['String']; }; -export type ApplyCouponCodeResult = - | CouponCodeExpiredError - | CouponCodeInvalidError - | CouponCodeLimitError - | Order; +export type ApplyCouponCodeResult = CouponCodeExpiredError | CouponCodeInvalidError | CouponCodeLimitError | Order; export type Asset = Node & { - __typename?: 'Asset'; - createdAt: Scalars['DateTime']; - customFields?: Maybe; - fileSize: Scalars['Int']; - focalPoint?: Maybe; - height: Scalars['Int']; - id: Scalars['ID']; - mimeType: Scalars['String']; - name: Scalars['String']; - preview: Scalars['String']; - source: Scalars['String']; - tags: Array; - type: AssetType; - updatedAt: Scalars['DateTime']; - width: Scalars['Int']; + __typename?: 'Asset'; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + fileSize: Scalars['Int']; + focalPoint?: Maybe; + height: Scalars['Int']; + id: Scalars['ID']; + mimeType: Scalars['String']; + name: Scalars['String']; + preview: Scalars['String']; + source: Scalars['String']; + tags: Array; + type: AssetType; + updatedAt: Scalars['DateTime']; + width: Scalars['Int']; }; export type AssetList = PaginatedList & { - __typename?: 'AssetList'; - items: Array; - totalItems: Scalars['Int']; + __typename?: 'AssetList'; + items: Array; + totalItems: Scalars['Int']; }; export enum AssetType { - BINARY = 'BINARY', - IMAGE = 'IMAGE', - VIDEO = 'VIDEO', + BINARY = 'BINARY', + IMAGE = 'IMAGE', + VIDEO = 'VIDEO' } export type AuthenticationInput = { - native?: InputMaybe; + native?: InputMaybe; }; export type AuthenticationMethod = Node & { - __typename?: 'AuthenticationMethod'; - createdAt: Scalars['DateTime']; - id: Scalars['ID']; - strategy: Scalars['String']; - updatedAt: Scalars['DateTime']; + __typename?: 'AuthenticationMethod'; + createdAt: Scalars['DateTime']; + id: Scalars['ID']; + strategy: Scalars['String']; + updatedAt: Scalars['DateTime']; }; export type AuthenticationResult = CurrentUser | InvalidCredentialsError | NotVerifiedError; export type BooleanCustomFieldConfig = CustomField & { - __typename?: 'BooleanCustomFieldConfig'; - description?: Maybe>; - internal?: Maybe; - label?: Maybe>; - list: Scalars['Boolean']; - name: Scalars['String']; - nullable?: Maybe; - readonly?: Maybe; - type: Scalars['String']; - ui?: Maybe; + __typename?: 'BooleanCustomFieldConfig'; + description?: Maybe>; + internal?: Maybe; + label?: Maybe>; + list: Scalars['Boolean']; + name: Scalars['String']; + nullable?: Maybe; + readonly?: Maybe; + type: Scalars['String']; + ui?: Maybe; }; /** Operators for filtering on a list of Boolean fields */ export type BooleanListOperators = { - inList: Scalars['Boolean']; + inList: Scalars['Boolean']; }; /** Operators for filtering on a Boolean field */ export type BooleanOperators = { - eq?: InputMaybe; - isNull?: InputMaybe; + eq?: InputMaybe; + isNull?: InputMaybe; }; export type Channel = Node & { - __typename?: 'Channel'; - code: Scalars['String']; - createdAt: Scalars['DateTime']; - currencyCode: CurrencyCode; - customFields?: Maybe; - defaultLanguageCode: LanguageCode; - defaultShippingZone?: Maybe; - defaultTaxZone?: Maybe; - id: Scalars['ID']; - pricesIncludeTax: Scalars['Boolean']; - seller?: Maybe; - token: Scalars['String']; - updatedAt: Scalars['DateTime']; + __typename?: 'Channel'; + code: Scalars['String']; + createdAt: Scalars['DateTime']; + currencyCode: CurrencyCode; + customFields?: Maybe; + defaultLanguageCode: LanguageCode; + defaultShippingZone?: Maybe; + defaultTaxZone?: Maybe; + id: Scalars['ID']; + pricesIncludeTax: Scalars['Boolean']; + seller?: Maybe; + token: Scalars['String']; + updatedAt: Scalars['DateTime']; }; export type Collection = Node & { - __typename?: 'Collection'; - assets: Array; - breadcrumbs: Array; - children?: Maybe>; - createdAt: Scalars['DateTime']; - customFields?: Maybe; - description: Scalars['String']; - featuredAsset?: Maybe; - filters: Array; - id: Scalars['ID']; - languageCode?: Maybe; - name: Scalars['String']; - parent?: Maybe; - position: Scalars['Int']; - productVariants: ProductVariantList; - slug: Scalars['String']; - translations: Array; - updatedAt: Scalars['DateTime']; + __typename?: 'Collection'; + assets: Array; + breadcrumbs: Array; + children?: Maybe>; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + description: Scalars['String']; + featuredAsset?: Maybe; + filters: Array; + id: Scalars['ID']; + languageCode?: Maybe; + name: Scalars['String']; + parent?: Maybe; + position: Scalars['Int']; + productVariants: ProductVariantList; + slug: Scalars['String']; + translations: Array; + updatedAt: Scalars['DateTime']; }; + export type CollectionProductVariantsArgs = { - options?: InputMaybe; + options?: InputMaybe; }; export type CollectionBreadcrumb = { - __typename?: 'CollectionBreadcrumb'; - id: Scalars['ID']; - name: Scalars['String']; - slug: Scalars['String']; + __typename?: 'CollectionBreadcrumb'; + id: Scalars['ID']; + name: Scalars['String']; + slug: Scalars['String']; }; export type CollectionFilterParameter = { - createdAt?: InputMaybe; - description?: InputMaybe; - id?: InputMaybe; - languageCode?: InputMaybe; - name?: InputMaybe; - position?: InputMaybe; - slug?: InputMaybe; - updatedAt?: InputMaybe; + createdAt?: InputMaybe; + description?: InputMaybe; + id?: InputMaybe; + languageCode?: InputMaybe; + name?: InputMaybe; + position?: InputMaybe; + slug?: InputMaybe; + updatedAt?: InputMaybe; }; export type CollectionList = PaginatedList & { - __typename?: 'CollectionList'; - items: Array; - totalItems: Scalars['Int']; + __typename?: 'CollectionList'; + items: Array; + totalItems: Scalars['Int']; }; export type CollectionListOptions = { - /** Allows the results to be filtered */ - filter?: InputMaybe; - /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ - filterOperator?: InputMaybe; - /** Skips the first n results, for use in pagination */ - skip?: InputMaybe; - /** Specifies which properties to sort the results by */ - sort?: InputMaybe; - /** Takes n results, for use in pagination */ - take?: InputMaybe; + /** Allows the results to be filtered */ + filter?: InputMaybe; + /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ + filterOperator?: InputMaybe; + /** Skips the first n results, for use in pagination */ + skip?: InputMaybe; + /** Specifies which properties to sort the results by */ + sort?: InputMaybe; + /** Takes n results, for use in pagination */ + take?: InputMaybe; }; /** @@ -228,155 +218,155 @@ export type CollectionListOptions = { * by the search, and in what quantity. */ export type CollectionResult = { - __typename?: 'CollectionResult'; - collection: Collection; - count: Scalars['Int']; + __typename?: 'CollectionResult'; + collection: Collection; + count: Scalars['Int']; }; export type CollectionSortParameter = { - createdAt?: InputMaybe; - description?: InputMaybe; - id?: InputMaybe; - name?: InputMaybe; - position?: InputMaybe; - slug?: InputMaybe; - updatedAt?: InputMaybe; + createdAt?: InputMaybe; + description?: InputMaybe; + id?: InputMaybe; + name?: InputMaybe; + position?: InputMaybe; + slug?: InputMaybe; + updatedAt?: InputMaybe; }; export type CollectionTranslation = { - __typename?: 'CollectionTranslation'; - createdAt: Scalars['DateTime']; - description: Scalars['String']; - id: Scalars['ID']; - languageCode: LanguageCode; - name: Scalars['String']; - slug: Scalars['String']; - updatedAt: Scalars['DateTime']; + __typename?: 'CollectionTranslation'; + createdAt: Scalars['DateTime']; + description: Scalars['String']; + id: Scalars['ID']; + languageCode: LanguageCode; + name: Scalars['String']; + slug: Scalars['String']; + updatedAt: Scalars['DateTime']; }; export type ConfigArg = { - __typename?: 'ConfigArg'; - name: Scalars['String']; - value: Scalars['String']; + __typename?: 'ConfigArg'; + name: Scalars['String']; + value: Scalars['String']; }; export type ConfigArgDefinition = { - __typename?: 'ConfigArgDefinition'; - defaultValue?: Maybe; - description?: Maybe; - label?: Maybe; - list: Scalars['Boolean']; - name: Scalars['String']; - required: Scalars['Boolean']; - type: Scalars['String']; - ui?: Maybe; + __typename?: 'ConfigArgDefinition'; + defaultValue?: Maybe; + description?: Maybe; + label?: Maybe; + list: Scalars['Boolean']; + name: Scalars['String']; + required: Scalars['Boolean']; + type: Scalars['String']; + ui?: Maybe; }; export type ConfigArgInput = { - name: Scalars['String']; - /** A JSON stringified representation of the actual value */ - value: Scalars['String']; + name: Scalars['String']; + /** A JSON stringified representation of the actual value */ + value: Scalars['String']; }; export type ConfigurableOperation = { - __typename?: 'ConfigurableOperation'; - args: Array; - code: Scalars['String']; + __typename?: 'ConfigurableOperation'; + args: Array; + code: Scalars['String']; }; export type ConfigurableOperationDefinition = { - __typename?: 'ConfigurableOperationDefinition'; - args: Array; - code: Scalars['String']; - description: Scalars['String']; + __typename?: 'ConfigurableOperationDefinition'; + args: Array; + code: Scalars['String']; + description: Scalars['String']; }; export type ConfigurableOperationInput = { - arguments: Array; - code: Scalars['String']; + arguments: Array; + code: Scalars['String']; }; export type Coordinate = { - __typename?: 'Coordinate'; - x: Scalars['Float']; - y: Scalars['Float']; + __typename?: 'Coordinate'; + x: Scalars['Float']; + y: Scalars['Float']; }; export type Country = Node & { - __typename?: 'Country'; - code: Scalars['String']; - createdAt: Scalars['DateTime']; - customFields?: Maybe; - enabled: Scalars['Boolean']; - id: Scalars['ID']; - languageCode: LanguageCode; - name: Scalars['String']; - translations: Array; - updatedAt: Scalars['DateTime']; + __typename?: 'Country'; + code: Scalars['String']; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + enabled: Scalars['Boolean']; + id: Scalars['ID']; + languageCode: LanguageCode; + name: Scalars['String']; + translations: Array; + updatedAt: Scalars['DateTime']; }; export type CountryList = PaginatedList & { - __typename?: 'CountryList'; - items: Array; - totalItems: Scalars['Int']; + __typename?: 'CountryList'; + items: Array; + totalItems: Scalars['Int']; }; export type CountryTranslation = { - __typename?: 'CountryTranslation'; - createdAt: Scalars['DateTime']; - id: Scalars['ID']; - languageCode: LanguageCode; - name: Scalars['String']; - updatedAt: Scalars['DateTime']; + __typename?: 'CountryTranslation'; + createdAt: Scalars['DateTime']; + id: Scalars['ID']; + languageCode: LanguageCode; + name: Scalars['String']; + updatedAt: Scalars['DateTime']; }; /** Returned if the provided coupon code is invalid */ export type CouponCodeExpiredError = ErrorResult & { - __typename?: 'CouponCodeExpiredError'; - couponCode: Scalars['String']; - errorCode: ErrorCode; - message: Scalars['String']; + __typename?: 'CouponCodeExpiredError'; + couponCode: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; }; /** Returned if the provided coupon code is invalid */ export type CouponCodeInvalidError = ErrorResult & { - __typename?: 'CouponCodeInvalidError'; - couponCode: Scalars['String']; - errorCode: ErrorCode; - message: Scalars['String']; + __typename?: 'CouponCodeInvalidError'; + couponCode: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; }; /** Returned if the provided coupon code is invalid */ export type CouponCodeLimitError = ErrorResult & { - __typename?: 'CouponCodeLimitError'; - couponCode: Scalars['String']; - errorCode: ErrorCode; - limit: Scalars['Int']; - message: Scalars['String']; + __typename?: 'CouponCodeLimitError'; + couponCode: Scalars['String']; + errorCode: ErrorCode; + limit: Scalars['Int']; + message: Scalars['String']; }; export type CreateAddressInput = { - city?: InputMaybe; - company?: InputMaybe; - countryCode: Scalars['String']; - customFields?: InputMaybe; - defaultBillingAddress?: InputMaybe; - defaultShippingAddress?: InputMaybe; - fullName?: InputMaybe; - phoneNumber?: InputMaybe; - postalCode?: InputMaybe; - province?: InputMaybe; - streetLine1: Scalars['String']; - streetLine2?: InputMaybe; + city?: InputMaybe; + company?: InputMaybe; + countryCode: Scalars['String']; + customFields?: InputMaybe; + defaultBillingAddress?: InputMaybe; + defaultShippingAddress?: InputMaybe; + fullName?: InputMaybe; + phoneNumber?: InputMaybe; + postalCode?: InputMaybe; + province?: InputMaybe; + streetLine1: Scalars['String']; + streetLine2?: InputMaybe; }; export type CreateCustomerInput = { - customFields?: InputMaybe; - emailAddress: Scalars['String']; - firstName: Scalars['String']; - lastName: Scalars['String']; - phoneNumber?: InputMaybe; - title?: InputMaybe; + customFields?: InputMaybe; + emailAddress: Scalars['String']; + firstName: Scalars['String']; + lastName: Scalars['String']; + phoneNumber?: InputMaybe; + title?: InputMaybe; }; /** @@ -386,451 +376,445 @@ export type CreateCustomerInput = { * @docsCategory common */ export enum CurrencyCode { - /** United Arab Emirates dirham */ - AED = 'AED', - /** Afghan afghani */ - AFN = 'AFN', - /** Albanian lek */ - ALL = 'ALL', - /** Armenian dram */ - AMD = 'AMD', - /** Netherlands Antillean guilder */ - ANG = 'ANG', - /** Angolan kwanza */ - AOA = 'AOA', - /** Argentine peso */ - ARS = 'ARS', - /** Australian dollar */ - AUD = 'AUD', - /** Aruban florin */ - AWG = 'AWG', - /** Azerbaijani manat */ - AZN = 'AZN', - /** Bosnia and Herzegovina convertible mark */ - BAM = 'BAM', - /** Barbados dollar */ - BBD = 'BBD', - /** Bangladeshi taka */ - BDT = 'BDT', - /** Bulgarian lev */ - BGN = 'BGN', - /** Bahraini dinar */ - BHD = 'BHD', - /** Burundian franc */ - BIF = 'BIF', - /** Bermudian dollar */ - BMD = 'BMD', - /** Brunei dollar */ - BND = 'BND', - /** Boliviano */ - BOB = 'BOB', - /** Brazilian real */ - BRL = 'BRL', - /** Bahamian dollar */ - BSD = 'BSD', - /** Bhutanese ngultrum */ - BTN = 'BTN', - /** Botswana pula */ - BWP = 'BWP', - /** Belarusian ruble */ - BYN = 'BYN', - /** Belize dollar */ - BZD = 'BZD', - /** Canadian dollar */ - CAD = 'CAD', - /** Congolese franc */ - CDF = 'CDF', - /** Swiss franc */ - CHF = 'CHF', - /** Chilean peso */ - CLP = 'CLP', - /** Renminbi (Chinese) yuan */ - CNY = 'CNY', - /** Colombian peso */ - COP = 'COP', - /** Costa Rican colon */ - CRC = 'CRC', - /** Cuban convertible peso */ - CUC = 'CUC', - /** Cuban peso */ - CUP = 'CUP', - /** Cape Verde escudo */ - CVE = 'CVE', - /** Czech koruna */ - CZK = 'CZK', - /** Djiboutian franc */ - DJF = 'DJF', - /** Danish krone */ - DKK = 'DKK', - /** Dominican peso */ - DOP = 'DOP', - /** Algerian dinar */ - DZD = 'DZD', - /** Egyptian pound */ - EGP = 'EGP', - /** Eritrean nakfa */ - ERN = 'ERN', - /** Ethiopian birr */ - ETB = 'ETB', - /** Euro */ - EUR = 'EUR', - /** Fiji dollar */ - FJD = 'FJD', - /** Falkland Islands pound */ - FKP = 'FKP', - /** Pound sterling */ - GBP = 'GBP', - /** Georgian lari */ - GEL = 'GEL', - /** Ghanaian cedi */ - GHS = 'GHS', - /** Gibraltar pound */ - GIP = 'GIP', - /** Gambian dalasi */ - GMD = 'GMD', - /** Guinean franc */ - GNF = 'GNF', - /** Guatemalan quetzal */ - GTQ = 'GTQ', - /** Guyanese dollar */ - GYD = 'GYD', - /** Hong Kong dollar */ - HKD = 'HKD', - /** Honduran lempira */ - HNL = 'HNL', - /** Croatian kuna */ - HRK = 'HRK', - /** Haitian gourde */ - HTG = 'HTG', - /** Hungarian forint */ - HUF = 'HUF', - /** Indonesian rupiah */ - IDR = 'IDR', - /** Israeli new shekel */ - ILS = 'ILS', - /** Indian rupee */ - INR = 'INR', - /** Iraqi dinar */ - IQD = 'IQD', - /** Iranian rial */ - IRR = 'IRR', - /** Icelandic króna */ - ISK = 'ISK', - /** Jamaican dollar */ - JMD = 'JMD', - /** Jordanian dinar */ - JOD = 'JOD', - /** Japanese yen */ - JPY = 'JPY', - /** Kenyan shilling */ - KES = 'KES', - /** Kyrgyzstani som */ - KGS = 'KGS', - /** Cambodian riel */ - KHR = 'KHR', - /** Comoro franc */ - KMF = 'KMF', - /** North Korean won */ - KPW = 'KPW', - /** South Korean won */ - KRW = 'KRW', - /** Kuwaiti dinar */ - KWD = 'KWD', - /** Cayman Islands dollar */ - KYD = 'KYD', - /** Kazakhstani tenge */ - KZT = 'KZT', - /** Lao kip */ - LAK = 'LAK', - /** Lebanese pound */ - LBP = 'LBP', - /** Sri Lankan rupee */ - LKR = 'LKR', - /** Liberian dollar */ - LRD = 'LRD', - /** Lesotho loti */ - LSL = 'LSL', - /** Libyan dinar */ - LYD = 'LYD', - /** Moroccan dirham */ - MAD = 'MAD', - /** Moldovan leu */ - MDL = 'MDL', - /** Malagasy ariary */ - MGA = 'MGA', - /** Macedonian denar */ - MKD = 'MKD', - /** Myanmar kyat */ - MMK = 'MMK', - /** Mongolian tögrög */ - MNT = 'MNT', - /** Macanese pataca */ - MOP = 'MOP', - /** Mauritanian ouguiya */ - MRU = 'MRU', - /** Mauritian rupee */ - MUR = 'MUR', - /** Maldivian rufiyaa */ - MVR = 'MVR', - /** Malawian kwacha */ - MWK = 'MWK', - /** Mexican peso */ - MXN = 'MXN', - /** Malaysian ringgit */ - MYR = 'MYR', - /** Mozambican metical */ - MZN = 'MZN', - /** Namibian dollar */ - NAD = 'NAD', - /** Nigerian naira */ - NGN = 'NGN', - /** Nicaraguan córdoba */ - NIO = 'NIO', - /** Norwegian krone */ - NOK = 'NOK', - /** Nepalese rupee */ - NPR = 'NPR', - /** New Zealand dollar */ - NZD = 'NZD', - /** Omani rial */ - OMR = 'OMR', - /** Panamanian balboa */ - PAB = 'PAB', - /** Peruvian sol */ - PEN = 'PEN', - /** Papua New Guinean kina */ - PGK = 'PGK', - /** Philippine peso */ - PHP = 'PHP', - /** Pakistani rupee */ - PKR = 'PKR', - /** Polish złoty */ - PLN = 'PLN', - /** Paraguayan guaraní */ - PYG = 'PYG', - /** Qatari riyal */ - QAR = 'QAR', - /** Romanian leu */ - RON = 'RON', - /** Serbian dinar */ - RSD = 'RSD', - /** Russian ruble */ - RUB = 'RUB', - /** Rwandan franc */ - RWF = 'RWF', - /** Saudi riyal */ - SAR = 'SAR', - /** Solomon Islands dollar */ - SBD = 'SBD', - /** Seychelles rupee */ - SCR = 'SCR', - /** Sudanese pound */ - SDG = 'SDG', - /** Swedish krona/kronor */ - SEK = 'SEK', - /** Singapore dollar */ - SGD = 'SGD', - /** Saint Helena pound */ - SHP = 'SHP', - /** Sierra Leonean leone */ - SLL = 'SLL', - /** Somali shilling */ - SOS = 'SOS', - /** Surinamese dollar */ - SRD = 'SRD', - /** South Sudanese pound */ - SSP = 'SSP', - /** São Tomé and Príncipe dobra */ - STN = 'STN', - /** Salvadoran colón */ - SVC = 'SVC', - /** Syrian pound */ - SYP = 'SYP', - /** Swazi lilangeni */ - SZL = 'SZL', - /** Thai baht */ - THB = 'THB', - /** Tajikistani somoni */ - TJS = 'TJS', - /** Turkmenistan manat */ - TMT = 'TMT', - /** Tunisian dinar */ - TND = 'TND', - /** Tongan paʻanga */ - TOP = 'TOP', - /** Turkish lira */ - TRY = 'TRY', - /** Trinidad and Tobago dollar */ - TTD = 'TTD', - /** New Taiwan dollar */ - TWD = 'TWD', - /** Tanzanian shilling */ - TZS = 'TZS', - /** Ukrainian hryvnia */ - UAH = 'UAH', - /** Ugandan shilling */ - UGX = 'UGX', - /** United States dollar */ - USD = 'USD', - /** Uruguayan peso */ - UYU = 'UYU', - /** Uzbekistan som */ - UZS = 'UZS', - /** Venezuelan bolívar soberano */ - VES = 'VES', - /** Vietnamese đồng */ - VND = 'VND', - /** Vanuatu vatu */ - VUV = 'VUV', - /** Samoan tala */ - WST = 'WST', - /** CFA franc BEAC */ - XAF = 'XAF', - /** East Caribbean dollar */ - XCD = 'XCD', - /** CFA franc BCEAO */ - XOF = 'XOF', - /** CFP franc (franc Pacifique) */ - XPF = 'XPF', - /** Yemeni rial */ - YER = 'YER', - /** South African rand */ - ZAR = 'ZAR', - /** Zambian kwacha */ - ZMW = 'ZMW', - /** Zimbabwean dollar */ - ZWL = 'ZWL', + /** United Arab Emirates dirham */ + AED = 'AED', + /** Afghan afghani */ + AFN = 'AFN', + /** Albanian lek */ + ALL = 'ALL', + /** Armenian dram */ + AMD = 'AMD', + /** Netherlands Antillean guilder */ + ANG = 'ANG', + /** Angolan kwanza */ + AOA = 'AOA', + /** Argentine peso */ + ARS = 'ARS', + /** Australian dollar */ + AUD = 'AUD', + /** Aruban florin */ + AWG = 'AWG', + /** Azerbaijani manat */ + AZN = 'AZN', + /** Bosnia and Herzegovina convertible mark */ + BAM = 'BAM', + /** Barbados dollar */ + BBD = 'BBD', + /** Bangladeshi taka */ + BDT = 'BDT', + /** Bulgarian lev */ + BGN = 'BGN', + /** Bahraini dinar */ + BHD = 'BHD', + /** Burundian franc */ + BIF = 'BIF', + /** Bermudian dollar */ + BMD = 'BMD', + /** Brunei dollar */ + BND = 'BND', + /** Boliviano */ + BOB = 'BOB', + /** Brazilian real */ + BRL = 'BRL', + /** Bahamian dollar */ + BSD = 'BSD', + /** Bhutanese ngultrum */ + BTN = 'BTN', + /** Botswana pula */ + BWP = 'BWP', + /** Belarusian ruble */ + BYN = 'BYN', + /** Belize dollar */ + BZD = 'BZD', + /** Canadian dollar */ + CAD = 'CAD', + /** Congolese franc */ + CDF = 'CDF', + /** Swiss franc */ + CHF = 'CHF', + /** Chilean peso */ + CLP = 'CLP', + /** Renminbi (Chinese) yuan */ + CNY = 'CNY', + /** Colombian peso */ + COP = 'COP', + /** Costa Rican colon */ + CRC = 'CRC', + /** Cuban convertible peso */ + CUC = 'CUC', + /** Cuban peso */ + CUP = 'CUP', + /** Cape Verde escudo */ + CVE = 'CVE', + /** Czech koruna */ + CZK = 'CZK', + /** Djiboutian franc */ + DJF = 'DJF', + /** Danish krone */ + DKK = 'DKK', + /** Dominican peso */ + DOP = 'DOP', + /** Algerian dinar */ + DZD = 'DZD', + /** Egyptian pound */ + EGP = 'EGP', + /** Eritrean nakfa */ + ERN = 'ERN', + /** Ethiopian birr */ + ETB = 'ETB', + /** Euro */ + EUR = 'EUR', + /** Fiji dollar */ + FJD = 'FJD', + /** Falkland Islands pound */ + FKP = 'FKP', + /** Pound sterling */ + GBP = 'GBP', + /** Georgian lari */ + GEL = 'GEL', + /** Ghanaian cedi */ + GHS = 'GHS', + /** Gibraltar pound */ + GIP = 'GIP', + /** Gambian dalasi */ + GMD = 'GMD', + /** Guinean franc */ + GNF = 'GNF', + /** Guatemalan quetzal */ + GTQ = 'GTQ', + /** Guyanese dollar */ + GYD = 'GYD', + /** Hong Kong dollar */ + HKD = 'HKD', + /** Honduran lempira */ + HNL = 'HNL', + /** Croatian kuna */ + HRK = 'HRK', + /** Haitian gourde */ + HTG = 'HTG', + /** Hungarian forint */ + HUF = 'HUF', + /** Indonesian rupiah */ + IDR = 'IDR', + /** Israeli new shekel */ + ILS = 'ILS', + /** Indian rupee */ + INR = 'INR', + /** Iraqi dinar */ + IQD = 'IQD', + /** Iranian rial */ + IRR = 'IRR', + /** Icelandic króna */ + ISK = 'ISK', + /** Jamaican dollar */ + JMD = 'JMD', + /** Jordanian dinar */ + JOD = 'JOD', + /** Japanese yen */ + JPY = 'JPY', + /** Kenyan shilling */ + KES = 'KES', + /** Kyrgyzstani som */ + KGS = 'KGS', + /** Cambodian riel */ + KHR = 'KHR', + /** Comoro franc */ + KMF = 'KMF', + /** North Korean won */ + KPW = 'KPW', + /** South Korean won */ + KRW = 'KRW', + /** Kuwaiti dinar */ + KWD = 'KWD', + /** Cayman Islands dollar */ + KYD = 'KYD', + /** Kazakhstani tenge */ + KZT = 'KZT', + /** Lao kip */ + LAK = 'LAK', + /** Lebanese pound */ + LBP = 'LBP', + /** Sri Lankan rupee */ + LKR = 'LKR', + /** Liberian dollar */ + LRD = 'LRD', + /** Lesotho loti */ + LSL = 'LSL', + /** Libyan dinar */ + LYD = 'LYD', + /** Moroccan dirham */ + MAD = 'MAD', + /** Moldovan leu */ + MDL = 'MDL', + /** Malagasy ariary */ + MGA = 'MGA', + /** Macedonian denar */ + MKD = 'MKD', + /** Myanmar kyat */ + MMK = 'MMK', + /** Mongolian tögrög */ + MNT = 'MNT', + /** Macanese pataca */ + MOP = 'MOP', + /** Mauritanian ouguiya */ + MRU = 'MRU', + /** Mauritian rupee */ + MUR = 'MUR', + /** Maldivian rufiyaa */ + MVR = 'MVR', + /** Malawian kwacha */ + MWK = 'MWK', + /** Mexican peso */ + MXN = 'MXN', + /** Malaysian ringgit */ + MYR = 'MYR', + /** Mozambican metical */ + MZN = 'MZN', + /** Namibian dollar */ + NAD = 'NAD', + /** Nigerian naira */ + NGN = 'NGN', + /** Nicaraguan córdoba */ + NIO = 'NIO', + /** Norwegian krone */ + NOK = 'NOK', + /** Nepalese rupee */ + NPR = 'NPR', + /** New Zealand dollar */ + NZD = 'NZD', + /** Omani rial */ + OMR = 'OMR', + /** Panamanian balboa */ + PAB = 'PAB', + /** Peruvian sol */ + PEN = 'PEN', + /** Papua New Guinean kina */ + PGK = 'PGK', + /** Philippine peso */ + PHP = 'PHP', + /** Pakistani rupee */ + PKR = 'PKR', + /** Polish złoty */ + PLN = 'PLN', + /** Paraguayan guaraní */ + PYG = 'PYG', + /** Qatari riyal */ + QAR = 'QAR', + /** Romanian leu */ + RON = 'RON', + /** Serbian dinar */ + RSD = 'RSD', + /** Russian ruble */ + RUB = 'RUB', + /** Rwandan franc */ + RWF = 'RWF', + /** Saudi riyal */ + SAR = 'SAR', + /** Solomon Islands dollar */ + SBD = 'SBD', + /** Seychelles rupee */ + SCR = 'SCR', + /** Sudanese pound */ + SDG = 'SDG', + /** Swedish krona/kronor */ + SEK = 'SEK', + /** Singapore dollar */ + SGD = 'SGD', + /** Saint Helena pound */ + SHP = 'SHP', + /** Sierra Leonean leone */ + SLL = 'SLL', + /** Somali shilling */ + SOS = 'SOS', + /** Surinamese dollar */ + SRD = 'SRD', + /** South Sudanese pound */ + SSP = 'SSP', + /** São Tomé and Príncipe dobra */ + STN = 'STN', + /** Salvadoran colón */ + SVC = 'SVC', + /** Syrian pound */ + SYP = 'SYP', + /** Swazi lilangeni */ + SZL = 'SZL', + /** Thai baht */ + THB = 'THB', + /** Tajikistani somoni */ + TJS = 'TJS', + /** Turkmenistan manat */ + TMT = 'TMT', + /** Tunisian dinar */ + TND = 'TND', + /** Tongan paʻanga */ + TOP = 'TOP', + /** Turkish lira */ + TRY = 'TRY', + /** Trinidad and Tobago dollar */ + TTD = 'TTD', + /** New Taiwan dollar */ + TWD = 'TWD', + /** Tanzanian shilling */ + TZS = 'TZS', + /** Ukrainian hryvnia */ + UAH = 'UAH', + /** Ugandan shilling */ + UGX = 'UGX', + /** United States dollar */ + USD = 'USD', + /** Uruguayan peso */ + UYU = 'UYU', + /** Uzbekistan som */ + UZS = 'UZS', + /** Venezuelan bolívar soberano */ + VES = 'VES', + /** Vietnamese đồng */ + VND = 'VND', + /** Vanuatu vatu */ + VUV = 'VUV', + /** Samoan tala */ + WST = 'WST', + /** CFA franc BEAC */ + XAF = 'XAF', + /** East Caribbean dollar */ + XCD = 'XCD', + /** CFA franc BCEAO */ + XOF = 'XOF', + /** CFP franc (franc Pacifique) */ + XPF = 'XPF', + /** Yemeni rial */ + YER = 'YER', + /** South African rand */ + ZAR = 'ZAR', + /** Zambian kwacha */ + ZMW = 'ZMW', + /** Zimbabwean dollar */ + ZWL = 'ZWL' } export type CurrentUser = { - __typename?: 'CurrentUser'; - channels: Array; - id: Scalars['ID']; - identifier: Scalars['String']; + __typename?: 'CurrentUser'; + channels: Array; + id: Scalars['ID']; + identifier: Scalars['String']; }; export type CurrentUserChannel = { - __typename?: 'CurrentUserChannel'; - code: Scalars['String']; - id: Scalars['ID']; - permissions: Array; - token: Scalars['String']; + __typename?: 'CurrentUserChannel'; + code: Scalars['String']; + id: Scalars['ID']; + permissions: Array; + token: Scalars['String']; }; export type CustomField = { - description?: Maybe>; - internal?: Maybe; - label?: Maybe>; - list: Scalars['Boolean']; - name: Scalars['String']; - nullable?: Maybe; - readonly?: Maybe; - type: Scalars['String']; - ui?: Maybe; -}; - -export type CustomFieldConfig = - | BooleanCustomFieldConfig - | DateTimeCustomFieldConfig - | FloatCustomFieldConfig - | IntCustomFieldConfig - | LocaleStringCustomFieldConfig - | RelationCustomFieldConfig - | StringCustomFieldConfig - | TextCustomFieldConfig; + description?: Maybe>; + internal?: Maybe; + label?: Maybe>; + list: Scalars['Boolean']; + name: Scalars['String']; + nullable?: Maybe; + readonly?: Maybe; + type: Scalars['String']; + ui?: Maybe; +}; + +export type CustomFieldConfig = BooleanCustomFieldConfig | DateTimeCustomFieldConfig | FloatCustomFieldConfig | IntCustomFieldConfig | LocaleStringCustomFieldConfig | RelationCustomFieldConfig | StringCustomFieldConfig | TextCustomFieldConfig; export type Customer = Node & { - __typename?: 'Customer'; - addresses?: Maybe>; - createdAt: Scalars['DateTime']; - customFields?: Maybe; - emailAddress: Scalars['String']; - firstName: Scalars['String']; - id: Scalars['ID']; - lastName: Scalars['String']; - orders: OrderList; - phoneNumber?: Maybe; - title?: Maybe; - updatedAt: Scalars['DateTime']; - user?: Maybe; + __typename?: 'Customer'; + addresses?: Maybe>; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + emailAddress: Scalars['String']; + firstName: Scalars['String']; + id: Scalars['ID']; + lastName: Scalars['String']; + orders: OrderList; + phoneNumber?: Maybe; + title?: Maybe; + updatedAt: Scalars['DateTime']; + user?: Maybe; }; + export type CustomerOrdersArgs = { - options?: InputMaybe; + options?: InputMaybe; }; export type CustomerFilterParameter = { - createdAt?: InputMaybe; - emailAddress?: InputMaybe; - firstName?: InputMaybe; - id?: InputMaybe; - lastName?: InputMaybe; - phoneNumber?: InputMaybe; - title?: InputMaybe; - updatedAt?: InputMaybe; + createdAt?: InputMaybe; + emailAddress?: InputMaybe; + firstName?: InputMaybe; + id?: InputMaybe; + lastName?: InputMaybe; + phoneNumber?: InputMaybe; + title?: InputMaybe; + updatedAt?: InputMaybe; }; export type CustomerGroup = Node & { - __typename?: 'CustomerGroup'; - createdAt: Scalars['DateTime']; - customFields?: Maybe; - customers: CustomerList; - id: Scalars['ID']; - name: Scalars['String']; - updatedAt: Scalars['DateTime']; + __typename?: 'CustomerGroup'; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + customers: CustomerList; + id: Scalars['ID']; + name: Scalars['String']; + updatedAt: Scalars['DateTime']; }; + export type CustomerGroupCustomersArgs = { - options?: InputMaybe; + options?: InputMaybe; }; export type CustomerList = PaginatedList & { - __typename?: 'CustomerList'; - items: Array; - totalItems: Scalars['Int']; + __typename?: 'CustomerList'; + items: Array; + totalItems: Scalars['Int']; }; export type CustomerListOptions = { - /** Allows the results to be filtered */ - filter?: InputMaybe; - /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ - filterOperator?: InputMaybe; - /** Skips the first n results, for use in pagination */ - skip?: InputMaybe; - /** Specifies which properties to sort the results by */ - sort?: InputMaybe; - /** Takes n results, for use in pagination */ - take?: InputMaybe; + /** Allows the results to be filtered */ + filter?: InputMaybe; + /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ + filterOperator?: InputMaybe; + /** Skips the first n results, for use in pagination */ + skip?: InputMaybe; + /** Specifies which properties to sort the results by */ + sort?: InputMaybe; + /** Takes n results, for use in pagination */ + take?: InputMaybe; }; export type CustomerSortParameter = { - createdAt?: InputMaybe; - emailAddress?: InputMaybe; - firstName?: InputMaybe; - id?: InputMaybe; - lastName?: InputMaybe; - phoneNumber?: InputMaybe; - title?: InputMaybe; - updatedAt?: InputMaybe; + createdAt?: InputMaybe; + emailAddress?: InputMaybe; + firstName?: InputMaybe; + id?: InputMaybe; + lastName?: InputMaybe; + phoneNumber?: InputMaybe; + title?: InputMaybe; + updatedAt?: InputMaybe; }; /** Operators for filtering on a list of Date fields */ export type DateListOperators = { - inList: Scalars['DateTime']; + inList: Scalars['DateTime']; }; /** Operators for filtering on a DateTime field */ export type DateOperators = { - after?: InputMaybe; - before?: InputMaybe; - between?: InputMaybe; - eq?: InputMaybe; - isNull?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; + between?: InputMaybe; + eq?: InputMaybe; + isNull?: InputMaybe; }; export type DateRange = { - end: Scalars['DateTime']; - start: Scalars['DateTime']; + end: Scalars['DateTime']; + start: Scalars['DateTime']; }; /** @@ -838,156 +822,156 @@ export type DateRange = { * See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/datetime-local#Additional_attributes */ export type DateTimeCustomFieldConfig = CustomField & { - __typename?: 'DateTimeCustomFieldConfig'; - description?: Maybe>; - internal?: Maybe; - label?: Maybe>; - list: Scalars['Boolean']; - max?: Maybe; - min?: Maybe; - name: Scalars['String']; - nullable?: Maybe; - readonly?: Maybe; - step?: Maybe; - type: Scalars['String']; - ui?: Maybe; + __typename?: 'DateTimeCustomFieldConfig'; + description?: Maybe>; + internal?: Maybe; + label?: Maybe>; + list: Scalars['Boolean']; + max?: Maybe; + min?: Maybe; + name: Scalars['String']; + nullable?: Maybe; + readonly?: Maybe; + step?: Maybe; + type: Scalars['String']; + ui?: Maybe; }; export type DeletionResponse = { - __typename?: 'DeletionResponse'; - message?: Maybe; - result: DeletionResult; + __typename?: 'DeletionResponse'; + message?: Maybe; + result: DeletionResult; }; export enum DeletionResult { - /** The entity was successfully deleted */ - DELETED = 'DELETED', - /** Deletion did not take place, reason given in message */ - NOT_DELETED = 'NOT_DELETED', + /** The entity was successfully deleted */ + DELETED = 'DELETED', + /** Deletion did not take place, reason given in message */ + NOT_DELETED = 'NOT_DELETED' } export type Discount = { - __typename?: 'Discount'; - adjustmentSource: Scalars['String']; - amount: Scalars['Int']; - amountWithTax: Scalars['Int']; - description: Scalars['String']; - type: AdjustmentType; + __typename?: 'Discount'; + adjustmentSource: Scalars['String']; + amount: Scalars['Int']; + amountWithTax: Scalars['Int']; + description: Scalars['String']; + type: AdjustmentType; }; /** Returned when attempting to create a Customer with an email address already registered to an existing User. */ export type EmailAddressConflictError = ErrorResult & { - __typename?: 'EmailAddressConflictError'; - errorCode: ErrorCode; - message: Scalars['String']; + __typename?: 'EmailAddressConflictError'; + errorCode: ErrorCode; + message: Scalars['String']; }; export enum ErrorCode { - ALREADY_LOGGED_IN_ERROR = 'ALREADY_LOGGED_IN_ERROR', - COUPON_CODE_EXPIRED_ERROR = 'COUPON_CODE_EXPIRED_ERROR', - COUPON_CODE_INVALID_ERROR = 'COUPON_CODE_INVALID_ERROR', - COUPON_CODE_LIMIT_ERROR = 'COUPON_CODE_LIMIT_ERROR', - EMAIL_ADDRESS_CONFLICT_ERROR = 'EMAIL_ADDRESS_CONFLICT_ERROR', - IDENTIFIER_CHANGE_TOKEN_EXPIRED_ERROR = 'IDENTIFIER_CHANGE_TOKEN_EXPIRED_ERROR', - IDENTIFIER_CHANGE_TOKEN_INVALID_ERROR = 'IDENTIFIER_CHANGE_TOKEN_INVALID_ERROR', - INELIGIBLE_PAYMENT_METHOD_ERROR = 'INELIGIBLE_PAYMENT_METHOD_ERROR', - INELIGIBLE_SHIPPING_METHOD_ERROR = 'INELIGIBLE_SHIPPING_METHOD_ERROR', - INSUFFICIENT_STOCK_ERROR = 'INSUFFICIENT_STOCK_ERROR', - INVALID_CREDENTIALS_ERROR = 'INVALID_CREDENTIALS_ERROR', - MISSING_PASSWORD_ERROR = 'MISSING_PASSWORD_ERROR', - NATIVE_AUTH_STRATEGY_ERROR = 'NATIVE_AUTH_STRATEGY_ERROR', - NEGATIVE_QUANTITY_ERROR = 'NEGATIVE_QUANTITY_ERROR', - NOT_VERIFIED_ERROR = 'NOT_VERIFIED_ERROR', - NO_ACTIVE_ORDER_ERROR = 'NO_ACTIVE_ORDER_ERROR', - ORDER_LIMIT_ERROR = 'ORDER_LIMIT_ERROR', - ORDER_MODIFICATION_ERROR = 'ORDER_MODIFICATION_ERROR', - ORDER_PAYMENT_STATE_ERROR = 'ORDER_PAYMENT_STATE_ERROR', - ORDER_STATE_TRANSITION_ERROR = 'ORDER_STATE_TRANSITION_ERROR', - PASSWORD_ALREADY_SET_ERROR = 'PASSWORD_ALREADY_SET_ERROR', - PASSWORD_RESET_TOKEN_EXPIRED_ERROR = 'PASSWORD_RESET_TOKEN_EXPIRED_ERROR', - PASSWORD_RESET_TOKEN_INVALID_ERROR = 'PASSWORD_RESET_TOKEN_INVALID_ERROR', - PASSWORD_VALIDATION_ERROR = 'PASSWORD_VALIDATION_ERROR', - PAYMENT_DECLINED_ERROR = 'PAYMENT_DECLINED_ERROR', - PAYMENT_FAILED_ERROR = 'PAYMENT_FAILED_ERROR', - UNKNOWN_ERROR = 'UNKNOWN_ERROR', - VERIFICATION_TOKEN_EXPIRED_ERROR = 'VERIFICATION_TOKEN_EXPIRED_ERROR', - VERIFICATION_TOKEN_INVALID_ERROR = 'VERIFICATION_TOKEN_INVALID_ERROR', + ALREADY_LOGGED_IN_ERROR = 'ALREADY_LOGGED_IN_ERROR', + COUPON_CODE_EXPIRED_ERROR = 'COUPON_CODE_EXPIRED_ERROR', + COUPON_CODE_INVALID_ERROR = 'COUPON_CODE_INVALID_ERROR', + COUPON_CODE_LIMIT_ERROR = 'COUPON_CODE_LIMIT_ERROR', + EMAIL_ADDRESS_CONFLICT_ERROR = 'EMAIL_ADDRESS_CONFLICT_ERROR', + IDENTIFIER_CHANGE_TOKEN_EXPIRED_ERROR = 'IDENTIFIER_CHANGE_TOKEN_EXPIRED_ERROR', + IDENTIFIER_CHANGE_TOKEN_INVALID_ERROR = 'IDENTIFIER_CHANGE_TOKEN_INVALID_ERROR', + INELIGIBLE_PAYMENT_METHOD_ERROR = 'INELIGIBLE_PAYMENT_METHOD_ERROR', + INELIGIBLE_SHIPPING_METHOD_ERROR = 'INELIGIBLE_SHIPPING_METHOD_ERROR', + INSUFFICIENT_STOCK_ERROR = 'INSUFFICIENT_STOCK_ERROR', + INVALID_CREDENTIALS_ERROR = 'INVALID_CREDENTIALS_ERROR', + MISSING_PASSWORD_ERROR = 'MISSING_PASSWORD_ERROR', + NATIVE_AUTH_STRATEGY_ERROR = 'NATIVE_AUTH_STRATEGY_ERROR', + NEGATIVE_QUANTITY_ERROR = 'NEGATIVE_QUANTITY_ERROR', + NOT_VERIFIED_ERROR = 'NOT_VERIFIED_ERROR', + NO_ACTIVE_ORDER_ERROR = 'NO_ACTIVE_ORDER_ERROR', + ORDER_LIMIT_ERROR = 'ORDER_LIMIT_ERROR', + ORDER_MODIFICATION_ERROR = 'ORDER_MODIFICATION_ERROR', + ORDER_PAYMENT_STATE_ERROR = 'ORDER_PAYMENT_STATE_ERROR', + ORDER_STATE_TRANSITION_ERROR = 'ORDER_STATE_TRANSITION_ERROR', + PASSWORD_ALREADY_SET_ERROR = 'PASSWORD_ALREADY_SET_ERROR', + PASSWORD_RESET_TOKEN_EXPIRED_ERROR = 'PASSWORD_RESET_TOKEN_EXPIRED_ERROR', + PASSWORD_RESET_TOKEN_INVALID_ERROR = 'PASSWORD_RESET_TOKEN_INVALID_ERROR', + PASSWORD_VALIDATION_ERROR = 'PASSWORD_VALIDATION_ERROR', + PAYMENT_DECLINED_ERROR = 'PAYMENT_DECLINED_ERROR', + PAYMENT_FAILED_ERROR = 'PAYMENT_FAILED_ERROR', + UNKNOWN_ERROR = 'UNKNOWN_ERROR', + VERIFICATION_TOKEN_EXPIRED_ERROR = 'VERIFICATION_TOKEN_EXPIRED_ERROR', + VERIFICATION_TOKEN_INVALID_ERROR = 'VERIFICATION_TOKEN_INVALID_ERROR' } export type ErrorResult = { - errorCode: ErrorCode; - message: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; }; export type Facet = Node & { - __typename?: 'Facet'; - code: Scalars['String']; - createdAt: Scalars['DateTime']; - customFields?: Maybe; - id: Scalars['ID']; - languageCode: LanguageCode; - name: Scalars['String']; - translations: Array; - updatedAt: Scalars['DateTime']; - values: Array; + __typename?: 'Facet'; + code: Scalars['String']; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + id: Scalars['ID']; + languageCode: LanguageCode; + name: Scalars['String']; + translations: Array; + updatedAt: Scalars['DateTime']; + values: Array; }; export type FacetFilterParameter = { - code?: InputMaybe; - createdAt?: InputMaybe; - id?: InputMaybe; - languageCode?: InputMaybe; - name?: InputMaybe; - updatedAt?: InputMaybe; + code?: InputMaybe; + createdAt?: InputMaybe; + id?: InputMaybe; + languageCode?: InputMaybe; + name?: InputMaybe; + updatedAt?: InputMaybe; }; export type FacetList = PaginatedList & { - __typename?: 'FacetList'; - items: Array; - totalItems: Scalars['Int']; + __typename?: 'FacetList'; + items: Array; + totalItems: Scalars['Int']; }; export type FacetListOptions = { - /** Allows the results to be filtered */ - filter?: InputMaybe; - /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ - filterOperator?: InputMaybe; - /** Skips the first n results, for use in pagination */ - skip?: InputMaybe; - /** Specifies which properties to sort the results by */ - sort?: InputMaybe; - /** Takes n results, for use in pagination */ - take?: InputMaybe; + /** Allows the results to be filtered */ + filter?: InputMaybe; + /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ + filterOperator?: InputMaybe; + /** Skips the first n results, for use in pagination */ + skip?: InputMaybe; + /** Specifies which properties to sort the results by */ + sort?: InputMaybe; + /** Takes n results, for use in pagination */ + take?: InputMaybe; }; export type FacetSortParameter = { - code?: InputMaybe; - createdAt?: InputMaybe; - id?: InputMaybe; - name?: InputMaybe; - updatedAt?: InputMaybe; + code?: InputMaybe; + createdAt?: InputMaybe; + id?: InputMaybe; + name?: InputMaybe; + updatedAt?: InputMaybe; }; export type FacetTranslation = { - __typename?: 'FacetTranslation'; - createdAt: Scalars['DateTime']; - id: Scalars['ID']; - languageCode: LanguageCode; - name: Scalars['String']; - updatedAt: Scalars['DateTime']; + __typename?: 'FacetTranslation'; + createdAt: Scalars['DateTime']; + id: Scalars['ID']; + languageCode: LanguageCode; + name: Scalars['String']; + updatedAt: Scalars['DateTime']; }; export type FacetValue = Node & { - __typename?: 'FacetValue'; - code: Scalars['String']; - createdAt: Scalars['DateTime']; - customFields?: Maybe; - facet: Facet; - id: Scalars['ID']; - languageCode: LanguageCode; - name: Scalars['String']; - translations: Array; - updatedAt: Scalars['DateTime']; + __typename?: 'FacetValue'; + code: Scalars['String']; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + facet: Facet; + id: Scalars['ID']; + languageCode: LanguageCode; + name: Scalars['String']; + translations: Array; + updatedAt: Scalars['DateTime']; }; /** @@ -999,8 +983,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>; }; /** @@ -1008,145 +992,145 @@ export type FacetValueFilterInput = { * by the search, and in what quantity. */ export type FacetValueResult = { - __typename?: 'FacetValueResult'; - count: Scalars['Int']; - facetValue: FacetValue; + __typename?: 'FacetValueResult'; + count: Scalars['Int']; + facetValue: FacetValue; }; export type FacetValueTranslation = { - __typename?: 'FacetValueTranslation'; - createdAt: Scalars['DateTime']; - id: Scalars['ID']; - languageCode: LanguageCode; - name: Scalars['String']; - updatedAt: Scalars['DateTime']; + __typename?: 'FacetValueTranslation'; + createdAt: Scalars['DateTime']; + id: Scalars['ID']; + languageCode: LanguageCode; + name: Scalars['String']; + updatedAt: Scalars['DateTime']; }; export type FloatCustomFieldConfig = CustomField & { - __typename?: 'FloatCustomFieldConfig'; - description?: Maybe>; - internal?: Maybe; - label?: Maybe>; - list: Scalars['Boolean']; - max?: Maybe; - min?: Maybe; - name: Scalars['String']; - nullable?: Maybe; - readonly?: Maybe; - step?: Maybe; - type: Scalars['String']; - ui?: Maybe; + __typename?: 'FloatCustomFieldConfig'; + description?: Maybe>; + internal?: Maybe; + label?: Maybe>; + list: Scalars['Boolean']; + max?: Maybe; + min?: Maybe; + name: Scalars['String']; + nullable?: Maybe; + readonly?: Maybe; + step?: Maybe; + type: Scalars['String']; + ui?: Maybe; }; export type Fulfillment = Node & { - __typename?: 'Fulfillment'; - createdAt: Scalars['DateTime']; - customFields?: Maybe; - id: Scalars['ID']; - lines: Array; - method: Scalars['String']; - state: Scalars['String']; - /** @deprecated Use the `lines` field instead */ - summary: Array; - trackingCode?: Maybe; - updatedAt: Scalars['DateTime']; + __typename?: 'Fulfillment'; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + id: Scalars['ID']; + lines: Array; + method: Scalars['String']; + state: Scalars['String']; + /** @deprecated Use the `lines` field instead */ + summary: Array; + trackingCode?: Maybe; + updatedAt: Scalars['DateTime']; }; export type FulfillmentLine = { - __typename?: 'FulfillmentLine'; - fulfillment: Fulfillment; - fulfillmentId: Scalars['ID']; - orderLine: OrderLine; - orderLineId: Scalars['ID']; - quantity: Scalars['Int']; + __typename?: 'FulfillmentLine'; + fulfillment: Fulfillment; + fulfillmentId: Scalars['ID']; + orderLine: OrderLine; + orderLineId: Scalars['ID']; + quantity: Scalars['Int']; }; export enum GlobalFlag { - FALSE = 'FALSE', - INHERIT = 'INHERIT', - TRUE = 'TRUE', + FALSE = 'FALSE', + INHERIT = 'INHERIT', + TRUE = 'TRUE' } export type HistoryEntry = Node & { - __typename?: 'HistoryEntry'; - createdAt: Scalars['DateTime']; - data: Scalars['JSON']; - id: Scalars['ID']; - type: HistoryEntryType; - updatedAt: Scalars['DateTime']; + __typename?: 'HistoryEntry'; + createdAt: Scalars['DateTime']; + data: Scalars['JSON']; + id: Scalars['ID']; + type: HistoryEntryType; + updatedAt: Scalars['DateTime']; }; export type HistoryEntryFilterParameter = { - createdAt?: InputMaybe; - id?: InputMaybe; - type?: InputMaybe; - updatedAt?: InputMaybe; + createdAt?: InputMaybe; + id?: InputMaybe; + type?: InputMaybe; + updatedAt?: InputMaybe; }; export type HistoryEntryList = PaginatedList & { - __typename?: 'HistoryEntryList'; - items: Array; - totalItems: Scalars['Int']; + __typename?: 'HistoryEntryList'; + items: Array; + totalItems: Scalars['Int']; }; export type HistoryEntryListOptions = { - /** Allows the results to be filtered */ - filter?: InputMaybe; - /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ - filterOperator?: InputMaybe; - /** Skips the first n results, for use in pagination */ - skip?: InputMaybe; - /** Specifies which properties to sort the results by */ - sort?: InputMaybe; - /** Takes n results, for use in pagination */ - take?: InputMaybe; + /** Allows the results to be filtered */ + filter?: InputMaybe; + /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ + filterOperator?: InputMaybe; + /** Skips the first n results, for use in pagination */ + skip?: InputMaybe; + /** Specifies which properties to sort the results by */ + sort?: InputMaybe; + /** Takes n results, for use in pagination */ + take?: InputMaybe; }; export type HistoryEntrySortParameter = { - createdAt?: InputMaybe; - id?: InputMaybe; - updatedAt?: InputMaybe; + createdAt?: InputMaybe; + id?: InputMaybe; + updatedAt?: InputMaybe; }; export enum HistoryEntryType { - CUSTOMER_ADDED_TO_GROUP = 'CUSTOMER_ADDED_TO_GROUP', - CUSTOMER_ADDRESS_CREATED = 'CUSTOMER_ADDRESS_CREATED', - CUSTOMER_ADDRESS_DELETED = 'CUSTOMER_ADDRESS_DELETED', - CUSTOMER_ADDRESS_UPDATED = 'CUSTOMER_ADDRESS_UPDATED', - CUSTOMER_DETAIL_UPDATED = 'CUSTOMER_DETAIL_UPDATED', - CUSTOMER_EMAIL_UPDATE_REQUESTED = 'CUSTOMER_EMAIL_UPDATE_REQUESTED', - CUSTOMER_EMAIL_UPDATE_VERIFIED = 'CUSTOMER_EMAIL_UPDATE_VERIFIED', - CUSTOMER_NOTE = 'CUSTOMER_NOTE', - CUSTOMER_PASSWORD_RESET_REQUESTED = 'CUSTOMER_PASSWORD_RESET_REQUESTED', - CUSTOMER_PASSWORD_RESET_VERIFIED = 'CUSTOMER_PASSWORD_RESET_VERIFIED', - CUSTOMER_PASSWORD_UPDATED = 'CUSTOMER_PASSWORD_UPDATED', - CUSTOMER_REGISTERED = 'CUSTOMER_REGISTERED', - CUSTOMER_REMOVED_FROM_GROUP = 'CUSTOMER_REMOVED_FROM_GROUP', - CUSTOMER_VERIFIED = 'CUSTOMER_VERIFIED', - ORDER_CANCELLATION = 'ORDER_CANCELLATION', - ORDER_COUPON_APPLIED = 'ORDER_COUPON_APPLIED', - ORDER_COUPON_REMOVED = 'ORDER_COUPON_REMOVED', - ORDER_FULFILLMENT = 'ORDER_FULFILLMENT', - ORDER_FULFILLMENT_TRANSITION = 'ORDER_FULFILLMENT_TRANSITION', - ORDER_MODIFIED = 'ORDER_MODIFIED', - ORDER_NOTE = 'ORDER_NOTE', - ORDER_PAYMENT_TRANSITION = 'ORDER_PAYMENT_TRANSITION', - ORDER_REFUND_TRANSITION = 'ORDER_REFUND_TRANSITION', - ORDER_STATE_TRANSITION = 'ORDER_STATE_TRANSITION', + CUSTOMER_ADDED_TO_GROUP = 'CUSTOMER_ADDED_TO_GROUP', + CUSTOMER_ADDRESS_CREATED = 'CUSTOMER_ADDRESS_CREATED', + CUSTOMER_ADDRESS_DELETED = 'CUSTOMER_ADDRESS_DELETED', + CUSTOMER_ADDRESS_UPDATED = 'CUSTOMER_ADDRESS_UPDATED', + CUSTOMER_DETAIL_UPDATED = 'CUSTOMER_DETAIL_UPDATED', + CUSTOMER_EMAIL_UPDATE_REQUESTED = 'CUSTOMER_EMAIL_UPDATE_REQUESTED', + CUSTOMER_EMAIL_UPDATE_VERIFIED = 'CUSTOMER_EMAIL_UPDATE_VERIFIED', + CUSTOMER_NOTE = 'CUSTOMER_NOTE', + CUSTOMER_PASSWORD_RESET_REQUESTED = 'CUSTOMER_PASSWORD_RESET_REQUESTED', + CUSTOMER_PASSWORD_RESET_VERIFIED = 'CUSTOMER_PASSWORD_RESET_VERIFIED', + CUSTOMER_PASSWORD_UPDATED = 'CUSTOMER_PASSWORD_UPDATED', + CUSTOMER_REGISTERED = 'CUSTOMER_REGISTERED', + CUSTOMER_REMOVED_FROM_GROUP = 'CUSTOMER_REMOVED_FROM_GROUP', + CUSTOMER_VERIFIED = 'CUSTOMER_VERIFIED', + ORDER_CANCELLATION = 'ORDER_CANCELLATION', + ORDER_COUPON_APPLIED = 'ORDER_COUPON_APPLIED', + ORDER_COUPON_REMOVED = 'ORDER_COUPON_REMOVED', + ORDER_FULFILLMENT = 'ORDER_FULFILLMENT', + ORDER_FULFILLMENT_TRANSITION = 'ORDER_FULFILLMENT_TRANSITION', + ORDER_MODIFIED = 'ORDER_MODIFIED', + ORDER_NOTE = 'ORDER_NOTE', + ORDER_PAYMENT_TRANSITION = 'ORDER_PAYMENT_TRANSITION', + ORDER_REFUND_TRANSITION = 'ORDER_REFUND_TRANSITION', + ORDER_STATE_TRANSITION = 'ORDER_STATE_TRANSITION' } /** Operators for filtering on a list of ID fields */ export type IdListOperators = { - inList: Scalars['ID']; + inList: Scalars['ID']; }; /** Operators for filtering on an ID field */ export type IdOperators = { - eq?: InputMaybe; - in?: InputMaybe>; - isNull?: InputMaybe; - notEq?: InputMaybe; - notIn?: InputMaybe>; + eq?: InputMaybe; + in?: InputMaybe>; + isNull?: InputMaybe; + notEq?: InputMaybe; + notIn?: InputMaybe>; }; /** @@ -1154,9 +1138,9 @@ export type IdOperators = { * expired according to the `verificationTokenDuration` setting in the AuthOptions. */ export type IdentifierChangeTokenExpiredError = ErrorResult & { - __typename?: 'IdentifierChangeTokenExpiredError'; - errorCode: ErrorCode; - message: Scalars['String']; + __typename?: 'IdentifierChangeTokenExpiredError'; + errorCode: ErrorCode; + message: Scalars['String']; }; /** @@ -1164,57 +1148,57 @@ export type IdentifierChangeTokenExpiredError = ErrorResult & { * invalid or does not match any expected tokens. */ export type IdentifierChangeTokenInvalidError = ErrorResult & { - __typename?: 'IdentifierChangeTokenInvalidError'; - errorCode: ErrorCode; - message: Scalars['String']; + __typename?: 'IdentifierChangeTokenInvalidError'; + errorCode: ErrorCode; + message: Scalars['String']; }; /** Returned when attempting to add a Payment using a PaymentMethod for which the Order is not eligible. */ export type IneligiblePaymentMethodError = ErrorResult & { - __typename?: 'IneligiblePaymentMethodError'; - eligibilityCheckerMessage?: Maybe; - errorCode: ErrorCode; - message: Scalars['String']; + __typename?: 'IneligiblePaymentMethodError'; + eligibilityCheckerMessage?: Maybe; + errorCode: ErrorCode; + message: Scalars['String']; }; /** Returned when attempting to set a ShippingMethod for which the Order is not eligible */ export type IneligibleShippingMethodError = ErrorResult & { - __typename?: 'IneligibleShippingMethodError'; - errorCode: ErrorCode; - message: Scalars['String']; + __typename?: 'IneligibleShippingMethodError'; + errorCode: ErrorCode; + message: Scalars['String']; }; /** Returned when attempting to add more items to the Order than are available */ export type InsufficientStockError = ErrorResult & { - __typename?: 'InsufficientStockError'; - errorCode: ErrorCode; - message: Scalars['String']; - order: Order; - quantityAvailable: Scalars['Int']; + __typename?: 'InsufficientStockError'; + errorCode: ErrorCode; + message: Scalars['String']; + order: Order; + quantityAvailable: Scalars['Int']; }; export type IntCustomFieldConfig = CustomField & { - __typename?: 'IntCustomFieldConfig'; - description?: Maybe>; - internal?: Maybe; - label?: Maybe>; - list: Scalars['Boolean']; - max?: Maybe; - min?: Maybe; - name: Scalars['String']; - nullable?: Maybe; - readonly?: Maybe; - step?: Maybe; - type: Scalars['String']; - ui?: Maybe; + __typename?: 'IntCustomFieldConfig'; + description?: Maybe>; + internal?: Maybe; + label?: Maybe>; + list: Scalars['Boolean']; + max?: Maybe; + min?: Maybe; + name: Scalars['String']; + nullable?: Maybe; + readonly?: Maybe; + step?: Maybe; + type: Scalars['String']; + ui?: Maybe; }; /** Returned if the user authentication credentials are not valid */ export type InvalidCredentialsError = ErrorResult & { - __typename?: 'InvalidCredentialsError'; - authenticationError: Scalars['String']; - errorCode: ErrorCode; - message: Scalars['String']; + __typename?: 'InvalidCredentialsError'; + authenticationError: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; }; /** @@ -1227,584 +1211,606 @@ export type InvalidCredentialsError = ErrorResult & { * @docsCategory common */ export enum LanguageCode { - /** Afrikaans */ - af = 'af', - /** Akan */ - ak = 'ak', - /** Amharic */ - am = 'am', - /** Arabic */ - ar = 'ar', - /** Assamese */ - as = 'as', - /** Azerbaijani */ - az = 'az', - /** Belarusian */ - be = 'be', - /** Bulgarian */ - bg = 'bg', - /** Bambara */ - bm = 'bm', - /** Bangla */ - bn = 'bn', - /** Tibetan */ - bo = 'bo', - /** Breton */ - br = 'br', - /** Bosnian */ - bs = 'bs', - /** Catalan */ - ca = 'ca', - /** Chechen */ - ce = 'ce', - /** Corsican */ - co = 'co', - /** Czech */ - cs = 'cs', - /** Church Slavic */ - cu = 'cu', - /** Welsh */ - cy = 'cy', - /** Danish */ - da = 'da', - /** German */ - de = 'de', - /** Austrian German */ - de_AT = 'de_AT', - /** Swiss High German */ - de_CH = 'de_CH', - /** Dzongkha */ - dz = 'dz', - /** Ewe */ - ee = 'ee', - /** Greek */ - el = 'el', - /** English */ - en = 'en', - /** Australian English */ - en_AU = 'en_AU', - /** Canadian English */ - en_CA = 'en_CA', - /** British English */ - en_GB = 'en_GB', - /** American English */ - en_US = 'en_US', - /** Esperanto */ - eo = 'eo', - /** Spanish */ - es = 'es', - /** European Spanish */ - es_ES = 'es_ES', - /** Mexican Spanish */ - es_MX = 'es_MX', - /** Estonian */ - et = 'et', - /** Basque */ - eu = 'eu', - /** Persian */ - fa = 'fa', - /** Dari */ - fa_AF = 'fa_AF', - /** Fulah */ - ff = 'ff', - /** Finnish */ - fi = 'fi', - /** Faroese */ - fo = 'fo', - /** French */ - fr = 'fr', - /** Canadian French */ - fr_CA = 'fr_CA', - /** Swiss French */ - fr_CH = 'fr_CH', - /** Western Frisian */ - fy = 'fy', - /** Irish */ - ga = 'ga', - /** Scottish Gaelic */ - gd = 'gd', - /** Galician */ - gl = 'gl', - /** Gujarati */ - gu = 'gu', - /** Manx */ - gv = 'gv', - /** Hausa */ - ha = 'ha', - /** Hebrew */ - he = 'he', - /** Hindi */ - hi = 'hi', - /** Croatian */ - hr = 'hr', - /** Haitian Creole */ - ht = 'ht', - /** Hungarian */ - hu = 'hu', - /** Armenian */ - hy = 'hy', - /** Interlingua */ - ia = 'ia', - /** Indonesian */ - id = 'id', - /** Igbo */ - ig = 'ig', - /** Sichuan Yi */ - ii = 'ii', - /** Icelandic */ - is = 'is', - /** Italian */ - it = 'it', - /** Japanese */ - ja = 'ja', - /** Javanese */ - jv = 'jv', - /** Georgian */ - ka = 'ka', - /** Kikuyu */ - ki = 'ki', - /** Kazakh */ - kk = 'kk', - /** Kalaallisut */ - kl = 'kl', - /** Khmer */ - km = 'km', - /** Kannada */ - kn = 'kn', - /** Korean */ - ko = 'ko', - /** Kashmiri */ - ks = 'ks', - /** Kurdish */ - ku = 'ku', - /** Cornish */ - kw = 'kw', - /** Kyrgyz */ - ky = 'ky', - /** Latin */ - la = 'la', - /** Luxembourgish */ - lb = 'lb', - /** Ganda */ - lg = 'lg', - /** Lingala */ - ln = 'ln', - /** Lao */ - lo = 'lo', - /** Lithuanian */ - lt = 'lt', - /** Luba-Katanga */ - lu = 'lu', - /** Latvian */ - lv = 'lv', - /** Malagasy */ - mg = 'mg', - /** Maori */ - mi = 'mi', - /** Macedonian */ - mk = 'mk', - /** Malayalam */ - ml = 'ml', - /** Mongolian */ - mn = 'mn', - /** Marathi */ - mr = 'mr', - /** Malay */ - ms = 'ms', - /** Maltese */ - mt = 'mt', - /** Burmese */ - my = 'my', - /** Norwegian Bokmål */ - nb = 'nb', - /** North Ndebele */ - nd = 'nd', - /** Nepali */ - ne = 'ne', - /** Dutch */ - nl = 'nl', - /** Flemish */ - nl_BE = 'nl_BE', - /** Norwegian Nynorsk */ - nn = 'nn', - /** Nyanja */ - ny = 'ny', - /** Oromo */ - om = 'om', - /** Odia */ - or = 'or', - /** Ossetic */ - os = 'os', - /** Punjabi */ - pa = 'pa', - /** Polish */ - pl = 'pl', - /** Pashto */ - ps = 'ps', - /** Portuguese */ - pt = 'pt', - /** Brazilian Portuguese */ - pt_BR = 'pt_BR', - /** European Portuguese */ - pt_PT = 'pt_PT', - /** Quechua */ - qu = 'qu', - /** Romansh */ - rm = 'rm', - /** Rundi */ - rn = 'rn', - /** Romanian */ - ro = 'ro', - /** Moldavian */ - ro_MD = 'ro_MD', - /** Russian */ - ru = 'ru', - /** Kinyarwanda */ - rw = 'rw', - /** Sanskrit */ - sa = 'sa', - /** Sindhi */ - sd = 'sd', - /** Northern Sami */ - se = 'se', - /** Sango */ - sg = 'sg', - /** Sinhala */ - si = 'si', - /** Slovak */ - sk = 'sk', - /** Slovenian */ - sl = 'sl', - /** Samoan */ - sm = 'sm', - /** Shona */ - sn = 'sn', - /** Somali */ - so = 'so', - /** Albanian */ - sq = 'sq', - /** Serbian */ - sr = 'sr', - /** Southern Sotho */ - st = 'st', - /** Sundanese */ - su = 'su', - /** Swedish */ - sv = 'sv', - /** Swahili */ - sw = 'sw', - /** Congo Swahili */ - sw_CD = 'sw_CD', - /** Tamil */ - ta = 'ta', - /** Telugu */ - te = 'te', - /** Tajik */ - tg = 'tg', - /** Thai */ - th = 'th', - /** Tigrinya */ - ti = 'ti', - /** Turkmen */ - tk = 'tk', - /** Tongan */ - to = 'to', - /** Turkish */ - tr = 'tr', - /** Tatar */ - tt = 'tt', - /** Uyghur */ - ug = 'ug', - /** Ukrainian */ - uk = 'uk', - /** Urdu */ - ur = 'ur', - /** Uzbek */ - uz = 'uz', - /** Vietnamese */ - vi = 'vi', - /** Volapük */ - vo = 'vo', - /** Wolof */ - wo = 'wo', - /** Xhosa */ - xh = 'xh', - /** Yiddish */ - yi = 'yi', - /** Yoruba */ - yo = 'yo', - /** Chinese */ - zh = 'zh', - /** Simplified Chinese */ - zh_Hans = 'zh_Hans', - /** Traditional Chinese */ - zh_Hant = 'zh_Hant', - /** Zulu */ - zu = 'zu', + /** Afrikaans */ + af = 'af', + /** Akan */ + ak = 'ak', + /** Amharic */ + am = 'am', + /** Arabic */ + ar = 'ar', + /** Assamese */ + as = 'as', + /** Azerbaijani */ + az = 'az', + /** Belarusian */ + be = 'be', + /** Bulgarian */ + bg = 'bg', + /** Bambara */ + bm = 'bm', + /** Bangla */ + bn = 'bn', + /** Tibetan */ + bo = 'bo', + /** Breton */ + br = 'br', + /** Bosnian */ + bs = 'bs', + /** Catalan */ + ca = 'ca', + /** Chechen */ + ce = 'ce', + /** Corsican */ + co = 'co', + /** Czech */ + cs = 'cs', + /** Church Slavic */ + cu = 'cu', + /** Welsh */ + cy = 'cy', + /** Danish */ + da = 'da', + /** German */ + de = 'de', + /** Austrian German */ + de_AT = 'de_AT', + /** Swiss High German */ + de_CH = 'de_CH', + /** Dzongkha */ + dz = 'dz', + /** Ewe */ + ee = 'ee', + /** Greek */ + el = 'el', + /** English */ + en = 'en', + /** Australian English */ + en_AU = 'en_AU', + /** Canadian English */ + en_CA = 'en_CA', + /** British English */ + en_GB = 'en_GB', + /** American English */ + en_US = 'en_US', + /** Esperanto */ + eo = 'eo', + /** Spanish */ + es = 'es', + /** European Spanish */ + es_ES = 'es_ES', + /** Mexican Spanish */ + es_MX = 'es_MX', + /** Estonian */ + et = 'et', + /** Basque */ + eu = 'eu', + /** Persian */ + fa = 'fa', + /** Dari */ + fa_AF = 'fa_AF', + /** Fulah */ + ff = 'ff', + /** Finnish */ + fi = 'fi', + /** Faroese */ + fo = 'fo', + /** French */ + fr = 'fr', + /** Canadian French */ + fr_CA = 'fr_CA', + /** Swiss French */ + fr_CH = 'fr_CH', + /** Western Frisian */ + fy = 'fy', + /** Irish */ + ga = 'ga', + /** Scottish Gaelic */ + gd = 'gd', + /** Galician */ + gl = 'gl', + /** Gujarati */ + gu = 'gu', + /** Manx */ + gv = 'gv', + /** Hausa */ + ha = 'ha', + /** Hebrew */ + he = 'he', + /** Hindi */ + hi = 'hi', + /** Croatian */ + hr = 'hr', + /** Haitian Creole */ + ht = 'ht', + /** Hungarian */ + hu = 'hu', + /** Armenian */ + hy = 'hy', + /** Interlingua */ + ia = 'ia', + /** Indonesian */ + id = 'id', + /** Igbo */ + ig = 'ig', + /** Sichuan Yi */ + ii = 'ii', + /** Icelandic */ + is = 'is', + /** Italian */ + it = 'it', + /** Japanese */ + ja = 'ja', + /** Javanese */ + jv = 'jv', + /** Georgian */ + ka = 'ka', + /** Kikuyu */ + ki = 'ki', + /** Kazakh */ + kk = 'kk', + /** Kalaallisut */ + kl = 'kl', + /** Khmer */ + km = 'km', + /** Kannada */ + kn = 'kn', + /** Korean */ + ko = 'ko', + /** Kashmiri */ + ks = 'ks', + /** Kurdish */ + ku = 'ku', + /** Cornish */ + kw = 'kw', + /** Kyrgyz */ + ky = 'ky', + /** Latin */ + la = 'la', + /** Luxembourgish */ + lb = 'lb', + /** Ganda */ + lg = 'lg', + /** Lingala */ + ln = 'ln', + /** Lao */ + lo = 'lo', + /** Lithuanian */ + lt = 'lt', + /** Luba-Katanga */ + lu = 'lu', + /** Latvian */ + lv = 'lv', + /** Malagasy */ + mg = 'mg', + /** Maori */ + mi = 'mi', + /** Macedonian */ + mk = 'mk', + /** Malayalam */ + ml = 'ml', + /** Mongolian */ + mn = 'mn', + /** Marathi */ + mr = 'mr', + /** Malay */ + ms = 'ms', + /** Maltese */ + mt = 'mt', + /** Burmese */ + my = 'my', + /** Norwegian Bokmål */ + nb = 'nb', + /** North Ndebele */ + nd = 'nd', + /** Nepali */ + ne = 'ne', + /** Dutch */ + nl = 'nl', + /** Flemish */ + nl_BE = 'nl_BE', + /** Norwegian Nynorsk */ + nn = 'nn', + /** Nyanja */ + ny = 'ny', + /** Oromo */ + om = 'om', + /** Odia */ + or = 'or', + /** Ossetic */ + os = 'os', + /** Punjabi */ + pa = 'pa', + /** Polish */ + pl = 'pl', + /** Pashto */ + ps = 'ps', + /** Portuguese */ + pt = 'pt', + /** Brazilian Portuguese */ + pt_BR = 'pt_BR', + /** European Portuguese */ + pt_PT = 'pt_PT', + /** Quechua */ + qu = 'qu', + /** Romansh */ + rm = 'rm', + /** Rundi */ + rn = 'rn', + /** Romanian */ + ro = 'ro', + /** Moldavian */ + ro_MD = 'ro_MD', + /** Russian */ + ru = 'ru', + /** Kinyarwanda */ + rw = 'rw', + /** Sanskrit */ + sa = 'sa', + /** Sindhi */ + sd = 'sd', + /** Northern Sami */ + se = 'se', + /** Sango */ + sg = 'sg', + /** Sinhala */ + si = 'si', + /** Slovak */ + sk = 'sk', + /** Slovenian */ + sl = 'sl', + /** Samoan */ + sm = 'sm', + /** Shona */ + sn = 'sn', + /** Somali */ + so = 'so', + /** Albanian */ + sq = 'sq', + /** Serbian */ + sr = 'sr', + /** Southern Sotho */ + st = 'st', + /** Sundanese */ + su = 'su', + /** Swedish */ + sv = 'sv', + /** Swahili */ + sw = 'sw', + /** Congo Swahili */ + sw_CD = 'sw_CD', + /** Tamil */ + ta = 'ta', + /** Telugu */ + te = 'te', + /** Tajik */ + tg = 'tg', + /** Thai */ + th = 'th', + /** Tigrinya */ + ti = 'ti', + /** Turkmen */ + tk = 'tk', + /** Tongan */ + to = 'to', + /** Turkish */ + tr = 'tr', + /** Tatar */ + tt = 'tt', + /** Uyghur */ + ug = 'ug', + /** Ukrainian */ + uk = 'uk', + /** Urdu */ + ur = 'ur', + /** Uzbek */ + uz = 'uz', + /** Vietnamese */ + vi = 'vi', + /** Volapük */ + vo = 'vo', + /** Wolof */ + wo = 'wo', + /** Xhosa */ + xh = 'xh', + /** Yiddish */ + yi = 'yi', + /** Yoruba */ + yo = 'yo', + /** Chinese */ + zh = 'zh', + /** Simplified Chinese */ + zh_Hans = 'zh_Hans', + /** Traditional Chinese */ + zh_Hant = 'zh_Hant', + /** Zulu */ + zu = 'zu' } export type LocaleStringCustomFieldConfig = CustomField & { - __typename?: 'LocaleStringCustomFieldConfig'; - description?: Maybe>; - internal?: Maybe; - label?: Maybe>; - length?: Maybe; - list: Scalars['Boolean']; - name: Scalars['String']; - nullable?: Maybe; - pattern?: Maybe; - readonly?: Maybe; - type: Scalars['String']; - ui?: Maybe; + __typename?: 'LocaleStringCustomFieldConfig'; + description?: Maybe>; + internal?: Maybe; + label?: Maybe>; + length?: Maybe; + list: Scalars['Boolean']; + name: Scalars['String']; + nullable?: Maybe; + pattern?: Maybe; + readonly?: Maybe; + type: Scalars['String']; + ui?: Maybe; }; export type LocalizedString = { - __typename?: 'LocalizedString'; - languageCode: LanguageCode; - value: Scalars['String']; + __typename?: 'LocalizedString'; + languageCode: LanguageCode; + value: Scalars['String']; }; export enum LogicalOperator { - AND = 'AND', - OR = 'OR', + AND = 'AND', + OR = 'OR' } /** Returned when attempting to register or verify a customer account without a password, when one is required. */ export type MissingPasswordError = ErrorResult & { - __typename?: 'MissingPasswordError'; - errorCode: ErrorCode; - message: Scalars['String']; + __typename?: 'MissingPasswordError'; + errorCode: ErrorCode; + message: Scalars['String']; }; export type Mutation = { - __typename?: 'Mutation'; - /** Adds an item to the order. If custom fields are defined on the OrderLine entity, a third argument 'customFields' will be available. */ - addItemToOrder: UpdateOrderItemsResult; - /** Add a Payment to the Order */ - addPaymentToOrder: AddPaymentToOrderResult; - /** Adjusts an OrderLine. If custom fields are defined on the OrderLine entity, a third argument 'customFields' of type `OrderLineCustomFieldsInput` will be available. */ - adjustOrderLine: UpdateOrderItemsResult; - /** Applies the given coupon code to the active Order */ - applyCouponCode: ApplyCouponCodeResult; - /** Authenticates the user using a named authentication strategy */ - authenticate: AuthenticationResult; - /** Create a new Customer Address */ - createCustomerAddress: Address; - /** Delete an existing Address */ - deleteCustomerAddress: Success; - /** Authenticates the user using the native authentication strategy. This mutation is an alias for `authenticate({ native: { ... }})` */ - login: NativeAuthenticationResult; - /** End the current authenticated session */ - logout: Success; - /** Regenerate and send a verification token for a new Customer registration. Only applicable if `authOptions.requireVerification` is set to true. */ - refreshCustomerVerification: RefreshCustomerVerificationResult; - /** - * Register a Customer account with the given credentials. There are three possible registration flows: - * - * _If `authOptions.requireVerification` is set to `true`:_ - * - * 1. **The Customer is registered _with_ a password**. A verificationToken will be created (and typically emailed to the Customer). That - * verificationToken would then be passed to the `verifyCustomerAccount` mutation _without_ a password. The Customer is then - * verified and authenticated in one step. - * 2. **The Customer is registered _without_ a password**. A verificationToken will be created (and typically emailed to the Customer). That - * verificationToken would then be passed to the `verifyCustomerAccount` mutation _with_ the chosen password of the Customer. The Customer is then - * verified and authenticated in one step. - * - * _If `authOptions.requireVerification` is set to `false`:_ - * - * 3. The Customer _must_ be registered _with_ a password. No further action is needed - the Customer is able to authenticate immediately. - */ - registerCustomerAccount: RegisterCustomerAccountResult; - /** Remove all OrderLine from the Order */ - removeAllOrderLines: RemoveOrderItemsResult; - /** Removes the given coupon code from the active Order */ - removeCouponCode?: Maybe; - /** Remove an OrderLine from the Order */ - removeOrderLine: RemoveOrderItemsResult; - /** Requests a password reset email to be sent */ - requestPasswordReset?: Maybe; - /** - * Request to update the emailAddress of the active Customer. If `authOptions.requireVerification` is enabled - * (as is the default), then the `identifierChangeToken` will be assigned to the current User and - * a IdentifierChangeRequestEvent will be raised. This can then be used e.g. by the EmailPlugin to email - * that verification token to the Customer, which is then used to verify the change of email address. - */ - requestUpdateCustomerEmailAddress: RequestUpdateCustomerEmailAddressResult; - /** Resets a Customer's password based on the provided token */ - resetPassword: ResetPasswordResult; - /** Set the Customer for the Order. Required only if the Customer is not currently logged in */ - setCustomerForOrder: SetCustomerForOrderResult; - /** Sets the billing address for this order */ - setOrderBillingAddress: ActiveOrderResult; - /** Allows any custom fields to be set for the active order */ - setOrderCustomFields: ActiveOrderResult; - /** Sets the shipping address for this order */ - setOrderShippingAddress: ActiveOrderResult; - /** - * Sets the shipping method by id, which can be obtained with the `eligibleShippingMethods` query. - * An Order can have multiple shipping methods, in which case you can pass an array of ids. In this case, - * you should configure a custom ShippingLineAssignmentStrategy in order to know which OrderLines each - * shipping method will apply to. - */ - setOrderShippingMethod: SetOrderShippingMethodResult; - /** Transitions an Order to a new state. Valid next states can be found by querying `nextOrderStates` */ - transitionOrderToState?: Maybe; - /** Update an existing Customer */ - updateCustomer: Customer; - /** Update an existing Address */ - updateCustomerAddress: Address; - /** - * Confirm the update of the emailAddress with the provided token, which has been generated by the - * `requestUpdateCustomerEmailAddress` mutation. - */ - updateCustomerEmailAddress: UpdateCustomerEmailAddressResult; - /** Update the password of the active Customer */ - updateCustomerPassword: UpdateCustomerPasswordResult; - /** - * Verify a Customer email address with the token sent to that address. Only applicable if `authOptions.requireVerification` is set to true. - * - * If the Customer was not registered with a password in the `registerCustomerAccount` mutation, the password _must_ be - * provided here. - */ - verifyCustomerAccount: VerifyCustomerAccountResult; + __typename?: 'Mutation'; + /** Adds an item to the order. If custom fields are defined on the OrderLine entity, a third argument 'customFields' will be available. */ + addItemToOrder: UpdateOrderItemsResult; + /** Add a Payment to the Order */ + addPaymentToOrder: AddPaymentToOrderResult; + /** Adjusts an OrderLine. If custom fields are defined on the OrderLine entity, a third argument 'customFields' of type `OrderLineCustomFieldsInput` will be available. */ + adjustOrderLine: UpdateOrderItemsResult; + /** Applies the given coupon code to the active Order */ + applyCouponCode: ApplyCouponCodeResult; + /** Authenticates the user using a named authentication strategy */ + authenticate: AuthenticationResult; + /** Create a new Customer Address */ + createCustomerAddress: Address; + /** Delete an existing Address */ + deleteCustomerAddress: Success; + /** Authenticates the user using the native authentication strategy. This mutation is an alias for `authenticate({ native: { ... }})` */ + login: NativeAuthenticationResult; + /** End the current authenticated session */ + logout: Success; + /** Regenerate and send a verification token for a new Customer registration. Only applicable if `authOptions.requireVerification` is set to true. */ + refreshCustomerVerification: RefreshCustomerVerificationResult; + /** + * Register a Customer account with the given credentials. There are three possible registration flows: + * + * _If `authOptions.requireVerification` is set to `true`:_ + * + * 1. **The Customer is registered _with_ a password**. A verificationToken will be created (and typically emailed to the Customer). That + * verificationToken would then be passed to the `verifyCustomerAccount` mutation _without_ a password. The Customer is then + * verified and authenticated in one step. + * 2. **The Customer is registered _without_ a password**. A verificationToken will be created (and typically emailed to the Customer). That + * verificationToken would then be passed to the `verifyCustomerAccount` mutation _with_ the chosen password of the Customer. The Customer is then + * verified and authenticated in one step. + * + * _If `authOptions.requireVerification` is set to `false`:_ + * + * 3. The Customer _must_ be registered _with_ a password. No further action is needed - the Customer is able to authenticate immediately. + */ + registerCustomerAccount: RegisterCustomerAccountResult; + /** Remove all OrderLine from the Order */ + removeAllOrderLines: RemoveOrderItemsResult; + /** Removes the given coupon code from the active Order */ + removeCouponCode?: Maybe; + /** Remove an OrderLine from the Order */ + removeOrderLine: RemoveOrderItemsResult; + /** Requests a password reset email to be sent */ + requestPasswordReset?: Maybe; + /** + * Request to update the emailAddress of the active Customer. If `authOptions.requireVerification` is enabled + * (as is the default), then the `identifierChangeToken` will be assigned to the current User and + * a IdentifierChangeRequestEvent will be raised. This can then be used e.g. by the EmailPlugin to email + * that verification token to the Customer, which is then used to verify the change of email address. + */ + requestUpdateCustomerEmailAddress: RequestUpdateCustomerEmailAddressResult; + /** Resets a Customer's password based on the provided token */ + resetPassword: ResetPasswordResult; + /** Set the Customer for the Order. Required only if the Customer is not currently logged in */ + setCustomerForOrder: SetCustomerForOrderResult; + /** Sets the billing address for this order */ + setOrderBillingAddress: ActiveOrderResult; + /** Allows any custom fields to be set for the active order */ + setOrderCustomFields: ActiveOrderResult; + /** Sets the shipping address for this order */ + setOrderShippingAddress: ActiveOrderResult; + /** + * Sets the shipping method by id, which can be obtained with the `eligibleShippingMethods` query. + * An Order can have multiple shipping methods, in which case you can pass an array of ids. In this case, + * you should configure a custom ShippingLineAssignmentStrategy in order to know which OrderLines each + * shipping method will apply to. + */ + setOrderShippingMethod: SetOrderShippingMethodResult; + /** Transitions an Order to a new state. Valid next states can be found by querying `nextOrderStates` */ + transitionOrderToState?: Maybe; + /** Update an existing Customer */ + updateCustomer: Customer; + /** Update an existing Address */ + updateCustomerAddress: Address; + /** + * Confirm the update of the emailAddress with the provided token, which has been generated by the + * `requestUpdateCustomerEmailAddress` mutation. + */ + updateCustomerEmailAddress: UpdateCustomerEmailAddressResult; + /** Update the password of the active Customer */ + updateCustomerPassword: UpdateCustomerPasswordResult; + /** + * Verify a Customer email address with the token sent to that address. Only applicable if `authOptions.requireVerification` is set to true. + * + * If the Customer was not registered with a password in the `registerCustomerAccount` mutation, the password _must_ be + * provided here. + */ + verifyCustomerAccount: VerifyCustomerAccountResult; }; + export type MutationAddItemToOrderArgs = { - productVariantId: Scalars['ID']; - quantity: Scalars['Int']; + productVariantId: Scalars['ID']; + quantity: Scalars['Int']; }; + export type MutationAddPaymentToOrderArgs = { - input: PaymentInput; + input: PaymentInput; }; + export type MutationAdjustOrderLineArgs = { - orderLineId: Scalars['ID']; - quantity: Scalars['Int']; + orderLineId: Scalars['ID']; + quantity: Scalars['Int']; }; + export type MutationApplyCouponCodeArgs = { - couponCode: Scalars['String']; + couponCode: Scalars['String']; }; + export type MutationAuthenticateArgs = { - input: AuthenticationInput; - rememberMe?: InputMaybe; + input: AuthenticationInput; + rememberMe?: InputMaybe; }; + export type MutationCreateCustomerAddressArgs = { - input: CreateAddressInput; + input: CreateAddressInput; }; + export type MutationDeleteCustomerAddressArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type MutationLoginArgs = { - password: Scalars['String']; - rememberMe?: InputMaybe; - username: Scalars['String']; + password: Scalars['String']; + rememberMe?: InputMaybe; + username: Scalars['String']; }; + export type MutationRefreshCustomerVerificationArgs = { - emailAddress: Scalars['String']; + emailAddress: Scalars['String']; }; + export type MutationRegisterCustomerAccountArgs = { - input: RegisterCustomerInput; + input: RegisterCustomerInput; }; + export type MutationRemoveCouponCodeArgs = { - couponCode: Scalars['String']; + couponCode: Scalars['String']; }; + export type MutationRemoveOrderLineArgs = { - orderLineId: Scalars['ID']; + orderLineId: Scalars['ID']; }; + export type MutationRequestPasswordResetArgs = { - emailAddress: Scalars['String']; + emailAddress: Scalars['String']; }; + export type MutationRequestUpdateCustomerEmailAddressArgs = { - newEmailAddress: Scalars['String']; - password: Scalars['String']; + newEmailAddress: Scalars['String']; + password: Scalars['String']; }; + export type MutationResetPasswordArgs = { - password: Scalars['String']; - token: Scalars['String']; + password: Scalars['String']; + token: Scalars['String']; }; + export type MutationSetCustomerForOrderArgs = { - input: CreateCustomerInput; + input: CreateCustomerInput; }; + export type MutationSetOrderBillingAddressArgs = { - input: CreateAddressInput; + input: CreateAddressInput; }; + export type MutationSetOrderCustomFieldsArgs = { - input: UpdateOrderInput; + input: UpdateOrderInput; }; + export type MutationSetOrderShippingAddressArgs = { - input: CreateAddressInput; + input: CreateAddressInput; }; + export type MutationSetOrderShippingMethodArgs = { - shippingMethodId: Array; + shippingMethodId: Array; }; + export type MutationTransitionOrderToStateArgs = { - state: Scalars['String']; + state: Scalars['String']; }; + export type MutationUpdateCustomerArgs = { - input: UpdateCustomerInput; + input: UpdateCustomerInput; }; + export type MutationUpdateCustomerAddressArgs = { - input: UpdateAddressInput; + input: UpdateAddressInput; }; + export type MutationUpdateCustomerEmailAddressArgs = { - token: Scalars['String']; + token: Scalars['String']; }; + export type MutationUpdateCustomerPasswordArgs = { - currentPassword: Scalars['String']; - newPassword: Scalars['String']; + currentPassword: Scalars['String']; + newPassword: Scalars['String']; }; + export type MutationVerifyCustomerAccountArgs = { - password?: InputMaybe; - token: Scalars['String']; + password?: InputMaybe; + token: Scalars['String']; }; export type NativeAuthInput = { - password: Scalars['String']; - username: Scalars['String']; + password: Scalars['String']; + username: Scalars['String']; }; /** Returned when attempting an operation that relies on the NativeAuthStrategy, if that strategy is not configured. */ export type NativeAuthStrategyError = ErrorResult & { - __typename?: 'NativeAuthStrategyError'; - errorCode: ErrorCode; - message: Scalars['String']; + __typename?: 'NativeAuthStrategyError'; + errorCode: ErrorCode; + message: Scalars['String']; }; -export type NativeAuthenticationResult = - | CurrentUser - | InvalidCredentialsError - | NativeAuthStrategyError - | NotVerifiedError; +export type NativeAuthenticationResult = CurrentUser | InvalidCredentialsError | NativeAuthStrategyError | NotVerifiedError; /** Returned when attempting to set a negative OrderLine quantity. */ export type NegativeQuantityError = ErrorResult & { - __typename?: 'NegativeQuantityError'; - errorCode: ErrorCode; - message: Scalars['String']; + __typename?: 'NegativeQuantityError'; + errorCode: ErrorCode; + message: Scalars['String']; }; /** @@ -1812,13 +1818,13 @@ export type NegativeQuantityError = ErrorResult & { * current session. */ export type NoActiveOrderError = ErrorResult & { - __typename?: 'NoActiveOrderError'; - errorCode: ErrorCode; - message: Scalars['String']; + __typename?: 'NoActiveOrderError'; + errorCode: ErrorCode; + message: Scalars['String']; }; export type Node = { - id: Scalars['ID']; + id: Scalars['ID']; }; /** @@ -1826,293 +1832,294 @@ export type Node = { * and an unverified user attempts to authenticate. */ export type NotVerifiedError = ErrorResult & { - __typename?: 'NotVerifiedError'; - errorCode: ErrorCode; - message: Scalars['String']; + __typename?: 'NotVerifiedError'; + errorCode: ErrorCode; + message: Scalars['String']; }; /** Operators for filtering on a list of Number fields */ export type NumberListOperators = { - inList: Scalars['Float']; + inList: Scalars['Float']; }; /** Operators for filtering on a Int or Float field */ export type NumberOperators = { - between?: InputMaybe; - eq?: InputMaybe; - gt?: InputMaybe; - gte?: InputMaybe; - isNull?: InputMaybe; - lt?: InputMaybe; - lte?: InputMaybe; + between?: InputMaybe; + eq?: InputMaybe; + gt?: InputMaybe; + gte?: InputMaybe; + isNull?: InputMaybe; + lt?: InputMaybe; + lte?: InputMaybe; }; export type NumberRange = { - end: Scalars['Float']; - start: Scalars['Float']; + end: Scalars['Float']; + start: Scalars['Float']; }; export type Order = Node & { - __typename?: 'Order'; - /** An order is active as long as the payment process has not been completed */ - active: Scalars['Boolean']; - billingAddress?: Maybe; - /** A unique code for the Order */ - code: Scalars['String']; - /** An array of all coupon codes applied to the Order */ - couponCodes: Array; - createdAt: Scalars['DateTime']; - currencyCode: CurrencyCode; - customFields?: Maybe; - customer?: Maybe; - discounts: Array; - fulfillments?: Maybe>; - history: HistoryEntryList; - id: Scalars['ID']; - lines: Array; - /** - * The date & time that the Order was placed, i.e. the Customer - * completed the checkout and the Order is no longer "active" - */ - orderPlacedAt?: Maybe; - payments?: Maybe>; - /** Promotions applied to the order. Only gets populated after the payment process has completed. */ - promotions: Array; - shipping: Scalars['Int']; - shippingAddress?: Maybe; - shippingLines: Array; - shippingWithTax: Scalars['Int']; - state: Scalars['String']; - /** - * The subTotal is the total of all OrderLines in the Order. This figure also includes any Order-level - * discounts which have been prorated (proportionally distributed) amongst the OrderItems. - * To get a total of all OrderLines which does not account for prorated discounts, use the - * sum of `OrderLine.discountedLinePrice` values. - */ - subTotal: Scalars['Int']; - /** Same as subTotal, but inclusive of tax */ - subTotalWithTax: Scalars['Int']; - /** - * Surcharges are arbitrary modifications to the Order total which are neither - * ProductVariants nor discounts resulting from applied Promotions. For example, - * one-off discounts based on customer interaction, or surcharges based on payment - * methods. - */ - surcharges: Array; - /** A summary of the taxes being applied to this Order */ - taxSummary: Array; - /** Equal to subTotal plus shipping */ - total: Scalars['Int']; - totalQuantity: Scalars['Int']; - /** The final payable amount. Equal to subTotalWithTax plus shippingWithTax */ - totalWithTax: Scalars['Int']; - type: OrderType; - updatedAt: Scalars['DateTime']; + __typename?: 'Order'; + /** An order is active as long as the payment process has not been completed */ + active: Scalars['Boolean']; + billingAddress?: Maybe; + /** A unique code for the Order */ + code: Scalars['String']; + /** An array of all coupon codes applied to the Order */ + couponCodes: Array; + createdAt: Scalars['DateTime']; + currencyCode: CurrencyCode; + customFields?: Maybe; + customer?: Maybe; + discounts: Array; + fulfillments?: Maybe>; + history: HistoryEntryList; + id: Scalars['ID']; + lines: Array; + /** + * The date & time that the Order was placed, i.e. the Customer + * completed the checkout and the Order is no longer "active" + */ + orderPlacedAt?: Maybe; + payments?: Maybe>; + /** Promotions applied to the order. Only gets populated after the payment process has completed. */ + promotions: Array; + shipping: Scalars['Int']; + shippingAddress?: Maybe; + shippingLines: Array; + shippingWithTax: Scalars['Int']; + state: Scalars['String']; + /** + * The subTotal is the total of all OrderLines in the Order. This figure also includes any Order-level + * discounts which have been prorated (proportionally distributed) amongst the OrderItems. + * To get a total of all OrderLines which does not account for prorated discounts, use the + * sum of `OrderLine.discountedLinePrice` values. + */ + subTotal: Scalars['Int']; + /** Same as subTotal, but inclusive of tax */ + subTotalWithTax: Scalars['Int']; + /** + * Surcharges are arbitrary modifications to the Order total which are neither + * ProductVariants nor discounts resulting from applied Promotions. For example, + * one-off discounts based on customer interaction, or surcharges based on payment + * methods. + */ + surcharges: Array; + /** A summary of the taxes being applied to this Order */ + taxSummary: Array; + /** Equal to subTotal plus shipping */ + total: Scalars['Int']; + totalQuantity: Scalars['Int']; + /** The final payable amount. Equal to subTotalWithTax plus shippingWithTax */ + totalWithTax: Scalars['Int']; + type: OrderType; + updatedAt: Scalars['DateTime']; }; + export type OrderHistoryArgs = { - options?: InputMaybe; + options?: InputMaybe; }; export type OrderAddress = { - __typename?: 'OrderAddress'; - city?: Maybe; - company?: Maybe; - country?: Maybe; - countryCode?: Maybe; - customFields?: Maybe; - fullName?: Maybe; - phoneNumber?: Maybe; - postalCode?: Maybe; - province?: Maybe; - streetLine1?: Maybe; - streetLine2?: Maybe; + __typename?: 'OrderAddress'; + city?: Maybe; + company?: Maybe; + country?: Maybe; + countryCode?: Maybe; + customFields?: Maybe; + fullName?: Maybe; + phoneNumber?: Maybe; + postalCode?: Maybe; + province?: Maybe; + streetLine1?: Maybe; + streetLine2?: Maybe; }; export type OrderFilterParameter = { - active?: InputMaybe; - code?: InputMaybe; - createdAt?: InputMaybe; - currencyCode?: InputMaybe; - id?: InputMaybe; - orderPlacedAt?: InputMaybe; - shipping?: InputMaybe; - shippingWithTax?: InputMaybe; - state?: InputMaybe; - subTotal?: InputMaybe; - subTotalWithTax?: InputMaybe; - total?: InputMaybe; - totalQuantity?: InputMaybe; - totalWithTax?: InputMaybe; - 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 & { - __typename?: 'OrderItem'; - adjustments: Array; - cancelled: Scalars['Boolean']; - createdAt: Scalars['DateTime']; - /** - * The price of a single unit including discounts, excluding tax. - * - * If Order-level discounts have been applied, this will not be the - * actual taxable unit price (see `proratedUnitPrice`), but is generally the - * correct price to display to customers to avoid confusion - * about the internal handling of distributed Order-level discounts. - */ - discountedUnitPrice: Scalars['Int']; - /** The price of a single unit including discounts and tax */ - discountedUnitPriceWithTax: Scalars['Int']; - fulfillment?: Maybe; - id: Scalars['ID']; - /** - * The actual unit price, taking into account both item discounts _and_ prorated (proportionally-distributed) - * Order-level discounts. This value is the true economic value of the OrderItem, and is used in tax - * and refund calculations. - */ - proratedUnitPrice: Scalars['Int']; - /** The proratedUnitPrice including tax */ - proratedUnitPriceWithTax: Scalars['Int']; - refundId?: Maybe; - taxLines: Array; - taxRate: Scalars['Float']; - /** The price of a single unit, excluding tax and discounts */ - unitPrice: Scalars['Int']; - /** The price of a single unit, including tax but excluding discounts */ - unitPriceWithTax: Scalars['Int']; - unitTax: Scalars['Int']; - updatedAt: Scalars['DateTime']; + __typename?: 'OrderItem'; + adjustments: Array; + cancelled: Scalars['Boolean']; + createdAt: Scalars['DateTime']; + /** + * The price of a single unit including discounts, excluding tax. + * + * If Order-level discounts have been applied, this will not be the + * actual taxable unit price (see `proratedUnitPrice`), but is generally the + * correct price to display to customers to avoid confusion + * about the internal handling of distributed Order-level discounts. + */ + discountedUnitPrice: Scalars['Int']; + /** The price of a single unit including discounts and tax */ + discountedUnitPriceWithTax: Scalars['Int']; + fulfillment?: Maybe; + id: Scalars['ID']; + /** + * The actual unit price, taking into account both item discounts _and_ prorated (proportionally-distributed) + * Order-level discounts. This value is the true economic value of the OrderItem, and is used in tax + * and refund calculations. + */ + proratedUnitPrice: Scalars['Int']; + /** The proratedUnitPrice including tax */ + proratedUnitPriceWithTax: Scalars['Int']; + refundId?: Maybe; + taxLines: Array; + taxRate: Scalars['Float']; + /** The price of a single unit, excluding tax and discounts */ + unitPrice: Scalars['Int']; + /** The price of a single unit, including tax but excluding discounts */ + unitPriceWithTax: Scalars['Int']; + unitTax: Scalars['Int']; + updatedAt: Scalars['DateTime']; }; /** Returned when the maximum order size limit has been reached. */ export type OrderLimitError = ErrorResult & { - __typename?: 'OrderLimitError'; - errorCode: ErrorCode; - maxItems: Scalars['Int']; - message: Scalars['String']; + __typename?: 'OrderLimitError'; + errorCode: ErrorCode; + maxItems: Scalars['Int']; + message: Scalars['String']; }; export type OrderLine = Node & { - __typename?: 'OrderLine'; - createdAt: Scalars['DateTime']; - customFields?: Maybe; - /** The price of the line including discounts, excluding tax */ - discountedLinePrice: Scalars['Int']; - /** The price of the line including discounts and tax */ - discountedLinePriceWithTax: Scalars['Int']; - /** - * The price of a single unit including discounts, excluding tax. - * - * If Order-level discounts have been applied, this will not be the - * actual taxable unit price (see `proratedUnitPrice`), but is generally the - * correct price to display to customers to avoid confusion - * about the internal handling of distributed Order-level discounts. - */ - discountedUnitPrice: Scalars['Int']; - /** The price of a single unit including discounts and tax */ - discountedUnitPriceWithTax: Scalars['Int']; - discounts: Array; - featuredAsset?: Maybe; - fulfillmentLines?: Maybe>; - id: Scalars['ID']; - /** 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; - /** The quantity at the time the Order was placed */ - orderPlacedQuantity: Scalars['Int']; - productVariant: ProductVariant; - /** - * The actual line price, taking into account both item discounts _and_ prorated (proportionally-distributed) - * Order-level discounts. This value is the true economic value of the OrderLine, and is used in tax - * and refund calculations. - */ - proratedLinePrice: Scalars['Int']; - /** The proratedLinePrice including tax */ - proratedLinePriceWithTax: Scalars['Int']; - /** - * The actual unit price, taking into account both item discounts _and_ prorated (proportionally-distributed) - * Order-level discounts. This value is the true economic value of the OrderItem, and is used in tax - * and refund calculations. - */ - proratedUnitPrice: Scalars['Int']; - /** The proratedUnitPrice including tax */ - proratedUnitPriceWithTax: Scalars['Int']; - quantity: Scalars['Int']; - taxLines: Array; - taxRate: Scalars['Float']; - /** The price of a single unit, excluding tax and discounts */ - unitPrice: Scalars['Int']; - /** Non-zero if the unitPrice has changed since it was initially added to Order */ - unitPriceChangeSinceAdded: Scalars['Int']; - /** The price of a single unit, including tax but excluding discounts */ - unitPriceWithTax: Scalars['Int']; - /** Non-zero if the unitPriceWithTax has changed since it was initially added to Order */ - unitPriceWithTaxChangeSinceAdded: Scalars['Int']; - updatedAt: Scalars['DateTime']; + __typename?: 'OrderLine'; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + /** The price of the line including discounts, excluding tax */ + discountedLinePrice: Scalars['Int']; + /** The price of the line including discounts and tax */ + discountedLinePriceWithTax: Scalars['Int']; + /** + * The price of a single unit including discounts, excluding tax. + * + * If Order-level discounts have been applied, this will not be the + * actual taxable unit price (see `proratedUnitPrice`), but is generally the + * correct price to display to customers to avoid confusion + * about the internal handling of distributed Order-level discounts. + */ + discountedUnitPrice: Scalars['Int']; + /** The price of a single unit including discounts and tax */ + discountedUnitPriceWithTax: Scalars['Int']; + discounts: Array; + featuredAsset?: Maybe; + fulfillmentLines?: Maybe>; + id: Scalars['ID']; + /** 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; + /** The quantity at the time the Order was placed */ + orderPlacedQuantity: Scalars['Int']; + productVariant: ProductVariant; + /** + * The actual line price, taking into account both item discounts _and_ prorated (proportionally-distributed) + * Order-level discounts. This value is the true economic value of the OrderLine, and is used in tax + * and refund calculations. + */ + proratedLinePrice: Scalars['Int']; + /** The proratedLinePrice including tax */ + proratedLinePriceWithTax: Scalars['Int']; + /** + * The actual unit price, taking into account both item discounts _and_ prorated (proportionally-distributed) + * Order-level discounts. This value is the true economic value of the OrderItem, and is used in tax + * and refund calculations. + */ + proratedUnitPrice: Scalars['Int']; + /** The proratedUnitPrice including tax */ + proratedUnitPriceWithTax: Scalars['Int']; + quantity: Scalars['Int']; + taxLines: Array; + taxRate: Scalars['Float']; + /** The price of a single unit, excluding tax and discounts */ + unitPrice: Scalars['Int']; + /** Non-zero if the unitPrice has changed since it was initially added to Order */ + unitPriceChangeSinceAdded: Scalars['Int']; + /** The price of a single unit, including tax but excluding discounts */ + unitPriceWithTax: Scalars['Int']; + /** Non-zero if the unitPriceWithTax has changed since it was initially added to Order */ + unitPriceWithTaxChangeSinceAdded: Scalars['Int']; + updatedAt: Scalars['DateTime']; }; export type OrderList = PaginatedList & { - __typename?: 'OrderList'; - items: Array; - totalItems: Scalars['Int']; + __typename?: 'OrderList'; + items: Array; + totalItems: Scalars['Int']; }; export type OrderListOptions = { - /** Allows the results to be filtered */ - filter?: InputMaybe; - /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ - filterOperator?: InputMaybe; - /** Skips the first n results, for use in pagination */ - skip?: InputMaybe; - /** Specifies which properties to sort the results by */ - sort?: InputMaybe; - /** Takes n results, for use in pagination */ - take?: InputMaybe; + /** Allows the results to be filtered */ + filter?: InputMaybe; + /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ + filterOperator?: InputMaybe; + /** Skips the first n results, for use in pagination */ + skip?: InputMaybe; + /** Specifies which properties to sort the results by */ + sort?: InputMaybe; + /** Takes n results, for use in pagination */ + take?: InputMaybe; }; /** Returned when attempting to modify the contents of an Order that is not in the `AddingItems` state. */ export type OrderModificationError = ErrorResult & { - __typename?: 'OrderModificationError'; - errorCode: ErrorCode; - message: Scalars['String']; + __typename?: 'OrderModificationError'; + errorCode: ErrorCode; + message: Scalars['String']; }; /** Returned when attempting to add a Payment to an Order that is not in the `ArrangingPayment` state. */ export type OrderPaymentStateError = ErrorResult & { - __typename?: 'OrderPaymentStateError'; - errorCode: ErrorCode; - message: Scalars['String']; + __typename?: 'OrderPaymentStateError'; + errorCode: ErrorCode; + message: Scalars['String']; }; export type OrderSortParameter = { - code?: InputMaybe; - createdAt?: InputMaybe; - id?: InputMaybe; - orderPlacedAt?: InputMaybe; - shipping?: InputMaybe; - shippingWithTax?: InputMaybe; - state?: InputMaybe; - subTotal?: InputMaybe; - subTotalWithTax?: InputMaybe; - total?: InputMaybe; - totalQuantity?: InputMaybe; - totalWithTax?: InputMaybe; - updatedAt?: InputMaybe; + code?: InputMaybe; + createdAt?: InputMaybe; + id?: InputMaybe; + orderPlacedAt?: InputMaybe; + shipping?: InputMaybe; + shippingWithTax?: InputMaybe; + state?: InputMaybe; + subTotal?: InputMaybe; + subTotalWithTax?: InputMaybe; + total?: InputMaybe; + totalQuantity?: InputMaybe; + totalWithTax?: InputMaybe; + updatedAt?: InputMaybe; }; /** Returned if there is an error in transitioning the Order state */ export type OrderStateTransitionError = ErrorResult & { - __typename?: 'OrderStateTransitionError'; - errorCode: ErrorCode; - fromState: Scalars['String']; - message: Scalars['String']; - toState: Scalars['String']; - transitionError: Scalars['String']; + __typename?: 'OrderStateTransitionError'; + errorCode: ErrorCode; + fromState: Scalars['String']; + message: Scalars['String']; + toState: Scalars['String']; + transitionError: Scalars['String']; }; /** @@ -2120,33 +2127,33 @@ export type OrderStateTransitionError = ErrorResult & { * by taxRate. */ export type OrderTaxSummary = { - __typename?: 'OrderTaxSummary'; - /** A description of this tax */ - description: Scalars['String']; - /** The total net price or OrderItems to which this taxRate applies */ - taxBase: Scalars['Int']; - /** The taxRate as a percentage */ - taxRate: Scalars['Float']; - /** The total tax being applied to the Order at this taxRate */ - taxTotal: Scalars['Int']; + __typename?: 'OrderTaxSummary'; + /** A description of this tax */ + description: Scalars['String']; + /** The total net price or OrderItems to which this taxRate applies */ + taxBase: Scalars['Int']; + /** The taxRate as a percentage */ + taxRate: Scalars['Float']; + /** The total tax being applied to the Order at this taxRate */ + taxTotal: Scalars['Int']; }; export 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 & { - __typename?: 'PasswordAlreadySetError'; - errorCode: ErrorCode; - message: Scalars['String']; + __typename?: 'PasswordAlreadySetError'; + errorCode: ErrorCode; + message: Scalars['String']; }; /** @@ -2154,9 +2161,9 @@ export type PasswordAlreadySetError = ErrorResult & { * expired according to the `verificationTokenDuration` setting in the AuthOptions. */ export type PasswordResetTokenExpiredError = ErrorResult & { - __typename?: 'PasswordResetTokenExpiredError'; - errorCode: ErrorCode; - message: Scalars['String']; + __typename?: 'PasswordResetTokenExpiredError'; + errorCode: ErrorCode; + message: Scalars['String']; }; /** @@ -2164,84 +2171,84 @@ export type PasswordResetTokenExpiredError = ErrorResult & { * invalid or does not match any expected tokens. */ export type PasswordResetTokenInvalidError = ErrorResult & { - __typename?: 'PasswordResetTokenInvalidError'; - errorCode: ErrorCode; - message: Scalars['String']; + __typename?: 'PasswordResetTokenInvalidError'; + errorCode: ErrorCode; + message: Scalars['String']; }; /** Returned when attempting to register or verify a customer account where the given password fails password validation. */ export type PasswordValidationError = ErrorResult & { - __typename?: 'PasswordValidationError'; - errorCode: ErrorCode; - message: Scalars['String']; - validationErrorMessage: Scalars['String']; + __typename?: 'PasswordValidationError'; + errorCode: ErrorCode; + message: Scalars['String']; + validationErrorMessage: Scalars['String']; }; export type Payment = Node & { - __typename?: 'Payment'; - amount: Scalars['Int']; - createdAt: Scalars['DateTime']; - errorMessage?: Maybe; - id: Scalars['ID']; - metadata?: Maybe; - method: Scalars['String']; - refunds: Array; - state: Scalars['String']; - transactionId?: Maybe; - updatedAt: Scalars['DateTime']; + __typename?: 'Payment'; + amount: Scalars['Int']; + createdAt: Scalars['DateTime']; + errorMessage?: Maybe; + id: Scalars['ID']; + metadata?: Maybe; + method: Scalars['String']; + refunds: Array; + state: Scalars['String']; + transactionId?: Maybe; + updatedAt: Scalars['DateTime']; }; /** Returned when a Payment is declined by the payment provider. */ export type PaymentDeclinedError = ErrorResult & { - __typename?: 'PaymentDeclinedError'; - errorCode: ErrorCode; - message: Scalars['String']; - paymentErrorMessage: Scalars['String']; + __typename?: 'PaymentDeclinedError'; + errorCode: ErrorCode; + message: Scalars['String']; + paymentErrorMessage: Scalars['String']; }; /** Returned when a Payment fails due to an error. */ export type PaymentFailedError = ErrorResult & { - __typename?: 'PaymentFailedError'; - errorCode: ErrorCode; - message: Scalars['String']; - paymentErrorMessage: Scalars['String']; + __typename?: 'PaymentFailedError'; + errorCode: ErrorCode; + message: Scalars['String']; + paymentErrorMessage: Scalars['String']; }; /** Passed as input to the `addPaymentToOrder` mutation. */ export type PaymentInput = { - /** - * This field should contain arbitrary data passed to the specified PaymentMethodHandler's `createPayment()` method - * as the "metadata" argument. For example, it could contain an ID for the payment and other - * data generated by the payment provider. - */ - metadata: Scalars['JSON']; - /** This field should correspond to the `code` property of a PaymentMethod. */ - method: Scalars['String']; + /** + * This field should contain arbitrary data passed to the specified PaymentMethodHandler's `createPayment()` method + * as the "metadata" argument. For example, it could contain an ID for the payment and other + * data generated by the payment provider. + */ + metadata: Scalars['JSON']; + /** This field should correspond to the `code` property of a PaymentMethod. */ + method: Scalars['String']; }; export type PaymentMethod = Node & { - __typename?: 'PaymentMethod'; - checker?: Maybe; - code: Scalars['String']; - createdAt: Scalars['DateTime']; - customFields?: Maybe; - description: Scalars['String']; - enabled: Scalars['Boolean']; - handler: ConfigurableOperation; - id: Scalars['ID']; - name: Scalars['String']; - updatedAt: Scalars['DateTime']; + __typename?: 'PaymentMethod'; + checker?: Maybe; + code: Scalars['String']; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + description: Scalars['String']; + enabled: Scalars['Boolean']; + handler: ConfigurableOperation; + id: Scalars['ID']; + name: Scalars['String']; + updatedAt: Scalars['DateTime']; }; export type PaymentMethodQuote = { - __typename?: 'PaymentMethodQuote'; - code: Scalars['String']; - customFields?: Maybe; - description: Scalars['String']; - eligibilityMessage?: Maybe; - id: Scalars['ID']; - isEligible: Scalars['Boolean']; - name: Scalars['String']; + __typename?: 'PaymentMethodQuote'; + code: Scalars['String']; + customFields?: Maybe; + description: Scalars['String']; + eligibilityMessage?: Maybe; + id: Scalars['ID']; + isEligible: Scalars['Boolean']; + name: Scalars['String']; }; /** @@ -2277,927 +2284,902 @@ 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 = { - __typename?: 'PriceRange'; - max: Scalars['Int']; - min: Scalars['Int']; + __typename?: 'PriceRange'; + max: Scalars['Int']; + min: Scalars['Int']; }; export type Product = Node & { - __typename?: 'Product'; - assets: Array; - collections: Array; - createdAt: Scalars['DateTime']; - customFields?: Maybe; - description: Scalars['String']; - facetValues: Array; - featuredAsset?: Maybe; - id: Scalars['ID']; - languageCode: LanguageCode; - name: Scalars['String']; - optionGroups: Array; - slug: Scalars['String']; - translations: Array; - updatedAt: Scalars['DateTime']; - /** Returns a paginated, sortable, filterable list of ProductVariants */ - variantList: ProductVariantList; - /** Returns all ProductVariants */ - variants: Array; + __typename?: 'Product'; + assets: Array; + collections: Array; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + description: Scalars['String']; + facetValues: Array; + featuredAsset?: Maybe; + id: Scalars['ID']; + languageCode: LanguageCode; + name: Scalars['String']; + optionGroups: Array; + slug: Scalars['String']; + translations: Array; + updatedAt: Scalars['DateTime']; + /** Returns a paginated, sortable, filterable list of ProductVariants */ + variantList: ProductVariantList; + /** Returns all ProductVariants */ + variants: Array; }; + export type ProductVariantListArgs = { - options?: InputMaybe; + options?: InputMaybe; }; export type ProductFilterParameter = { - createdAt?: InputMaybe; - description?: InputMaybe; - id?: InputMaybe; - languageCode?: InputMaybe; - name?: InputMaybe; - slug?: InputMaybe; - updatedAt?: InputMaybe; + createdAt?: InputMaybe; + description?: InputMaybe; + id?: InputMaybe; + languageCode?: InputMaybe; + name?: InputMaybe; + slug?: InputMaybe; + updatedAt?: InputMaybe; }; export type ProductList = PaginatedList & { - __typename?: 'ProductList'; - items: Array; - totalItems: Scalars['Int']; + __typename?: 'ProductList'; + items: Array; + totalItems: Scalars['Int']; }; export type ProductListOptions = { - /** Allows the results to be filtered */ - filter?: InputMaybe; - /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ - filterOperator?: InputMaybe; - /** Skips the first n results, for use in pagination */ - skip?: InputMaybe; - /** Specifies which properties to sort the results by */ - sort?: InputMaybe; - /** Takes n results, for use in pagination */ - take?: InputMaybe; + /** Allows the results to be filtered */ + filter?: InputMaybe; + /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ + filterOperator?: InputMaybe; + /** Skips the first n results, for use in pagination */ + skip?: InputMaybe; + /** Specifies which properties to sort the results by */ + sort?: InputMaybe; + /** Takes n results, for use in pagination */ + take?: InputMaybe; }; export type ProductOption = Node & { - __typename?: 'ProductOption'; - code: Scalars['String']; - createdAt: Scalars['DateTime']; - customFields?: Maybe; - group: ProductOptionGroup; - groupId: Scalars['ID']; - id: Scalars['ID']; - languageCode: LanguageCode; - name: Scalars['String']; - translations: Array; - updatedAt: Scalars['DateTime']; + __typename?: 'ProductOption'; + code: Scalars['String']; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + group: ProductOptionGroup; + groupId: Scalars['ID']; + id: Scalars['ID']; + languageCode: LanguageCode; + name: Scalars['String']; + translations: Array; + updatedAt: Scalars['DateTime']; }; export type ProductOptionGroup = Node & { - __typename?: 'ProductOptionGroup'; - code: Scalars['String']; - createdAt: Scalars['DateTime']; - customFields?: Maybe; - id: Scalars['ID']; - languageCode: LanguageCode; - name: Scalars['String']; - options: Array; - translations: Array; - updatedAt: Scalars['DateTime']; + __typename?: 'ProductOptionGroup'; + code: Scalars['String']; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + id: Scalars['ID']; + languageCode: LanguageCode; + name: Scalars['String']; + options: Array; + translations: Array; + updatedAt: Scalars['DateTime']; }; export type ProductOptionGroupTranslation = { - __typename?: 'ProductOptionGroupTranslation'; - createdAt: Scalars['DateTime']; - id: Scalars['ID']; - languageCode: LanguageCode; - name: Scalars['String']; - updatedAt: Scalars['DateTime']; + __typename?: 'ProductOptionGroupTranslation'; + createdAt: Scalars['DateTime']; + id: Scalars['ID']; + languageCode: LanguageCode; + name: Scalars['String']; + updatedAt: Scalars['DateTime']; }; export type ProductOptionTranslation = { - __typename?: 'ProductOptionTranslation'; - createdAt: Scalars['DateTime']; - id: Scalars['ID']; - languageCode: LanguageCode; - name: Scalars['String']; - updatedAt: Scalars['DateTime']; + __typename?: 'ProductOptionTranslation'; + createdAt: Scalars['DateTime']; + id: Scalars['ID']; + languageCode: LanguageCode; + name: Scalars['String']; + updatedAt: Scalars['DateTime']; }; export type ProductSortParameter = { - createdAt?: InputMaybe; - description?: InputMaybe; - id?: InputMaybe; - name?: InputMaybe; - slug?: InputMaybe; - updatedAt?: InputMaybe; + createdAt?: InputMaybe; + description?: InputMaybe; + id?: InputMaybe; + name?: InputMaybe; + slug?: InputMaybe; + updatedAt?: InputMaybe; }; export type ProductTranslation = { - __typename?: 'ProductTranslation'; - createdAt: Scalars['DateTime']; - description: Scalars['String']; - id: Scalars['ID']; - languageCode: LanguageCode; - name: Scalars['String']; - slug: Scalars['String']; - updatedAt: Scalars['DateTime']; + __typename?: 'ProductTranslation'; + createdAt: Scalars['DateTime']; + description: Scalars['String']; + id: Scalars['ID']; + languageCode: LanguageCode; + name: Scalars['String']; + slug: Scalars['String']; + updatedAt: Scalars['DateTime']; }; export type ProductVariant = Node & { - __typename?: 'ProductVariant'; - assets: Array; - createdAt: Scalars['DateTime']; - currencyCode: CurrencyCode; - customFields?: Maybe; - facetValues: Array; - featuredAsset?: Maybe; - id: Scalars['ID']; - languageCode: LanguageCode; - name: Scalars['String']; - options: Array; - price: Scalars['Int']; - priceWithTax: Scalars['Int']; - product: Product; - productId: Scalars['ID']; - sku: Scalars['String']; - stockLevel: Scalars['String']; - taxCategory: TaxCategory; - taxRateApplied: TaxRate; - translations: Array; - updatedAt: Scalars['DateTime']; + __typename?: 'ProductVariant'; + assets: Array; + createdAt: Scalars['DateTime']; + currencyCode: CurrencyCode; + customFields?: Maybe; + facetValues: Array; + featuredAsset?: Maybe; + id: Scalars['ID']; + languageCode: LanguageCode; + name: Scalars['String']; + options: Array; + price: Scalars['Int']; + priceWithTax: Scalars['Int']; + product: Product; + productId: Scalars['ID']; + sku: Scalars['String']; + stockLevel: Scalars['String']; + taxCategory: TaxCategory; + taxRateApplied: TaxRate; + translations: Array; + updatedAt: Scalars['DateTime']; }; export type ProductVariantFilterParameter = { - createdAt?: InputMaybe; - currencyCode?: InputMaybe; - id?: InputMaybe; - languageCode?: InputMaybe; - name?: InputMaybe; - price?: InputMaybe; - priceWithTax?: InputMaybe; - productId?: InputMaybe; - sku?: InputMaybe; - stockLevel?: InputMaybe; - updatedAt?: InputMaybe; + createdAt?: InputMaybe; + currencyCode?: InputMaybe; + id?: InputMaybe; + languageCode?: InputMaybe; + name?: InputMaybe; + price?: InputMaybe; + priceWithTax?: InputMaybe; + productId?: InputMaybe; + sku?: InputMaybe; + stockLevel?: InputMaybe; + updatedAt?: InputMaybe; }; export type ProductVariantList = PaginatedList & { - __typename?: 'ProductVariantList'; - items: Array; - totalItems: Scalars['Int']; + __typename?: 'ProductVariantList'; + items: Array; + totalItems: Scalars['Int']; }; export type ProductVariantListOptions = { - /** Allows the results to be filtered */ - filter?: InputMaybe; - /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ - filterOperator?: InputMaybe; - /** Skips the first n results, for use in pagination */ - skip?: InputMaybe; - /** Specifies which properties to sort the results by */ - sort?: InputMaybe; - /** Takes n results, for use in pagination */ - take?: InputMaybe; + /** Allows the results to be filtered */ + filter?: InputMaybe; + /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ + filterOperator?: InputMaybe; + /** Skips the first n results, for use in pagination */ + skip?: InputMaybe; + /** Specifies which properties to sort the results by */ + sort?: InputMaybe; + /** Takes n results, for use in pagination */ + take?: InputMaybe; }; export type ProductVariantSortParameter = { - createdAt?: InputMaybe; - id?: InputMaybe; - name?: InputMaybe; - price?: InputMaybe; - priceWithTax?: InputMaybe; - productId?: InputMaybe; - sku?: InputMaybe; - stockLevel?: InputMaybe; - updatedAt?: InputMaybe; + createdAt?: InputMaybe; + id?: InputMaybe; + name?: InputMaybe; + price?: InputMaybe; + priceWithTax?: InputMaybe; + productId?: InputMaybe; + sku?: InputMaybe; + stockLevel?: InputMaybe; + updatedAt?: InputMaybe; }; export type ProductVariantTranslation = { - __typename?: 'ProductVariantTranslation'; - createdAt: Scalars['DateTime']; - id: Scalars['ID']; - languageCode: LanguageCode; - name: Scalars['String']; - updatedAt: Scalars['DateTime']; + __typename?: 'ProductVariantTranslation'; + createdAt: Scalars['DateTime']; + id: Scalars['ID']; + languageCode: LanguageCode; + name: Scalars['String']; + updatedAt: Scalars['DateTime']; }; export type Promotion = Node & { - __typename?: 'Promotion'; - actions: Array; - conditions: Array; - couponCode?: Maybe; - createdAt: Scalars['DateTime']; - customFields?: Maybe; - enabled: Scalars['Boolean']; - endsAt?: Maybe; - id: Scalars['ID']; - name: Scalars['String']; - perCustomerUsageLimit?: Maybe; - startsAt?: Maybe; - updatedAt: Scalars['DateTime']; + __typename?: 'Promotion'; + actions: Array; + conditions: Array; + couponCode?: Maybe; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + enabled: Scalars['Boolean']; + endsAt?: Maybe; + id: Scalars['ID']; + name: Scalars['String']; + perCustomerUsageLimit?: Maybe; + startsAt?: Maybe; + updatedAt: Scalars['DateTime']; }; export type PromotionList = PaginatedList & { - __typename?: 'PromotionList'; - items: Array; - totalItems: Scalars['Int']; + __typename?: 'PromotionList'; + items: Array; + totalItems: Scalars['Int']; }; export type Query = { - __typename?: 'Query'; - /** The active Channel */ - activeChannel: Channel; - /** The active Customer */ - activeCustomer?: Maybe; - /** - * The active Order. Will be `null` until an Order is created via `addItemToOrder`. Once an Order reaches the - * state of `PaymentAuthorized` or `PaymentSettled`, then that Order is no longer considered "active" and this - * query will once again return `null`. - */ - activeOrder?: Maybe; - /** An array of supported Countries */ - availableCountries: Array; - /** Returns a Collection either by its id or slug. If neither 'id' nor 'slug' is specified, an error will result. */ - collection?: Maybe; - /** A list of Collections available to the shop */ - collections: CollectionList; - /** Returns a list of payment methods and their eligibility based on the current active Order */ - eligiblePaymentMethods: Array; - /** Returns a list of eligible shipping methods based on the current active Order */ - eligibleShippingMethods: Array; - /** Returns a Facet by its id */ - facet?: Maybe; - /** A list of Facets available to the shop */ - facets: FacetList; - /** Returns information about the current authenticated User */ - me?: Maybe; - /** Returns the possible next states that the activeOrder can transition to */ - nextOrderStates: Array; - /** - * Returns an Order based on the id. Note that in the Shop API, only orders belonging to the - * currently-authenticated User may be queried. - */ - order?: Maybe; - /** - * Returns an Order based on the order `code`. For guest Orders (i.e. Orders placed by non-authenticated Customers) - * this query will only return the Order within 2 hours of the Order being placed. This allows an Order confirmation - * screen to be shown immediately after completion of a guest checkout, yet prevents security risks of allowing - * general anonymous access to Order data. - */ - orderByCode?: Maybe; - /** Get a Product either by id or slug. If neither 'id' nor 'slug' is specified, an error will result. */ - product?: Maybe; - /** Get a list of Products */ - products: ProductList; - /** Search Products based on the criteria set by the `SearchInput` */ - search: SearchResponse; + __typename?: 'Query'; + /** The active Channel */ + activeChannel: Channel; + /** The active Customer */ + activeCustomer?: Maybe; + /** + * The active Order. Will be `null` until an Order is created via `addItemToOrder`. Once an Order reaches the + * state of `PaymentAuthorized` or `PaymentSettled`, then that Order is no longer considered "active" and this + * query will once again return `null`. + */ + activeOrder?: Maybe; + /** An array of supported Countries */ + availableCountries: Array; + /** Returns a Collection either by its id or slug. If neither 'id' nor 'slug' is specified, an error will result. */ + collection?: Maybe; + /** A list of Collections available to the shop */ + collections: CollectionList; + /** Returns a list of payment methods and their eligibility based on the current active Order */ + eligiblePaymentMethods: Array; + /** Returns a list of eligible shipping methods based on the current active Order */ + eligibleShippingMethods: Array; + /** Returns a Facet by its id */ + facet?: Maybe; + /** A list of Facets available to the shop */ + facets: FacetList; + /** Returns information about the current authenticated User */ + me?: Maybe; + /** Returns the possible next states that the activeOrder can transition to */ + nextOrderStates: Array; + /** + * Returns an Order based on the id. Note that in the Shop API, only orders belonging to the + * currently-authenticated User may be queried. + */ + order?: Maybe; + /** + * Returns an Order based on the order `code`. For guest Orders (i.e. Orders placed by non-authenticated Customers) + * this query will only return the Order within 2 hours of the Order being placed. This allows an Order confirmation + * screen to be shown immediately after completion of a guest checkout, yet prevents security risks of allowing + * general anonymous access to Order data. + */ + orderByCode?: Maybe; + /** Get a Product either by id or slug. If neither 'id' nor 'slug' is specified, an error will result. */ + product?: Maybe; + /** Get a list of Products */ + products: ProductList; + /** Search Products based on the criteria set by the `SearchInput` */ + search: SearchResponse; }; + export type QueryCollectionArgs = { - id?: InputMaybe; - slug?: InputMaybe; + id?: InputMaybe; + slug?: InputMaybe; }; + export type QueryCollectionsArgs = { - options?: InputMaybe; + options?: InputMaybe; }; + export type QueryFacetArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type QueryFacetsArgs = { - options?: InputMaybe; + options?: InputMaybe; }; + export type QueryOrderArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type QueryOrderByCodeArgs = { - code: Scalars['String']; + code: Scalars['String']; }; + export type QueryProductArgs = { - id?: InputMaybe; - slug?: InputMaybe; + id?: InputMaybe; + slug?: InputMaybe; }; + export type QueryProductsArgs = { - options?: InputMaybe; + options?: InputMaybe; }; + export type QuerySearchArgs = { - input: SearchInput; + input: SearchInput; }; export type RefreshCustomerVerificationResult = NativeAuthStrategyError | Success; export type Refund = Node & { - __typename?: 'Refund'; - adjustment: Scalars['Int']; - createdAt: Scalars['DateTime']; - id: Scalars['ID']; - items: Scalars['Int']; - lines: Array; - metadata?: Maybe; - method?: Maybe; - paymentId: Scalars['ID']; - reason?: Maybe; - shipping: Scalars['Int']; - state: Scalars['String']; - total: Scalars['Int']; - transactionId?: Maybe; - updatedAt: Scalars['DateTime']; + __typename?: 'Refund'; + adjustment: Scalars['Int']; + createdAt: Scalars['DateTime']; + id: Scalars['ID']; + items: Scalars['Int']; + lines: Array; + metadata?: Maybe; + method?: Maybe; + paymentId: Scalars['ID']; + reason?: Maybe; + shipping: Scalars['Int']; + state: Scalars['String']; + total: Scalars['Int']; + transactionId?: Maybe; + updatedAt: Scalars['DateTime']; }; export type RefundLine = { - __typename?: 'RefundLine'; - orderLine: OrderLine; - orderLineId: Scalars['ID']; - quantity: Scalars['Int']; - refund: Refund; - refundId: Scalars['ID']; + __typename?: 'RefundLine'; + orderLine: OrderLine; + orderLineId: Scalars['ID']; + quantity: Scalars['Int']; + refund: Refund; + refundId: Scalars['ID']; }; -export type RegisterCustomerAccountResult = - | MissingPasswordError - | NativeAuthStrategyError - | PasswordValidationError - | Success; +export type RegisterCustomerAccountResult = MissingPasswordError | NativeAuthStrategyError | PasswordValidationError | Success; export type RegisterCustomerInput = { - emailAddress: Scalars['String']; - firstName?: InputMaybe; - lastName?: InputMaybe; - password?: InputMaybe; - phoneNumber?: InputMaybe; - title?: InputMaybe; + emailAddress: Scalars['String']; + firstName?: InputMaybe; + lastName?: InputMaybe; + password?: InputMaybe; + phoneNumber?: InputMaybe; + title?: InputMaybe; }; export type RelationCustomFieldConfig = CustomField & { - __typename?: 'RelationCustomFieldConfig'; - description?: Maybe>; - entity: Scalars['String']; - internal?: Maybe; - label?: Maybe>; - list: Scalars['Boolean']; - name: Scalars['String']; - nullable?: Maybe; - readonly?: Maybe; - scalarFields: Array; - type: Scalars['String']; - ui?: Maybe; + __typename?: 'RelationCustomFieldConfig'; + description?: Maybe>; + entity: Scalars['String']; + internal?: Maybe; + label?: Maybe>; + list: Scalars['Boolean']; + name: Scalars['String']; + nullable?: Maybe; + readonly?: Maybe; + scalarFields: Array; + type: Scalars['String']; + ui?: Maybe; }; export type RemoveOrderItemsResult = Order | OrderModificationError; export type RequestPasswordResetResult = NativeAuthStrategyError | Success; -export type RequestUpdateCustomerEmailAddressResult = - | EmailAddressConflictError - | InvalidCredentialsError - | NativeAuthStrategyError - | Success; +export type RequestUpdateCustomerEmailAddressResult = EmailAddressConflictError | InvalidCredentialsError | NativeAuthStrategyError | Success; -export type ResetPasswordResult = - | CurrentUser - | NativeAuthStrategyError - | NotVerifiedError - | PasswordResetTokenExpiredError - | PasswordResetTokenInvalidError - | PasswordValidationError; +export type ResetPasswordResult = CurrentUser | NativeAuthStrategyError | NotVerifiedError | PasswordResetTokenExpiredError | PasswordResetTokenInvalidError | PasswordValidationError; export type Role = Node & { - __typename?: 'Role'; - channels: Array; - code: Scalars['String']; - createdAt: Scalars['DateTime']; - description: Scalars['String']; - id: Scalars['ID']; - permissions: Array; - updatedAt: Scalars['DateTime']; + __typename?: 'Role'; + channels: Array; + code: Scalars['String']; + createdAt: Scalars['DateTime']; + description: Scalars['String']; + id: Scalars['ID']; + permissions: Array; + updatedAt: Scalars['DateTime']; }; export type RoleList = PaginatedList & { - __typename?: 'RoleList'; - items: Array; - totalItems: Scalars['Int']; + __typename?: 'RoleList'; + items: Array; + totalItems: Scalars['Int']; }; export type SearchInput = { - collectionId?: InputMaybe; - collectionSlug?: InputMaybe; - facetValueFilters?: InputMaybe>; - facetValueIds?: InputMaybe>; - facetValueOperator?: InputMaybe; - groupByProduct?: InputMaybe; - skip?: InputMaybe; - sort?: InputMaybe; - take?: InputMaybe; - term?: InputMaybe; + collectionId?: InputMaybe; + collectionSlug?: InputMaybe; + facetValueFilters?: InputMaybe>; + facetValueIds?: InputMaybe>; + facetValueOperator?: InputMaybe; + groupByProduct?: InputMaybe; + skip?: InputMaybe; + sort?: InputMaybe; + take?: InputMaybe; + term?: InputMaybe; }; export type SearchReindexResponse = { - __typename?: 'SearchReindexResponse'; - success: Scalars['Boolean']; + __typename?: 'SearchReindexResponse'; + success: Scalars['Boolean']; }; export type SearchResponse = { - __typename?: 'SearchResponse'; - collections: Array; - facetValues: Array; - items: Array; - totalItems: Scalars['Int']; + __typename?: 'SearchResponse'; + collections: Array; + facetValues: Array; + items: Array; + totalItems: Scalars['Int']; }; export type SearchResult = { - __typename?: 'SearchResult'; - /** An array of ids of the Collections in which this result appears */ - collectionIds: Array; - currencyCode: CurrencyCode; - description: Scalars['String']; - facetIds: Array; - facetValueIds: Array; - price: SearchResultPrice; - priceWithTax: SearchResultPrice; - productAsset?: Maybe; - productId: Scalars['ID']; - productName: Scalars['String']; - productVariantAsset?: Maybe; - productVariantId: Scalars['ID']; - productVariantName: Scalars['String']; - /** A relevance score for the result. Differs between database implementations */ - score: Scalars['Float']; - sku: Scalars['String']; - slug: Scalars['String']; + __typename?: 'SearchResult'; + /** An array of ids of the Collections in which this result appears */ + collectionIds: Array; + currencyCode: CurrencyCode; + description: Scalars['String']; + facetIds: Array; + facetValueIds: Array; + price: SearchResultPrice; + priceWithTax: SearchResultPrice; + productAsset?: Maybe; + productId: Scalars['ID']; + productName: Scalars['String']; + productVariantAsset?: Maybe; + productVariantId: Scalars['ID']; + productVariantName: Scalars['String']; + /** A relevance score for the result. Differs between database implementations */ + score: Scalars['Float']; + sku: Scalars['String']; + slug: Scalars['String']; }; export type SearchResultAsset = { - __typename?: 'SearchResultAsset'; - focalPoint?: Maybe; - id: Scalars['ID']; - preview: Scalars['String']; + __typename?: 'SearchResultAsset'; + focalPoint?: Maybe; + id: Scalars['ID']; + preview: Scalars['String']; }; /** The price of a search result product, either as a range or as a single price */ export type SearchResultPrice = PriceRange | SinglePrice; export type SearchResultSortParameter = { - name?: InputMaybe; - price?: InputMaybe; + name?: InputMaybe; + price?: InputMaybe; }; export type Seller = Node & { - __typename?: 'Seller'; - createdAt: Scalars['DateTime']; - customFields?: Maybe; - id: Scalars['ID']; - name: Scalars['String']; - updatedAt: Scalars['DateTime']; -}; - -export type SetCustomerForOrderResult = - | AlreadyLoggedInError - | EmailAddressConflictError - | NoActiveOrderError - | Order; - -export type SetOrderShippingMethodResult = - | IneligibleShippingMethodError - | NoActiveOrderError - | Order - | OrderModificationError; + __typename?: 'Seller'; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + id: Scalars['ID']; + name: Scalars['String']; + updatedAt: Scalars['DateTime']; +}; + +export type SetCustomerForOrderResult = AlreadyLoggedInError | EmailAddressConflictError | NoActiveOrderError | Order; + +export type SetOrderShippingMethodResult = IneligibleShippingMethodError | NoActiveOrderError | Order | OrderModificationError; export type ShippingLine = { - __typename?: 'ShippingLine'; - discountedPrice: Scalars['Int']; - discountedPriceWithTax: Scalars['Int']; - discounts: Array; - id: Scalars['ID']; - price: Scalars['Int']; - priceWithTax: Scalars['Int']; - shippingMethod: ShippingMethod; + __typename?: 'ShippingLine'; + discountedPrice: Scalars['Int']; + discountedPriceWithTax: Scalars['Int']; + discounts: Array; + id: Scalars['ID']; + price: Scalars['Int']; + priceWithTax: Scalars['Int']; + shippingMethod: ShippingMethod; }; export type ShippingMethod = Node & { - __typename?: 'ShippingMethod'; - calculator: ConfigurableOperation; - checker: ConfigurableOperation; - code: Scalars['String']; - createdAt: Scalars['DateTime']; - customFields?: Maybe; - description: Scalars['String']; - fulfillmentHandlerCode: Scalars['String']; - id: Scalars['ID']; - languageCode: LanguageCode; - name: Scalars['String']; - translations: Array; - updatedAt: Scalars['DateTime']; + __typename?: 'ShippingMethod'; + calculator: ConfigurableOperation; + checker: ConfigurableOperation; + code: Scalars['String']; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + description: Scalars['String']; + fulfillmentHandlerCode: Scalars['String']; + id: Scalars['ID']; + languageCode: LanguageCode; + name: Scalars['String']; + translations: Array; + updatedAt: Scalars['DateTime']; }; export type ShippingMethodList = PaginatedList & { - __typename?: 'ShippingMethodList'; - items: Array; - totalItems: Scalars['Int']; + __typename?: 'ShippingMethodList'; + items: Array; + totalItems: Scalars['Int']; }; export type ShippingMethodQuote = { - __typename?: 'ShippingMethodQuote'; - code: Scalars['String']; - customFields?: Maybe; - description: Scalars['String']; - id: Scalars['ID']; - /** Any optional metadata returned by the ShippingCalculator in the ShippingCalculationResult */ - metadata?: Maybe; - name: Scalars['String']; - price: Scalars['Int']; - priceWithTax: Scalars['Int']; + __typename?: 'ShippingMethodQuote'; + code: Scalars['String']; + customFields?: Maybe; + description: Scalars['String']; + id: Scalars['ID']; + /** Any optional metadata returned by the ShippingCalculator in the ShippingCalculationResult */ + metadata?: Maybe; + name: Scalars['String']; + price: Scalars['Int']; + priceWithTax: Scalars['Int']; }; export type ShippingMethodTranslation = { - __typename?: 'ShippingMethodTranslation'; - createdAt: Scalars['DateTime']; - description: Scalars['String']; - id: Scalars['ID']; - languageCode: LanguageCode; - name: Scalars['String']; - updatedAt: Scalars['DateTime']; + __typename?: 'ShippingMethodTranslation'; + createdAt: Scalars['DateTime']; + description: Scalars['String']; + id: Scalars['ID']; + languageCode: LanguageCode; + name: Scalars['String']; + updatedAt: Scalars['DateTime']; }; /** The price value where the result has a single price */ export type SinglePrice = { - __typename?: 'SinglePrice'; - value: Scalars['Int']; + __typename?: 'SinglePrice'; + value: Scalars['Int']; }; export enum SortOrder { - ASC = 'ASC', - DESC = 'DESC', + ASC = 'ASC', + DESC = 'DESC' } export type StringCustomFieldConfig = CustomField & { - __typename?: 'StringCustomFieldConfig'; - description?: Maybe>; - internal?: Maybe; - label?: Maybe>; - length?: Maybe; - list: Scalars['Boolean']; - name: Scalars['String']; - nullable?: Maybe; - options?: Maybe>; - pattern?: Maybe; - readonly?: Maybe; - type: Scalars['String']; - ui?: Maybe; + __typename?: 'StringCustomFieldConfig'; + description?: Maybe>; + internal?: Maybe; + label?: Maybe>; + length?: Maybe; + list: Scalars['Boolean']; + name: Scalars['String']; + nullable?: Maybe; + options?: Maybe>; + pattern?: Maybe; + readonly?: Maybe; + type: Scalars['String']; + ui?: Maybe; }; export type StringFieldOption = { - __typename?: 'StringFieldOption'; - label?: Maybe>; - value: Scalars['String']; + __typename?: 'StringFieldOption'; + label?: Maybe>; + value: Scalars['String']; }; /** Operators for filtering on a list of String fields */ export type StringListOperators = { - inList: Scalars['String']; + inList: Scalars['String']; }; /** Operators for filtering on a String field */ export type StringOperators = { - contains?: InputMaybe; - eq?: InputMaybe; - in?: InputMaybe>; - isNull?: InputMaybe; - notContains?: InputMaybe; - notEq?: InputMaybe; - notIn?: InputMaybe>; - regex?: InputMaybe; + contains?: InputMaybe; + eq?: InputMaybe; + in?: InputMaybe>; + isNull?: InputMaybe; + notContains?: InputMaybe; + notEq?: InputMaybe; + notIn?: InputMaybe>; + regex?: InputMaybe; }; /** Indicates that an operation succeeded, where we do not want to return any more specific information. */ export type Success = { - __typename?: 'Success'; - success: Scalars['Boolean']; + __typename?: 'Success'; + success: Scalars['Boolean']; }; export type Surcharge = Node & { - __typename?: 'Surcharge'; - createdAt: Scalars['DateTime']; - description: Scalars['String']; - id: Scalars['ID']; - price: Scalars['Int']; - priceWithTax: Scalars['Int']; - sku?: Maybe; - taxLines: Array; - taxRate: Scalars['Float']; - updatedAt: Scalars['DateTime']; + __typename?: 'Surcharge'; + createdAt: Scalars['DateTime']; + description: Scalars['String']; + id: Scalars['ID']; + price: Scalars['Int']; + priceWithTax: Scalars['Int']; + sku?: Maybe; + taxLines: Array; + taxRate: Scalars['Float']; + updatedAt: Scalars['DateTime']; }; export type Tag = Node & { - __typename?: 'Tag'; - createdAt: Scalars['DateTime']; - id: Scalars['ID']; - updatedAt: Scalars['DateTime']; - value: Scalars['String']; + __typename?: 'Tag'; + createdAt: Scalars['DateTime']; + id: Scalars['ID']; + updatedAt: Scalars['DateTime']; + value: Scalars['String']; }; export type TagList = PaginatedList & { - __typename?: 'TagList'; - items: Array; - totalItems: Scalars['Int']; + __typename?: 'TagList'; + items: Array; + totalItems: Scalars['Int']; }; export type TaxCategory = Node & { - __typename?: 'TaxCategory'; - createdAt: Scalars['DateTime']; - customFields?: Maybe; - id: Scalars['ID']; - isDefault: Scalars['Boolean']; - name: Scalars['String']; - updatedAt: Scalars['DateTime']; + __typename?: 'TaxCategory'; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + id: Scalars['ID']; + isDefault: Scalars['Boolean']; + name: Scalars['String']; + updatedAt: Scalars['DateTime']; }; export type TaxLine = { - __typename?: 'TaxLine'; - description: Scalars['String']; - taxRate: Scalars['Float']; + __typename?: 'TaxLine'; + description: Scalars['String']; + taxRate: Scalars['Float']; }; export type TaxRate = Node & { - __typename?: 'TaxRate'; - category: TaxCategory; - createdAt: Scalars['DateTime']; - customFields?: Maybe; - customerGroup?: Maybe; - enabled: Scalars['Boolean']; - id: Scalars['ID']; - name: Scalars['String']; - updatedAt: Scalars['DateTime']; - value: Scalars['Float']; - zone: Zone; + __typename?: 'TaxRate'; + category: TaxCategory; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + customerGroup?: Maybe; + enabled: Scalars['Boolean']; + id: Scalars['ID']; + name: Scalars['String']; + updatedAt: Scalars['DateTime']; + value: Scalars['Float']; + zone: Zone; }; export type TaxRateList = PaginatedList & { - __typename?: 'TaxRateList'; - items: Array; - totalItems: Scalars['Int']; + __typename?: 'TaxRateList'; + items: Array; + totalItems: Scalars['Int']; }; export type TextCustomFieldConfig = CustomField & { - __typename?: 'TextCustomFieldConfig'; - description?: Maybe>; - internal?: Maybe; - label?: Maybe>; - list: Scalars['Boolean']; - name: Scalars['String']; - nullable?: Maybe; - readonly?: Maybe; - type: Scalars['String']; - ui?: Maybe; + __typename?: 'TextCustomFieldConfig'; + description?: Maybe>; + internal?: Maybe; + label?: Maybe>; + list: Scalars['Boolean']; + name: Scalars['String']; + nullable?: Maybe; + readonly?: Maybe; + type: Scalars['String']; + ui?: Maybe; }; export type TransitionOrderToStateResult = Order | OrderStateTransitionError; export type UpdateAddressInput = { - city?: InputMaybe; - company?: InputMaybe; - countryCode?: InputMaybe; - customFields?: InputMaybe; - defaultBillingAddress?: InputMaybe; - defaultShippingAddress?: InputMaybe; - fullName?: InputMaybe; - id: Scalars['ID']; - phoneNumber?: InputMaybe; - postalCode?: InputMaybe; - province?: InputMaybe; - streetLine1?: InputMaybe; - streetLine2?: InputMaybe; -}; - -export type UpdateCustomerEmailAddressResult = - | IdentifierChangeTokenExpiredError - | IdentifierChangeTokenInvalidError - | NativeAuthStrategyError - | Success; + city?: InputMaybe; + company?: InputMaybe; + countryCode?: InputMaybe; + customFields?: InputMaybe; + defaultBillingAddress?: InputMaybe; + defaultShippingAddress?: InputMaybe; + fullName?: InputMaybe; + id: Scalars['ID']; + phoneNumber?: InputMaybe; + postalCode?: InputMaybe; + province?: InputMaybe; + streetLine1?: InputMaybe; + streetLine2?: InputMaybe; +}; + +export type UpdateCustomerEmailAddressResult = IdentifierChangeTokenExpiredError | IdentifierChangeTokenInvalidError | NativeAuthStrategyError | Success; export type UpdateCustomerInput = { - customFields?: InputMaybe; - firstName?: InputMaybe; - lastName?: InputMaybe; - phoneNumber?: InputMaybe; - title?: InputMaybe; + customFields?: InputMaybe; + firstName?: InputMaybe; + lastName?: InputMaybe; + phoneNumber?: InputMaybe; + title?: InputMaybe; }; -export type UpdateCustomerPasswordResult = - | InvalidCredentialsError - | NativeAuthStrategyError - | PasswordValidationError - | Success; +export type UpdateCustomerPasswordResult = InvalidCredentialsError | NativeAuthStrategyError | PasswordValidationError | Success; export type UpdateOrderInput = { - customFields?: InputMaybe; + customFields?: InputMaybe; }; -export type UpdateOrderItemsResult = - | InsufficientStockError - | NegativeQuantityError - | Order - | OrderLimitError - | OrderModificationError; +export type UpdateOrderItemsResult = InsufficientStockError | NegativeQuantityError | Order | OrderLimitError | OrderModificationError; export type User = Node & { - __typename?: 'User'; - authenticationMethods: Array; - createdAt: Scalars['DateTime']; - customFields?: Maybe; - id: Scalars['ID']; - identifier: Scalars['String']; - lastLogin?: Maybe; - roles: Array; - updatedAt: Scalars['DateTime']; - verified: Scalars['Boolean']; + __typename?: 'User'; + authenticationMethods: Array; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + id: Scalars['ID']; + identifier: Scalars['String']; + lastLogin?: Maybe; + roles: Array; + updatedAt: Scalars['DateTime']; + verified: Scalars['Boolean']; }; /** @@ -3205,9 +3187,9 @@ export type User = Node & { * expired according to the `verificationTokenDuration` setting in the AuthOptions. */ export type VerificationTokenExpiredError = ErrorResult & { - __typename?: 'VerificationTokenExpiredError'; - errorCode: ErrorCode; - message: Scalars['String']; + __typename?: 'VerificationTokenExpiredError'; + errorCode: ErrorCode; + message: Scalars['String']; }; /** @@ -3215,26 +3197,19 @@ export type VerificationTokenExpiredError = ErrorResult & { * invalid or does not match any expected tokens. */ export type VerificationTokenInvalidError = ErrorResult & { - __typename?: 'VerificationTokenInvalidError'; - errorCode: ErrorCode; - message: Scalars['String']; + __typename?: 'VerificationTokenInvalidError'; + errorCode: ErrorCode; + message: Scalars['String']; }; -export type VerifyCustomerAccountResult = - | CurrentUser - | MissingPasswordError - | NativeAuthStrategyError - | PasswordAlreadySetError - | PasswordValidationError - | VerificationTokenExpiredError - | VerificationTokenInvalidError; +export type VerifyCustomerAccountResult = CurrentUser | MissingPasswordError | NativeAuthStrategyError | PasswordAlreadySetError | PasswordValidationError | VerificationTokenExpiredError | VerificationTokenInvalidError; export type Zone = Node & { - __typename?: 'Zone'; - createdAt: Scalars['DateTime']; - customFields?: Maybe; - id: Scalars['ID']; - members: Array; - name: Scalars['String']; - updatedAt: Scalars['DateTime']; + __typename?: 'Zone'; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + id: Scalars['ID']; + members: Array; + name: Scalars['String']; + updatedAt: Scalars['DateTime']; }; diff --git a/packages/core/e2e/fixtures/e2e-products-money-handling.csv b/packages/core/e2e/fixtures/e2e-products-money-handling.csv new file mode 100644 index 0000000000..f47e1832ec --- /dev/null +++ b/packages/core/e2e/fixtures/e2e-products-money-handling.csv @@ -0,0 +1,3 @@ +name , slug , description , assets , facets , optionGroups , optionValues , sku , price , taxCategory , stockOnHand , trackInventory , variantAssets , variantFacets +Cheap Widget , cheap-widget , "A very affordable widget." , , category:electronics , "" , "" , CW0001 , 0.31 , standard , , false , , +Expensive Widget , expensive-widget , "A luxury widget with a luxury price tag!" , , category:electronics , , , EW0001 , 9999999.00 , standard , , false , , diff --git a/packages/core/e2e/graphql/generated-e2e-admin-types.ts b/packages/core/e2e/graphql/generated-e2e-admin-types.ts index 87542b11ec..0a450a6ef8 100644 --- a/packages/core/e2e/graphql/generated-e2e-admin-types.ts +++ b/packages/core/e2e/graphql/generated-e2e-admin-types.ts @@ -6,366 +6,347 @@ export type MakeOptional = Omit & { [SubKey in K]?: export type MakeMaybe = Omit & { [SubKey in K]: Maybe }; /** All built-in and custom scalars, mapped to their actual values */ export type Scalars = { - ID: string; - String: string; - Boolean: boolean; - Int: number; - Float: number; - /** 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 Adjustment = { - adjustmentSource: Scalars['String']; - amount: Scalars['Int']; - data?: Maybe; - description: Scalars['String']; - type: AdjustmentType; + adjustmentSource: Scalars['String']; + amount: Scalars['Int']; + data?: Maybe; + description: Scalars['String']; + type: AdjustmentType; }; export enum AdjustmentType { - DISTRIBUTED_ORDER_PROMOTION = 'DISTRIBUTED_ORDER_PROMOTION', - OTHER = 'OTHER', - PROMOTION = 'PROMOTION', + DISTRIBUTED_ORDER_PROMOTION = 'DISTRIBUTED_ORDER_PROMOTION', + OTHER = 'OTHER', + PROMOTION = 'PROMOTION' } export type Administrator = Node & { - createdAt: Scalars['DateTime']; - customFields?: Maybe; - emailAddress: Scalars['String']; - firstName: Scalars['String']; - id: Scalars['ID']; - lastName: Scalars['String']; - updatedAt: Scalars['DateTime']; - user: User; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + emailAddress: Scalars['String']; + firstName: Scalars['String']; + id: Scalars['ID']; + lastName: Scalars['String']; + updatedAt: Scalars['DateTime']; + user: User; }; export type AdministratorFilterParameter = { - createdAt?: InputMaybe; - emailAddress?: InputMaybe; - firstName?: InputMaybe; - id?: InputMaybe; - lastName?: InputMaybe; - updatedAt?: InputMaybe; + createdAt?: InputMaybe; + emailAddress?: InputMaybe; + firstName?: InputMaybe; + id?: InputMaybe; + lastName?: InputMaybe; + updatedAt?: InputMaybe; }; export type AdministratorList = PaginatedList & { - items: Array; - totalItems: Scalars['Int']; + items: Array; + totalItems: Scalars['Int']; }; export type AdministratorListOptions = { - /** Allows the results to be filtered */ - filter?: InputMaybe; - /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ - filterOperator?: InputMaybe; - /** Skips the first n results, for use in pagination */ - skip?: InputMaybe; - /** Specifies which properties to sort the results by */ - sort?: InputMaybe; - /** Takes n results, for use in pagination */ - take?: InputMaybe; + /** Allows the results to be filtered */ + filter?: InputMaybe; + /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ + filterOperator?: InputMaybe; + /** Skips the first n results, for use in pagination */ + skip?: InputMaybe; + /** Specifies which properties to sort the results by */ + sort?: InputMaybe; + /** Takes n results, for use in pagination */ + take?: InputMaybe; }; export type AdministratorPaymentInput = { - metadata?: InputMaybe; - paymentMethod?: InputMaybe; + metadata?: InputMaybe; + paymentMethod?: InputMaybe; }; export type AdministratorRefundInput = { - paymentId: Scalars['ID']; - reason?: InputMaybe; + paymentId: Scalars['ID']; + reason?: InputMaybe; }; export type AdministratorSortParameter = { - createdAt?: InputMaybe; - emailAddress?: InputMaybe; - firstName?: InputMaybe; - id?: InputMaybe; - lastName?: InputMaybe; - updatedAt?: InputMaybe; -}; - -export type Allocation = Node & - StockMovement & { - createdAt: Scalars['DateTime']; - id: Scalars['ID']; - orderLine: OrderLine; - productVariant: ProductVariant; - quantity: Scalars['Int']; - type: StockMovementType; - updatedAt: Scalars['DateTime']; - }; + createdAt?: InputMaybe; + emailAddress?: InputMaybe; + firstName?: InputMaybe; + id?: InputMaybe; + lastName?: InputMaybe; + updatedAt?: InputMaybe; +}; + +export type Allocation = Node & StockMovement & { + createdAt: Scalars['DateTime']; + id: Scalars['ID']; + orderLine: OrderLine; + productVariant: ProductVariant; + quantity: Scalars['Int']; + type: StockMovementType; + updatedAt: Scalars['DateTime']; +}; /** Returned if an attempting to refund an OrderItem which has already been refunded */ export type AlreadyRefundedError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; - refundId: Scalars['ID']; + errorCode: ErrorCode; + message: Scalars['String']; + refundId: Scalars['ID']; }; -export type ApplyCouponCodeResult = - | CouponCodeExpiredError - | CouponCodeInvalidError - | CouponCodeLimitError - | Order; +export type ApplyCouponCodeResult = CouponCodeExpiredError | CouponCodeInvalidError | CouponCodeLimitError | Order; export type Asset = Node & { - createdAt: Scalars['DateTime']; - customFields?: Maybe; - fileSize: Scalars['Int']; - focalPoint?: Maybe; - height: Scalars['Int']; - id: Scalars['ID']; - mimeType: Scalars['String']; - name: Scalars['String']; - preview: Scalars['String']; - source: Scalars['String']; - tags: Array; - type: AssetType; - updatedAt: Scalars['DateTime']; - width: Scalars['Int']; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + fileSize: Scalars['Int']; + focalPoint?: Maybe; + height: Scalars['Int']; + id: Scalars['ID']; + mimeType: Scalars['String']; + name: Scalars['String']; + preview: Scalars['String']; + source: Scalars['String']; + tags: Array; + type: AssetType; + updatedAt: Scalars['DateTime']; + width: Scalars['Int']; }; export type AssetFilterParameter = { - createdAt?: InputMaybe; - fileSize?: InputMaybe; - height?: InputMaybe; - id?: InputMaybe; - mimeType?: InputMaybe; - name?: InputMaybe; - preview?: InputMaybe; - source?: InputMaybe; - type?: InputMaybe; - updatedAt?: InputMaybe; - width?: InputMaybe; + createdAt?: InputMaybe; + fileSize?: InputMaybe; + height?: InputMaybe; + id?: InputMaybe; + mimeType?: InputMaybe; + name?: InputMaybe; + preview?: InputMaybe; + source?: InputMaybe; + type?: InputMaybe; + updatedAt?: InputMaybe; + width?: InputMaybe; }; export type AssetList = PaginatedList & { - items: Array; - totalItems: Scalars['Int']; + items: Array; + totalItems: Scalars['Int']; }; export type AssetListOptions = { - /** Allows the results to be filtered */ - filter?: InputMaybe; - /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ - filterOperator?: InputMaybe; - /** Skips the first n results, for use in pagination */ - skip?: InputMaybe; - /** Specifies which properties to sort the results by */ - sort?: InputMaybe; - tags?: InputMaybe>; - tagsOperator?: InputMaybe; - /** Takes n results, for use in pagination */ - take?: InputMaybe; + /** Allows the results to be filtered */ + filter?: InputMaybe; + /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ + filterOperator?: InputMaybe; + /** Skips the first n results, for use in pagination */ + skip?: InputMaybe; + /** Specifies which properties to sort the results by */ + sort?: InputMaybe; + tags?: InputMaybe>; + tagsOperator?: InputMaybe; + /** Takes n results, for use in pagination */ + take?: InputMaybe; }; export type AssetSortParameter = { - createdAt?: InputMaybe; - fileSize?: InputMaybe; - height?: InputMaybe; - id?: InputMaybe; - mimeType?: InputMaybe; - name?: InputMaybe; - preview?: InputMaybe; - source?: InputMaybe; - updatedAt?: InputMaybe; - width?: InputMaybe; + createdAt?: InputMaybe; + fileSize?: InputMaybe; + height?: InputMaybe; + id?: InputMaybe; + mimeType?: InputMaybe; + name?: InputMaybe; + preview?: InputMaybe; + source?: InputMaybe; + updatedAt?: InputMaybe; + width?: InputMaybe; }; export enum AssetType { - BINARY = 'BINARY', - IMAGE = 'IMAGE', - VIDEO = 'VIDEO', + BINARY = 'BINARY', + IMAGE = 'IMAGE', + VIDEO = 'VIDEO' } export type AssignAssetsToChannelInput = { - assetIds: Array; - channelId: Scalars['ID']; + assetIds: Array; + channelId: Scalars['ID']; }; export type AssignCollectionsToChannelInput = { - channelId: Scalars['ID']; - collectionIds: Array; + channelId: Scalars['ID']; + collectionIds: Array; }; export type AssignFacetsToChannelInput = { - channelId: Scalars['ID']; - facetIds: Array; + channelId: Scalars['ID']; + facetIds: Array; }; export type AssignProductVariantsToChannelInput = { - channelId: Scalars['ID']; - priceFactor?: InputMaybe; - productVariantIds: Array; + channelId: Scalars['ID']; + priceFactor?: InputMaybe; + productVariantIds: Array; }; export type AssignProductsToChannelInput = { - channelId: Scalars['ID']; - priceFactor?: InputMaybe; - productIds: Array; + channelId: Scalars['ID']; + priceFactor?: InputMaybe; + productIds: Array; }; export type AssignPromotionsToChannelInput = { - channelId: Scalars['ID']; - promotionIds: Array; + channelId: Scalars['ID']; + promotionIds: Array; }; export type AuthenticationInput = { - native?: InputMaybe; + native?: InputMaybe; }; export type AuthenticationMethod = Node & { - createdAt: Scalars['DateTime']; - id: Scalars['ID']; - strategy: Scalars['String']; - updatedAt: Scalars['DateTime']; + createdAt: Scalars['DateTime']; + id: Scalars['ID']; + strategy: Scalars['String']; + updatedAt: Scalars['DateTime']; }; export type AuthenticationResult = CurrentUser | InvalidCredentialsError; export type BooleanCustomFieldConfig = CustomField & { - description?: Maybe>; - internal?: Maybe; - label?: Maybe>; - list: Scalars['Boolean']; - name: Scalars['String']; - nullable?: Maybe; - readonly?: Maybe; - type: Scalars['String']; - ui?: Maybe; + description?: Maybe>; + internal?: Maybe; + label?: Maybe>; + list: Scalars['Boolean']; + name: Scalars['String']; + nullable?: Maybe; + readonly?: Maybe; + type: Scalars['String']; + ui?: Maybe; }; /** Operators for filtering on a list of Boolean fields */ export type BooleanListOperators = { - inList: Scalars['Boolean']; + inList: Scalars['Boolean']; }; /** Operators for filtering on a Boolean field */ export type BooleanOperators = { - eq?: InputMaybe; - isNull?: InputMaybe; + eq?: InputMaybe; + isNull?: InputMaybe; }; /** Returned if an attempting to cancel lines from an Order which is still active */ export type CancelActiveOrderError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; - orderState: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; + orderState: Scalars['String']; }; export type CancelOrderInput = { - /** Specify whether the shipping charges should also be cancelled. Defaults to false */ - cancelShipping?: InputMaybe; - /** Optionally specify which OrderLines to cancel. If not provided, all OrderLines will be cancelled */ - lines?: InputMaybe>; - /** The id of the order to be cancelled */ - orderId: Scalars['ID']; - reason?: InputMaybe; -}; - -export type CancelOrderResult = - | CancelActiveOrderError - | EmptyOrderLineSelectionError - | MultipleOrderError - | Order - | OrderStateTransitionError - | QuantityTooGreatError; + /** Specify whether the shipping charges should also be cancelled. Defaults to false */ + cancelShipping?: InputMaybe; + /** Optionally specify which OrderLines to cancel. If not provided, all OrderLines will be cancelled */ + lines?: InputMaybe>; + /** The id of the order to be cancelled */ + orderId: Scalars['ID']; + reason?: InputMaybe; +}; + +export type CancelOrderResult = CancelActiveOrderError | EmptyOrderLineSelectionError | MultipleOrderError | Order | OrderStateTransitionError | QuantityTooGreatError; /** Returned if the Payment cancellation fails */ export type CancelPaymentError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; - paymentErrorMessage: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; + paymentErrorMessage: Scalars['String']; }; export type CancelPaymentResult = CancelPaymentError | Payment | PaymentStateTransitionError; -export type Cancellation = Node & - StockMovement & { - createdAt: Scalars['DateTime']; - id: Scalars['ID']; - orderLine: OrderLine; - productVariant: ProductVariant; - quantity: Scalars['Int']; - type: StockMovementType; - updatedAt: Scalars['DateTime']; - }; +export type Cancellation = Node & StockMovement & { + createdAt: Scalars['DateTime']; + id: Scalars['ID']; + orderLine: OrderLine; + productVariant: ProductVariant; + quantity: Scalars['Int']; + type: StockMovementType; + updatedAt: Scalars['DateTime']; +}; export type Channel = Node & { - code: Scalars['String']; - createdAt: Scalars['DateTime']; - 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']; }; /** @@ -373,73 +354,74 @@ export type Channel = Node & { * of the GlobalSettings */ export type ChannelDefaultLanguageError = ErrorResult & { - channelCode: Scalars['String']; - errorCode: ErrorCode; - language: Scalars['String']; - message: Scalars['String']; + channelCode: Scalars['String']; + errorCode: ErrorCode; + language: Scalars['String']; + message: Scalars['String']; }; export type Collection = Node & { - assets: Array; - breadcrumbs: Array; - children?: Maybe>; - createdAt: Scalars['DateTime']; - customFields?: Maybe; - description: Scalars['String']; - featuredAsset?: Maybe; - filters: Array; - id: Scalars['ID']; - inheritFilters: Scalars['Boolean']; - isPrivate: Scalars['Boolean']; - languageCode?: Maybe; - name: Scalars['String']; - parent?: Maybe; - position: Scalars['Int']; - productVariants: ProductVariantList; - slug: Scalars['String']; - translations: Array; - updatedAt: Scalars['DateTime']; + assets: Array; + breadcrumbs: Array; + children?: Maybe>; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + description: Scalars['String']; + featuredAsset?: Maybe; + filters: Array; + id: Scalars['ID']; + inheritFilters: Scalars['Boolean']; + isPrivate: Scalars['Boolean']; + languageCode?: Maybe; + name: Scalars['String']; + parent?: Maybe; + position: Scalars['Int']; + productVariants: ProductVariantList; + slug: Scalars['String']; + translations: Array; + updatedAt: Scalars['DateTime']; }; + export type CollectionProductVariantsArgs = { - options?: InputMaybe; + options?: InputMaybe; }; export type CollectionBreadcrumb = { - id: Scalars['ID']; - name: Scalars['String']; - slug: Scalars['String']; + id: Scalars['ID']; + name: Scalars['String']; + slug: Scalars['String']; }; export type CollectionFilterParameter = { - createdAt?: InputMaybe; - description?: InputMaybe; - id?: InputMaybe; - inheritFilters?: InputMaybe; - isPrivate?: InputMaybe; - languageCode?: InputMaybe; - name?: InputMaybe; - position?: InputMaybe; - slug?: InputMaybe; - updatedAt?: InputMaybe; + createdAt?: InputMaybe; + description?: InputMaybe; + id?: InputMaybe; + inheritFilters?: InputMaybe; + isPrivate?: InputMaybe; + languageCode?: InputMaybe; + name?: InputMaybe; + position?: InputMaybe; + slug?: InputMaybe; + updatedAt?: InputMaybe; }; export type CollectionList = PaginatedList & { - items: Array; - totalItems: Scalars['Int']; + items: Array; + totalItems: Scalars['Int']; }; export type CollectionListOptions = { - /** Allows the results to be filtered */ - filter?: InputMaybe; - /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ - filterOperator?: InputMaybe; - /** Skips the first n results, for use in pagination */ - skip?: InputMaybe; - /** Specifies which properties to sort the results by */ - sort?: InputMaybe; - /** Takes n results, for use in pagination */ - take?: InputMaybe; + /** Allows the results to be filtered */ + filter?: InputMaybe; + /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ + filterOperator?: InputMaybe; + /** Skips the first n results, for use in pagination */ + skip?: InputMaybe; + /** Specifies which properties to sort the results by */ + sort?: InputMaybe; + /** Takes n results, for use in pagination */ + take?: InputMaybe; }; /** @@ -447,406 +429,406 @@ 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']; - stockLevels?: InputMaybe>; - stockOnHand?: InputMaybe; - taxCategoryId?: InputMaybe; - trackInventory?: InputMaybe; - translations: Array; - useGlobalOutOfStockThreshold?: InputMaybe; + assetIds?: InputMaybe>; + customFields?: InputMaybe; + facetValueIds?: InputMaybe>; + featuredAssetId?: InputMaybe; + optionIds?: InputMaybe>; + outOfStockThreshold?: InputMaybe; + price?: InputMaybe; + productId: Scalars['ID']; + sku: Scalars['String']; + stockLevels?: InputMaybe>; + stockOnHand?: InputMaybe; + taxCategoryId?: InputMaybe; + trackInventory?: InputMaybe; + translations: Array; + useGlobalOutOfStockThreshold?: InputMaybe; }; export type CreateProductVariantOptionInput = { - code: Scalars['String']; - optionGroupId: Scalars['ID']; - translations: Array; + code: Scalars['String']; + optionGroupId: Scalars['ID']; + translations: Array; }; export type CreatePromotionInput = { - actions: Array; - conditions: Array; - couponCode?: InputMaybe; - customFields?: InputMaybe; - enabled: Scalars['Boolean']; - endsAt?: InputMaybe; - 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 CreateSellerInput = { - customFields?: InputMaybe; - name: Scalars['String']; + customFields?: InputMaybe; + name: Scalars['String']; }; export type CreateShippingMethodInput = { - calculator: ConfigurableOperationInput; - checker: ConfigurableOperationInput; - code: Scalars['String']; - customFields?: InputMaybe; - fulfillmentHandler: Scalars['String']; - translations: Array; + calculator: ConfigurableOperationInput; + checker: ConfigurableOperationInput; + code: Scalars['String']; + customFields?: InputMaybe; + fulfillmentHandler: Scalars['String']; + translations: Array; }; export type CreateStockLocationInput = { - customFields?: InputMaybe; - description?: InputMaybe; - name: Scalars['String']; + customFields?: InputMaybe; + description?: InputMaybe; + name: Scalars['String']; }; export type CreateTagInput = { - value: Scalars['String']; + value: Scalars['String']; }; export type CreateTaxCategoryInput = { - customFields?: InputMaybe; - isDefault?: InputMaybe; - name: Scalars['String']; + customFields?: InputMaybe; + isDefault?: InputMaybe; + name: Scalars['String']; }; export type CreateTaxRateInput = { - categoryId: Scalars['ID']; - customFields?: InputMaybe; - customerGroupId?: InputMaybe; - enabled: Scalars['Boolean']; - name: Scalars['String']; - value: Scalars['Float']; - zoneId: Scalars['ID']; + categoryId: Scalars['ID']; + customFields?: InputMaybe; + customerGroupId?: InputMaybe; + enabled: Scalars['Boolean']; + name: Scalars['String']; + value: Scalars['Float']; + zoneId: Scalars['ID']; }; export type CreateZoneInput = { - customFields?: InputMaybe; - memberIds?: InputMaybe>; - name: Scalars['String']; + customFields?: InputMaybe; + memberIds?: InputMaybe>; + name: Scalars['String']; }; /** @@ -856,515 +838,510 @@ export type CreateZoneInput = { * @docsCategory common */ export enum CurrencyCode { - /** United Arab Emirates dirham */ - AED = 'AED', - /** Afghan afghani */ - AFN = 'AFN', - /** Albanian lek */ - ALL = 'ALL', - /** Armenian dram */ - AMD = 'AMD', - /** Netherlands Antillean guilder */ - ANG = 'ANG', - /** Angolan kwanza */ - AOA = 'AOA', - /** Argentine peso */ - ARS = 'ARS', - /** Australian dollar */ - AUD = 'AUD', - /** Aruban florin */ - AWG = 'AWG', - /** Azerbaijani manat */ - AZN = 'AZN', - /** Bosnia and Herzegovina convertible mark */ - BAM = 'BAM', - /** Barbados dollar */ - BBD = 'BBD', - /** Bangladeshi taka */ - BDT = 'BDT', - /** Bulgarian lev */ - BGN = 'BGN', - /** Bahraini dinar */ - BHD = 'BHD', - /** Burundian franc */ - BIF = 'BIF', - /** Bermudian dollar */ - BMD = 'BMD', - /** Brunei dollar */ - BND = 'BND', - /** Boliviano */ - BOB = 'BOB', - /** Brazilian real */ - BRL = 'BRL', - /** Bahamian dollar */ - BSD = 'BSD', - /** Bhutanese ngultrum */ - BTN = 'BTN', - /** Botswana pula */ - BWP = 'BWP', - /** Belarusian ruble */ - BYN = 'BYN', - /** Belize dollar */ - BZD = 'BZD', - /** Canadian dollar */ - CAD = 'CAD', - /** Congolese franc */ - CDF = 'CDF', - /** Swiss franc */ - CHF = 'CHF', - /** Chilean peso */ - CLP = 'CLP', - /** Renminbi (Chinese) yuan */ - CNY = 'CNY', - /** Colombian peso */ - COP = 'COP', - /** Costa Rican colon */ - CRC = 'CRC', - /** Cuban convertible peso */ - CUC = 'CUC', - /** Cuban peso */ - CUP = 'CUP', - /** Cape Verde escudo */ - CVE = 'CVE', - /** Czech koruna */ - CZK = 'CZK', - /** Djiboutian franc */ - DJF = 'DJF', - /** Danish krone */ - DKK = 'DKK', - /** Dominican peso */ - DOP = 'DOP', - /** Algerian dinar */ - DZD = 'DZD', - /** Egyptian pound */ - EGP = 'EGP', - /** Eritrean nakfa */ - ERN = 'ERN', - /** Ethiopian birr */ - ETB = 'ETB', - /** Euro */ - EUR = 'EUR', - /** Fiji dollar */ - FJD = 'FJD', - /** Falkland Islands pound */ - FKP = 'FKP', - /** Pound sterling */ - GBP = 'GBP', - /** Georgian lari */ - GEL = 'GEL', - /** Ghanaian cedi */ - GHS = 'GHS', - /** Gibraltar pound */ - GIP = 'GIP', - /** Gambian dalasi */ - GMD = 'GMD', - /** Guinean franc */ - GNF = 'GNF', - /** Guatemalan quetzal */ - GTQ = 'GTQ', - /** Guyanese dollar */ - GYD = 'GYD', - /** Hong Kong dollar */ - HKD = 'HKD', - /** Honduran lempira */ - HNL = 'HNL', - /** Croatian kuna */ - HRK = 'HRK', - /** Haitian gourde */ - HTG = 'HTG', - /** Hungarian forint */ - HUF = 'HUF', - /** Indonesian rupiah */ - IDR = 'IDR', - /** Israeli new shekel */ - ILS = 'ILS', - /** Indian rupee */ - INR = 'INR', - /** Iraqi dinar */ - IQD = 'IQD', - /** Iranian rial */ - IRR = 'IRR', - /** Icelandic króna */ - ISK = 'ISK', - /** Jamaican dollar */ - JMD = 'JMD', - /** Jordanian dinar */ - JOD = 'JOD', - /** Japanese yen */ - JPY = 'JPY', - /** Kenyan shilling */ - KES = 'KES', - /** Kyrgyzstani som */ - KGS = 'KGS', - /** Cambodian riel */ - KHR = 'KHR', - /** Comoro franc */ - KMF = 'KMF', - /** North Korean won */ - KPW = 'KPW', - /** South Korean won */ - KRW = 'KRW', - /** Kuwaiti dinar */ - KWD = 'KWD', - /** Cayman Islands dollar */ - KYD = 'KYD', - /** Kazakhstani tenge */ - KZT = 'KZT', - /** Lao kip */ - LAK = 'LAK', - /** Lebanese pound */ - LBP = 'LBP', - /** Sri Lankan rupee */ - LKR = 'LKR', - /** Liberian dollar */ - LRD = 'LRD', - /** Lesotho loti */ - LSL = 'LSL', - /** Libyan dinar */ - LYD = 'LYD', - /** Moroccan dirham */ - MAD = 'MAD', - /** Moldovan leu */ - MDL = 'MDL', - /** Malagasy ariary */ - MGA = 'MGA', - /** Macedonian denar */ - MKD = 'MKD', - /** Myanmar kyat */ - MMK = 'MMK', - /** Mongolian tögrög */ - MNT = 'MNT', - /** Macanese pataca */ - MOP = 'MOP', - /** Mauritanian ouguiya */ - MRU = 'MRU', - /** Mauritian rupee */ - MUR = 'MUR', - /** Maldivian rufiyaa */ - MVR = 'MVR', - /** Malawian kwacha */ - MWK = 'MWK', - /** Mexican peso */ - MXN = 'MXN', - /** Malaysian ringgit */ - MYR = 'MYR', - /** Mozambican metical */ - MZN = 'MZN', - /** Namibian dollar */ - NAD = 'NAD', - /** Nigerian naira */ - NGN = 'NGN', - /** Nicaraguan córdoba */ - NIO = 'NIO', - /** Norwegian krone */ - NOK = 'NOK', - /** Nepalese rupee */ - NPR = 'NPR', - /** New Zealand dollar */ - NZD = 'NZD', - /** Omani rial */ - OMR = 'OMR', - /** Panamanian balboa */ - PAB = 'PAB', - /** Peruvian sol */ - PEN = 'PEN', - /** Papua New Guinean kina */ - PGK = 'PGK', - /** Philippine peso */ - PHP = 'PHP', - /** Pakistani rupee */ - PKR = 'PKR', - /** Polish złoty */ - PLN = 'PLN', - /** Paraguayan guaraní */ - PYG = 'PYG', - /** Qatari riyal */ - QAR = 'QAR', - /** Romanian leu */ - RON = 'RON', - /** Serbian dinar */ - RSD = 'RSD', - /** Russian ruble */ - RUB = 'RUB', - /** Rwandan franc */ - RWF = 'RWF', - /** Saudi riyal */ - SAR = 'SAR', - /** Solomon Islands dollar */ - SBD = 'SBD', - /** Seychelles rupee */ - SCR = 'SCR', - /** Sudanese pound */ - SDG = 'SDG', - /** Swedish krona/kronor */ - SEK = 'SEK', - /** Singapore dollar */ - SGD = 'SGD', - /** Saint Helena pound */ - SHP = 'SHP', - /** Sierra Leonean leone */ - SLL = 'SLL', - /** Somali shilling */ - SOS = 'SOS', - /** Surinamese dollar */ - SRD = 'SRD', - /** South Sudanese pound */ - SSP = 'SSP', - /** São Tomé and Príncipe dobra */ - STN = 'STN', - /** Salvadoran colón */ - SVC = 'SVC', - /** Syrian pound */ - SYP = 'SYP', - /** Swazi lilangeni */ - SZL = 'SZL', - /** Thai baht */ - THB = 'THB', - /** Tajikistani somoni */ - TJS = 'TJS', - /** Turkmenistan manat */ - TMT = 'TMT', - /** Tunisian dinar */ - TND = 'TND', - /** Tongan paʻanga */ - TOP = 'TOP', - /** Turkish lira */ - TRY = 'TRY', - /** Trinidad and Tobago dollar */ - TTD = 'TTD', - /** New Taiwan dollar */ - TWD = 'TWD', - /** Tanzanian shilling */ - TZS = 'TZS', - /** Ukrainian hryvnia */ - UAH = 'UAH', - /** Ugandan shilling */ - UGX = 'UGX', - /** United States dollar */ - USD = 'USD', - /** Uruguayan peso */ - UYU = 'UYU', - /** Uzbekistan som */ - UZS = 'UZS', - /** Venezuelan bolívar soberano */ - VES = 'VES', - /** Vietnamese đồng */ - VND = 'VND', - /** Vanuatu vatu */ - VUV = 'VUV', - /** Samoan tala */ - WST = 'WST', - /** CFA franc BEAC */ - XAF = 'XAF', - /** East Caribbean dollar */ - XCD = 'XCD', - /** CFA franc BCEAO */ - XOF = 'XOF', - /** CFP franc (franc Pacifique) */ - XPF = 'XPF', - /** Yemeni rial */ - YER = 'YER', - /** South African rand */ - ZAR = 'ZAR', - /** Zambian kwacha */ - ZMW = 'ZMW', - /** Zimbabwean dollar */ - ZWL = 'ZWL', + /** United Arab Emirates dirham */ + AED = 'AED', + /** Afghan afghani */ + AFN = 'AFN', + /** Albanian lek */ + ALL = 'ALL', + /** Armenian dram */ + AMD = 'AMD', + /** Netherlands Antillean guilder */ + ANG = 'ANG', + /** Angolan kwanza */ + AOA = 'AOA', + /** Argentine peso */ + ARS = 'ARS', + /** Australian dollar */ + AUD = 'AUD', + /** Aruban florin */ + AWG = 'AWG', + /** Azerbaijani manat */ + AZN = 'AZN', + /** Bosnia and Herzegovina convertible mark */ + BAM = 'BAM', + /** Barbados dollar */ + BBD = 'BBD', + /** Bangladeshi taka */ + BDT = 'BDT', + /** Bulgarian lev */ + BGN = 'BGN', + /** Bahraini dinar */ + BHD = 'BHD', + /** Burundian franc */ + BIF = 'BIF', + /** Bermudian dollar */ + BMD = 'BMD', + /** Brunei dollar */ + BND = 'BND', + /** Boliviano */ + BOB = 'BOB', + /** Brazilian real */ + BRL = 'BRL', + /** Bahamian dollar */ + BSD = 'BSD', + /** Bhutanese ngultrum */ + BTN = 'BTN', + /** Botswana pula */ + BWP = 'BWP', + /** Belarusian ruble */ + BYN = 'BYN', + /** Belize dollar */ + BZD = 'BZD', + /** Canadian dollar */ + CAD = 'CAD', + /** Congolese franc */ + CDF = 'CDF', + /** Swiss franc */ + CHF = 'CHF', + /** Chilean peso */ + CLP = 'CLP', + /** Renminbi (Chinese) yuan */ + CNY = 'CNY', + /** Colombian peso */ + COP = 'COP', + /** Costa Rican colon */ + CRC = 'CRC', + /** Cuban convertible peso */ + CUC = 'CUC', + /** Cuban peso */ + CUP = 'CUP', + /** Cape Verde escudo */ + CVE = 'CVE', + /** Czech koruna */ + CZK = 'CZK', + /** Djiboutian franc */ + DJF = 'DJF', + /** Danish krone */ + DKK = 'DKK', + /** Dominican peso */ + DOP = 'DOP', + /** Algerian dinar */ + DZD = 'DZD', + /** Egyptian pound */ + EGP = 'EGP', + /** Eritrean nakfa */ + ERN = 'ERN', + /** Ethiopian birr */ + ETB = 'ETB', + /** Euro */ + EUR = 'EUR', + /** Fiji dollar */ + FJD = 'FJD', + /** Falkland Islands pound */ + FKP = 'FKP', + /** Pound sterling */ + GBP = 'GBP', + /** Georgian lari */ + GEL = 'GEL', + /** Ghanaian cedi */ + GHS = 'GHS', + /** Gibraltar pound */ + GIP = 'GIP', + /** Gambian dalasi */ + GMD = 'GMD', + /** Guinean franc */ + GNF = 'GNF', + /** Guatemalan quetzal */ + GTQ = 'GTQ', + /** Guyanese dollar */ + GYD = 'GYD', + /** Hong Kong dollar */ + HKD = 'HKD', + /** Honduran lempira */ + HNL = 'HNL', + /** Croatian kuna */ + HRK = 'HRK', + /** Haitian gourde */ + HTG = 'HTG', + /** Hungarian forint */ + HUF = 'HUF', + /** Indonesian rupiah */ + IDR = 'IDR', + /** Israeli new shekel */ + ILS = 'ILS', + /** Indian rupee */ + INR = 'INR', + /** Iraqi dinar */ + IQD = 'IQD', + /** Iranian rial */ + IRR = 'IRR', + /** Icelandic króna */ + ISK = 'ISK', + /** Jamaican dollar */ + JMD = 'JMD', + /** Jordanian dinar */ + JOD = 'JOD', + /** Japanese yen */ + JPY = 'JPY', + /** Kenyan shilling */ + KES = 'KES', + /** Kyrgyzstani som */ + KGS = 'KGS', + /** Cambodian riel */ + KHR = 'KHR', + /** Comoro franc */ + KMF = 'KMF', + /** North Korean won */ + KPW = 'KPW', + /** South Korean won */ + KRW = 'KRW', + /** Kuwaiti dinar */ + KWD = 'KWD', + /** Cayman Islands dollar */ + KYD = 'KYD', + /** Kazakhstani tenge */ + KZT = 'KZT', + /** Lao kip */ + LAK = 'LAK', + /** Lebanese pound */ + LBP = 'LBP', + /** Sri Lankan rupee */ + LKR = 'LKR', + /** Liberian dollar */ + LRD = 'LRD', + /** Lesotho loti */ + LSL = 'LSL', + /** Libyan dinar */ + LYD = 'LYD', + /** Moroccan dirham */ + MAD = 'MAD', + /** Moldovan leu */ + MDL = 'MDL', + /** Malagasy ariary */ + MGA = 'MGA', + /** Macedonian denar */ + MKD = 'MKD', + /** Myanmar kyat */ + MMK = 'MMK', + /** Mongolian tögrög */ + MNT = 'MNT', + /** Macanese pataca */ + MOP = 'MOP', + /** Mauritanian ouguiya */ + MRU = 'MRU', + /** Mauritian rupee */ + MUR = 'MUR', + /** Maldivian rufiyaa */ + MVR = 'MVR', + /** Malawian kwacha */ + MWK = 'MWK', + /** Mexican peso */ + MXN = 'MXN', + /** Malaysian ringgit */ + MYR = 'MYR', + /** Mozambican metical */ + MZN = 'MZN', + /** Namibian dollar */ + NAD = 'NAD', + /** Nigerian naira */ + NGN = 'NGN', + /** Nicaraguan córdoba */ + NIO = 'NIO', + /** Norwegian krone */ + NOK = 'NOK', + /** Nepalese rupee */ + NPR = 'NPR', + /** New Zealand dollar */ + NZD = 'NZD', + /** Omani rial */ + OMR = 'OMR', + /** Panamanian balboa */ + PAB = 'PAB', + /** Peruvian sol */ + PEN = 'PEN', + /** Papua New Guinean kina */ + PGK = 'PGK', + /** Philippine peso */ + PHP = 'PHP', + /** Pakistani rupee */ + PKR = 'PKR', + /** Polish złoty */ + PLN = 'PLN', + /** Paraguayan guaraní */ + PYG = 'PYG', + /** Qatari riyal */ + QAR = 'QAR', + /** Romanian leu */ + RON = 'RON', + /** Serbian dinar */ + RSD = 'RSD', + /** Russian ruble */ + RUB = 'RUB', + /** Rwandan franc */ + RWF = 'RWF', + /** Saudi riyal */ + SAR = 'SAR', + /** Solomon Islands dollar */ + SBD = 'SBD', + /** Seychelles rupee */ + SCR = 'SCR', + /** Sudanese pound */ + SDG = 'SDG', + /** Swedish krona/kronor */ + SEK = 'SEK', + /** Singapore dollar */ + SGD = 'SGD', + /** Saint Helena pound */ + SHP = 'SHP', + /** Sierra Leonean leone */ + SLL = 'SLL', + /** Somali shilling */ + SOS = 'SOS', + /** Surinamese dollar */ + SRD = 'SRD', + /** South Sudanese pound */ + SSP = 'SSP', + /** São Tomé and Príncipe dobra */ + STN = 'STN', + /** Salvadoran colón */ + SVC = 'SVC', + /** Syrian pound */ + SYP = 'SYP', + /** Swazi lilangeni */ + SZL = 'SZL', + /** Thai baht */ + THB = 'THB', + /** Tajikistani somoni */ + TJS = 'TJS', + /** Turkmenistan manat */ + TMT = 'TMT', + /** Tunisian dinar */ + TND = 'TND', + /** Tongan paʻanga */ + TOP = 'TOP', + /** Turkish lira */ + TRY = 'TRY', + /** Trinidad and Tobago dollar */ + TTD = 'TTD', + /** New Taiwan dollar */ + TWD = 'TWD', + /** Tanzanian shilling */ + TZS = 'TZS', + /** Ukrainian hryvnia */ + UAH = 'UAH', + /** Ugandan shilling */ + UGX = 'UGX', + /** United States dollar */ + USD = 'USD', + /** Uruguayan peso */ + UYU = 'UYU', + /** Uzbekistan som */ + UZS = 'UZS', + /** Venezuelan bolívar soberano */ + VES = 'VES', + /** Vietnamese đồng */ + VND = 'VND', + /** Vanuatu vatu */ + VUV = 'VUV', + /** Samoan tala */ + WST = 'WST', + /** CFA franc BEAC */ + XAF = 'XAF', + /** East Caribbean dollar */ + XCD = 'XCD', + /** CFA franc BCEAO */ + XOF = 'XOF', + /** CFP franc (franc Pacifique) */ + XPF = 'XPF', + /** Yemeni rial */ + YER = 'YER', + /** South African rand */ + ZAR = 'ZAR', + /** Zambian kwacha */ + ZMW = 'ZMW', + /** Zimbabwean dollar */ + ZWL = 'ZWL' } export type CurrentUser = { - channels: Array; - id: Scalars['ID']; - identifier: Scalars['String']; + channels: Array; + id: Scalars['ID']; + identifier: Scalars['String']; }; export type CurrentUserChannel = { - code: Scalars['String']; - id: Scalars['ID']; - permissions: Array; - token: Scalars['String']; + code: Scalars['String']; + id: Scalars['ID']; + permissions: Array; + token: Scalars['String']; }; export type CustomField = { - description?: Maybe>; - internal?: Maybe; - label?: Maybe>; - list: Scalars['Boolean']; - name: Scalars['String']; - nullable?: Maybe; - readonly?: Maybe; - type: Scalars['String']; - ui?: Maybe; -}; - -export type CustomFieldConfig = - | BooleanCustomFieldConfig - | DateTimeCustomFieldConfig - | FloatCustomFieldConfig - | IntCustomFieldConfig - | LocaleStringCustomFieldConfig - | 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; - StockLocation: 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; + StockLocation: Array; + TaxCategory: Array; + TaxRate: Array; + User: Array; + Zone: Array; }; export type Customer = Node & { - addresses?: Maybe>; - createdAt: Scalars['DateTime']; - customFields?: Maybe; - emailAddress: Scalars['String']; - firstName: Scalars['String']; - groups: Array; - history: HistoryEntryList; - id: Scalars['ID']; - lastName: Scalars['String']; - orders: OrderList; - phoneNumber?: Maybe; - title?: Maybe; - updatedAt: Scalars['DateTime']; - user?: Maybe; + addresses?: Maybe>; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + emailAddress: Scalars['String']; + firstName: Scalars['String']; + groups: Array; + history: HistoryEntryList; + id: Scalars['ID']; + lastName: Scalars['String']; + orders: OrderList; + phoneNumber?: Maybe; + title?: Maybe; + updatedAt: Scalars['DateTime']; + user?: Maybe; }; + export type CustomerHistoryArgs = { - options?: InputMaybe; + options?: InputMaybe; }; + export type CustomerOrdersArgs = { - options?: InputMaybe; + options?: InputMaybe; }; export type CustomerFilterParameter = { - createdAt?: InputMaybe; - emailAddress?: InputMaybe; - firstName?: InputMaybe; - id?: InputMaybe; - lastName?: InputMaybe; - phoneNumber?: InputMaybe; - postalCode?: InputMaybe; - title?: InputMaybe; - updatedAt?: InputMaybe; + createdAt?: InputMaybe; + emailAddress?: InputMaybe; + firstName?: InputMaybe; + id?: InputMaybe; + lastName?: InputMaybe; + phoneNumber?: InputMaybe; + postalCode?: InputMaybe; + title?: InputMaybe; + updatedAt?: InputMaybe; }; export type CustomerGroup = Node & { - createdAt: Scalars['DateTime']; - customFields?: Maybe; - customers: CustomerList; - id: Scalars['ID']; - name: Scalars['String']; - updatedAt: Scalars['DateTime']; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + customers: CustomerList; + id: Scalars['ID']; + name: Scalars['String']; + updatedAt: Scalars['DateTime']; }; + export type CustomerGroupCustomersArgs = { - options?: InputMaybe; + options?: InputMaybe; }; export type CustomerGroupFilterParameter = { - createdAt?: InputMaybe; - id?: InputMaybe; - name?: InputMaybe; - updatedAt?: InputMaybe; + createdAt?: InputMaybe; + id?: InputMaybe; + name?: InputMaybe; + updatedAt?: InputMaybe; }; export type CustomerGroupList = PaginatedList & { - items: Array; - totalItems: Scalars['Int']; + items: Array; + totalItems: Scalars['Int']; }; export type CustomerGroupListOptions = { - /** Allows the results to be filtered */ - filter?: InputMaybe; - /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ - filterOperator?: InputMaybe; - /** Skips the first n results, for use in pagination */ - skip?: InputMaybe; - /** Specifies which properties to sort the results by */ - sort?: InputMaybe; - /** Takes n results, for use in pagination */ - take?: InputMaybe; + /** Allows the results to be filtered */ + filter?: InputMaybe; + /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ + filterOperator?: InputMaybe; + /** Skips the first n results, for use in pagination */ + skip?: InputMaybe; + /** Specifies which properties to sort the results by */ + sort?: InputMaybe; + /** Takes n results, for use in pagination */ + take?: InputMaybe; }; export type CustomerGroupSortParameter = { - createdAt?: InputMaybe; - id?: InputMaybe; - name?: InputMaybe; - updatedAt?: InputMaybe; + createdAt?: InputMaybe; + id?: InputMaybe; + name?: InputMaybe; + updatedAt?: InputMaybe; }; export type CustomerList = PaginatedList & { - items: Array; - totalItems: Scalars['Int']; + items: Array; + totalItems: Scalars['Int']; }; export type CustomerListOptions = { - /** Allows the results to be filtered */ - filter?: InputMaybe; - /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ - filterOperator?: InputMaybe; - /** Skips the first n results, for use in pagination */ - skip?: InputMaybe; - /** Specifies which properties to sort the results by */ - sort?: InputMaybe; - /** Takes n results, for use in pagination */ - take?: InputMaybe; + /** Allows the results to be filtered */ + filter?: InputMaybe; + /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ + filterOperator?: InputMaybe; + /** Skips the first n results, for use in pagination */ + skip?: InputMaybe; + /** Specifies which properties to sort the results by */ + sort?: InputMaybe; + /** Takes n results, for use in pagination */ + take?: InputMaybe; }; export type CustomerSortParameter = { - createdAt?: InputMaybe; - emailAddress?: InputMaybe; - firstName?: InputMaybe; - id?: InputMaybe; - lastName?: InputMaybe; - phoneNumber?: InputMaybe; - title?: InputMaybe; - updatedAt?: InputMaybe; + createdAt?: InputMaybe; + emailAddress?: InputMaybe; + firstName?: InputMaybe; + id?: InputMaybe; + lastName?: InputMaybe; + phoneNumber?: InputMaybe; + title?: InputMaybe; + updatedAt?: InputMaybe; }; /** Operators for filtering on a list of Date fields */ export type DateListOperators = { - inList: Scalars['DateTime']; + inList: Scalars['DateTime']; }; /** Operators for filtering on a DateTime field */ export type DateOperators = { - after?: InputMaybe; - before?: InputMaybe; - between?: InputMaybe; - eq?: InputMaybe; - isNull?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; + between?: InputMaybe; + eq?: InputMaybe; + isNull?: InputMaybe; }; export type DateRange = { - end: Scalars['DateTime']; - start: Scalars['DateTime']; + end: Scalars['DateTime']; + start: Scalars['DateTime']; }; /** @@ -1372,201 +1349,201 @@ export type DateRange = { * See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/datetime-local#Additional_attributes */ export type DateTimeCustomFieldConfig = CustomField & { - description?: Maybe>; - internal?: Maybe; - label?: Maybe>; - list: Scalars['Boolean']; - max?: Maybe; - min?: Maybe; - name: Scalars['String']; - nullable?: Maybe; - readonly?: Maybe; - step?: Maybe; - type: Scalars['String']; - ui?: Maybe; + description?: Maybe>; + internal?: Maybe; + label?: Maybe>; + list: Scalars['Boolean']; + max?: Maybe; + min?: Maybe; + name: Scalars['String']; + nullable?: Maybe; + readonly?: Maybe; + step?: Maybe; + type: Scalars['String']; + ui?: Maybe; }; export type DeleteAssetInput = { - assetId: Scalars['ID']; - deleteFromAllChannels?: InputMaybe; - force?: InputMaybe; + assetId: Scalars['ID']; + deleteFromAllChannels?: InputMaybe; + force?: InputMaybe; }; export type DeleteAssetsInput = { - assetIds: Array; - deleteFromAllChannels?: InputMaybe; - force?: InputMaybe; + assetIds: Array; + deleteFromAllChannels?: InputMaybe; + force?: InputMaybe; }; export type DeleteStockLocationInput = { - id: Scalars['ID']; - transferToLocationId?: InputMaybe; + id: Scalars['ID']; + transferToLocationId?: InputMaybe; }; export type DeletionResponse = { - message?: Maybe; - result: DeletionResult; + message?: Maybe; + result: DeletionResult; }; export enum DeletionResult { - /** The entity was successfully deleted */ - DELETED = 'DELETED', - /** Deletion did not take place, reason given in message */ - NOT_DELETED = 'NOT_DELETED', + /** The entity was successfully deleted */ + DELETED = 'DELETED', + /** Deletion did not take place, reason given in message */ + NOT_DELETED = 'NOT_DELETED' } export type Discount = { - adjustmentSource: Scalars['String']; - amount: Scalars['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']; }; /** @@ -1578,35 +1555,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; }; /** @@ -1614,202 +1591,202 @@ export type FacetValueListOptions = { * by the search, and in what quantity. */ export type FacetValueResult = { - count: Scalars['Int']; - facetValue: FacetValue; + count: Scalars['Int']; + facetValue: FacetValue; }; export type FacetValueSortParameter = { - code?: InputMaybe; - createdAt?: InputMaybe; - id?: InputMaybe; - name?: InputMaybe; - updatedAt?: InputMaybe; + code?: InputMaybe; + createdAt?: InputMaybe; + id?: InputMaybe; + name?: InputMaybe; + updatedAt?: InputMaybe; }; export type FacetValueTranslation = { - createdAt: Scalars['DateTime']; - id: Scalars['ID']; - languageCode: LanguageCode; - name: Scalars['String']; - updatedAt: Scalars['DateTime']; + createdAt: Scalars['DateTime']; + id: Scalars['ID']; + languageCode: LanguageCode; + name: Scalars['String']; + updatedAt: Scalars['DateTime']; }; export type FacetValueTranslationInput = { - customFields?: InputMaybe; - id?: InputMaybe; - languageCode: LanguageCode; - name?: InputMaybe; + customFields?: InputMaybe; + id?: InputMaybe; + languageCode: LanguageCode; + name?: InputMaybe; }; export type FloatCustomFieldConfig = CustomField & { - description?: Maybe>; - internal?: Maybe; - label?: Maybe>; - list: Scalars['Boolean']; - max?: Maybe; - min?: Maybe; - name: Scalars['String']; - nullable?: Maybe; - readonly?: Maybe; - step?: Maybe; - type: Scalars['String']; - ui?: Maybe; + description?: Maybe>; + internal?: Maybe; + label?: Maybe>; + list: Scalars['Boolean']; + max?: Maybe; + min?: Maybe; + name: Scalars['String']; + nullable?: Maybe; + readonly?: Maybe; + step?: Maybe; + type: Scalars['String']; + ui?: Maybe; }; export type FulfillOrderInput = { - handler: ConfigurableOperationInput; - lines: Array; + handler: ConfigurableOperationInput; + lines: Array; }; export type Fulfillment = Node & { - createdAt: Scalars['DateTime']; - customFields?: Maybe; - id: Scalars['ID']; - lines: Array; - method: Scalars['String']; - nextStates: Array; - state: Scalars['String']; - /** @deprecated Use the `lines` field instead */ - summary: Array; - trackingCode?: Maybe; - updatedAt: Scalars['DateTime']; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + id: Scalars['ID']; + lines: Array; + method: Scalars['String']; + nextStates: Array; + state: Scalars['String']; + /** @deprecated Use the `lines` field instead */ + summary: Array; + trackingCode?: Maybe; + updatedAt: Scalars['DateTime']; }; export type FulfillmentLine = { - fulfillment: Fulfillment; - fulfillmentId: Scalars['ID']; - orderLine: OrderLine; - orderLineId: Scalars['ID']; - quantity: Scalars['Int']; + fulfillment: Fulfillment; + fulfillmentId: Scalars['ID']; + orderLine: OrderLine; + orderLineId: Scalars['ID']; + quantity: Scalars['Int']; }; /** Returned when there is an error in transitioning the Fulfillment state */ export type FulfillmentStateTransitionError = ErrorResult & { - errorCode: ErrorCode; - fromState: Scalars['String']; - message: Scalars['String']; - toState: Scalars['String']; - transitionError: Scalars['String']; + errorCode: ErrorCode; + fromState: Scalars['String']; + message: Scalars['String']; + toState: Scalars['String']; + transitionError: Scalars['String']; }; export enum GlobalFlag { - FALSE = 'FALSE', - INHERIT = 'INHERIT', - TRUE = 'TRUE', + FALSE = 'FALSE', + INHERIT = 'INHERIT', + TRUE = 'TRUE' } export type GlobalSettings = { - availableLanguages: Array; - createdAt: Scalars['DateTime']; - customFields?: Maybe; - id: Scalars['ID']; - outOfStockThreshold: Scalars['Int']; - serverConfig: ServerConfig; - trackInventory: Scalars['Boolean']; - updatedAt: Scalars['DateTime']; + availableLanguages: Array; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + id: Scalars['ID']; + outOfStockThreshold: Scalars['Int']; + serverConfig: ServerConfig; + trackInventory: Scalars['Boolean']; + updatedAt: Scalars['DateTime']; }; 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']; }; /** @@ -1817,116 +1794,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; }; /** @@ -1936,12 +1913,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' } /** @@ -1954,358 +1931,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; }; /** @@ -2313,905 +2290,1027 @@ 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; - createStockLocation: StockLocation; - /** Create a new Tag */ - createTag: Tag; - /** Create a new TaxCategory */ - createTaxCategory: TaxCategory; - /** Create a new TaxRate */ - createTaxRate: TaxRate; - /** Create a new Zone */ - createZone: Zone; - /** Delete an Administrator */ - deleteAdministrator: DeletionResponse; - /** Delete an Asset */ - deleteAsset: DeletionResponse; - /** Delete multiple Assets */ - deleteAssets: DeletionResponse; - /** Delete a Channel */ - deleteChannel: DeletionResponse; - /** Delete a Collection and all of its descendants */ - deleteCollection: DeletionResponse; - /** Delete multiple Collections and all of their descendants */ - deleteCollections: Array; - /** Delete a Country */ - deleteCountry: DeletionResponse; - /** Delete a Customer */ - deleteCustomer: DeletionResponse; - /** Update an existing Address */ - deleteCustomerAddress: Success; - /** Delete a CustomerGroup */ - deleteCustomerGroup: DeletionResponse; - deleteCustomerNote: DeletionResponse; - /** Deletes a draft Order */ - deleteDraftOrder: DeletionResponse; - /** Delete an existing Facet */ - deleteFacet: DeletionResponse; - /** Delete one or more FacetValues */ - deleteFacetValues: Array; - /** Delete multiple existing Facets */ - deleteFacets: Array; - deleteOrderNote: DeletionResponse; - /** Delete a PaymentMethod */ - deletePaymentMethod: DeletionResponse; - /** Delete a Product */ - deleteProduct: DeletionResponse; - /** Delete a ProductOption */ - deleteProductOption: DeletionResponse; - /** Delete a ProductVariant */ - deleteProductVariant: DeletionResponse; - /** Delete multiple ProductVariants */ - deleteProductVariants: Array; - /** Delete multiple Products */ - deleteProducts: Array; - deletePromotion: DeletionResponse; - /** Delete an existing Role */ - deleteRole: DeletionResponse; - /** Delete a Seller */ - deleteSeller: DeletionResponse; - /** Delete a ShippingMethod */ - deleteShippingMethod: DeletionResponse; - deleteStockLocation: DeletionResponse; - /** Delete an existing Tag */ - deleteTag: DeletionResponse; - /** Deletes a TaxCategory */ - deleteTaxCategory: DeletionResponse; - /** Delete a TaxRate */ - deleteTaxRate: DeletionResponse; - /** Delete a Zone */ - deleteZone: DeletionResponse; - flushBufferedJobs: Success; - importProducts?: Maybe; - /** Authenticates the user using the native authentication strategy. This mutation is an alias for `authenticate({ native: { ... }})` */ - login: NativeAuthenticationResult; - logout: Success; - /** - * Allows an Order to be modified after it has been completed by the Customer. The Order must first - * be in the `Modifying` state. - */ - modifyOrder: ModifyOrderResult; - /** Move a Collection to a different parent or index */ - moveCollection: Collection; - refundOrder: RefundOrderResult; - reindex: Job; - /** Removes Collections from the specified Channel */ - removeCollectionsFromChannel: Array; - /** Removes the given coupon code from the draft Order */ - removeCouponCodeFromDraftOrder?: Maybe; - /** Remove Customers from a CustomerGroup */ - removeCustomersFromGroup: CustomerGroup; - /** Remove an OrderLine from the draft Order */ - removeDraftOrderLine: RemoveOrderItemsResult; - /** Removes Facets from the specified Channel */ - removeFacetsFromChannel: Array; - /** Remove members from a Zone */ - removeMembersFromZone: Zone; - /** Remove an OptionGroup from a Product */ - removeOptionGroupFromProduct: RemoveOptionGroupFromProductResult; - /** Removes ProductVariants from the specified Channel */ - removeProductVariantsFromChannel: Array; - /** Removes all ProductVariants of Product from the specified Channel */ - removeProductsFromChannel: Array; - /** Removes Promotions from the specified Channel */ - removePromotionsFromChannel: Array; - /** Remove all settled jobs in the given queues older than the given date. Returns the number of jobs deleted. */ - removeSettledJobs: Scalars['Int']; - runPendingSearchIndexUpdates: Success; - setCustomerForDraftOrder: SetCustomerForDraftOrderResult; - /** Sets the billing address for a draft Order */ - setDraftOrderBillingAddress: Order; - /** Allows any custom fields to be set for the active order */ - setDraftOrderCustomFields: Order; - /** Sets the shipping address for a draft Order */ - setDraftOrderShippingAddress: Order; - /** Sets the shipping method by id, which can be obtained with the `eligibleShippingMethodsForDraftOrder` query */ - setDraftOrderShippingMethod: SetOrderShippingMethodResult; - setOrderCustomFields?: Maybe; - settlePayment: SettlePaymentResult; - settleRefund: SettleRefundResult; - transitionFulfillmentToState: TransitionFulfillmentToStateResult; - transitionOrderToState?: Maybe; - transitionPaymentToState: TransitionPaymentToStateResult; - /** Update the active (currently logged-in) Administrator */ - updateActiveAdministrator: Administrator; - /** Update an existing Administrator */ - updateAdministrator: Administrator; - /** Update an existing Asset */ - updateAsset: Asset; - /** Update an existing Channel */ - updateChannel: UpdateChannelResult; - /** Update an existing Collection */ - updateCollection: Collection; - /** Update an existing Country */ - updateCountry: Country; - /** Update an existing Customer */ - updateCustomer: UpdateCustomerResult; - /** Update an existing Address */ - updateCustomerAddress: Address; - /** Update an existing CustomerGroup */ - updateCustomerGroup: CustomerGroup; - updateCustomerNote: HistoryEntry; - /** Update an existing Facet */ - updateFacet: Facet; - /** Update one or more FacetValues */ - updateFacetValues: Array; - updateGlobalSettings: UpdateGlobalSettingsResult; - updateOrderNote: HistoryEntry; - /** Update an existing PaymentMethod */ - updatePaymentMethod: PaymentMethod; - /** Update an existing Product */ - updateProduct: Product; - /** Create a new ProductOption within a ProductOptionGroup */ - updateProductOption: ProductOption; - /** Update an existing ProductOptionGroup */ - updateProductOptionGroup: ProductOptionGroup; - /** Update existing ProductVariants */ - updateProductVariants: Array>; - /** Update multiple existing Products */ - updateProducts: Array; - updatePromotion: UpdatePromotionResult; - /** Update an existing Role */ - updateRole: Role; - /** Update an existing Seller */ - updateSeller: Seller; - /** Update an existing ShippingMethod */ - updateShippingMethod: ShippingMethod; - updateStockLocation: StockLocation; - /** Update an existing Tag */ - updateTag: Tag; - /** Update an existing TaxCategory */ - updateTaxCategory: TaxCategory; - /** Update an existing TaxRate */ - updateTaxRate: TaxRate; - /** Update an existing Zone */ - updateZone: Zone; + /** Add Customers to a CustomerGroup */ + addCustomersToGroup: CustomerGroup; + addFulfillmentToOrder: AddFulfillmentToOrderResult; + /** Adds an item to the draft Order. */ + addItemToDraftOrder: UpdateOrderItemsResult; + /** + * Used to manually create a new Payment against an Order. + * This can be used by an Administrator when an Order is in the ArrangingPayment state. + * + * It is also used when a completed Order + * has been modified (using `modifyOrder`) and the price has increased. The extra payment + * can then be manually arranged by the administrator, and the details used to create a new + * Payment. + */ + addManualPaymentToOrder: AddManualPaymentToOrderResult; + /** Add members to a Zone */ + addMembersToZone: Zone; + addNoteToCustomer: Customer; + addNoteToOrder: Order; + /** Add an OptionGroup to a Product */ + addOptionGroupToProduct: Product; + /** Adjusts a draft OrderLine. If custom fields are defined on the OrderLine entity, a third argument 'customFields' of type `OrderLineCustomFieldsInput` will be available. */ + adjustDraftOrderLine: UpdateOrderItemsResult; + /** Applies the given coupon code to the draft Order */ + applyCouponCodeToDraftOrder: ApplyCouponCodeResult; + /** Assign assets to channel */ + assignAssetsToChannel: Array; + /** Assigns Collections to the specified Channel */ + assignCollectionsToChannel: Array; + /** Assigns Facets to the specified Channel */ + assignFacetsToChannel: Array; + /** Assigns ProductVariants to the specified Channel */ + assignProductVariantsToChannel: Array; + /** Assigns all ProductVariants of Product to the specified Channel */ + assignProductsToChannel: Array; + /** Assigns Promotions to the specified Channel */ + assignPromotionsToChannel: Array; + /** Assign a Role to an Administrator */ + assignRoleToAdministrator: Administrator; + /** Authenticates the user using a named authentication strategy */ + authenticate: AuthenticationResult; + cancelJob: Job; + cancelOrder: CancelOrderResult; + cancelPayment: CancelPaymentResult; + /** Create a new Administrator */ + createAdministrator: Administrator; + /** Create a new Asset */ + createAssets: Array; + /** Create a new Channel */ + createChannel: CreateChannelResult; + /** Create a new Collection */ + createCollection: Collection; + /** Create a new Country */ + createCountry: Country; + /** Create a new Customer. If a password is provided, a new User will also be created an linked to the Customer. */ + createCustomer: CreateCustomerResult; + /** Create a new Address and associate it with the Customer specified by customerId */ + createCustomerAddress: Address; + /** Create a new CustomerGroup */ + createCustomerGroup: CustomerGroup; + /** Creates a draft Order */ + createDraftOrder: Order; + /** Create a new Facet */ + createFacet: Facet; + /** Create one or more FacetValues */ + createFacetValues: Array; + /** Create existing PaymentMethod */ + createPaymentMethod: PaymentMethod; + /** Create a new Product */ + createProduct: Product; + /** Create a new ProductOption within a ProductOptionGroup */ + createProductOption: ProductOption; + /** Create a new ProductOptionGroup */ + createProductOptionGroup: ProductOptionGroup; + /** Create a set of ProductVariants based on the OptionGroups assigned to the given Product */ + createProductVariants: Array>; + createPromotion: CreatePromotionResult; + /** Create a new Role */ + createRole: Role; + /** Create a new Seller */ + createSeller: Seller; + /** Create a new ShippingMethod */ + createShippingMethod: ShippingMethod; + createStockLocation: StockLocation; + /** Create a new Tag */ + createTag: Tag; + /** Create a new TaxCategory */ + createTaxCategory: TaxCategory; + /** Create a new TaxRate */ + createTaxRate: TaxRate; + /** Create a new Zone */ + createZone: Zone; + /** Delete an Administrator */ + deleteAdministrator: DeletionResponse; + /** Delete an Asset */ + deleteAsset: DeletionResponse; + /** Delete multiple Assets */ + deleteAssets: DeletionResponse; + /** Delete a Channel */ + deleteChannel: DeletionResponse; + /** Delete a Collection and all of its descendants */ + deleteCollection: DeletionResponse; + /** Delete multiple Collections and all of their descendants */ + deleteCollections: Array; + /** Delete a Country */ + deleteCountry: DeletionResponse; + /** Delete a Customer */ + deleteCustomer: DeletionResponse; + /** Update an existing Address */ + deleteCustomerAddress: Success; + /** Delete a CustomerGroup */ + deleteCustomerGroup: DeletionResponse; + deleteCustomerNote: DeletionResponse; + /** Deletes a draft Order */ + deleteDraftOrder: DeletionResponse; + /** Delete an existing Facet */ + deleteFacet: DeletionResponse; + /** Delete one or more FacetValues */ + deleteFacetValues: Array; + /** Delete multiple existing Facets */ + deleteFacets: Array; + deleteOrderNote: DeletionResponse; + /** Delete a PaymentMethod */ + deletePaymentMethod: DeletionResponse; + /** Delete a Product */ + deleteProduct: DeletionResponse; + /** Delete a ProductOption */ + deleteProductOption: DeletionResponse; + /** Delete a ProductVariant */ + deleteProductVariant: DeletionResponse; + /** Delete multiple ProductVariants */ + deleteProductVariants: Array; + /** Delete multiple Products */ + deleteProducts: Array; + deletePromotion: DeletionResponse; + /** Delete an existing Role */ + deleteRole: DeletionResponse; + /** Delete a Seller */ + deleteSeller: DeletionResponse; + /** Delete a ShippingMethod */ + deleteShippingMethod: DeletionResponse; + deleteStockLocation: DeletionResponse; + /** Delete an existing Tag */ + deleteTag: DeletionResponse; + /** Deletes a TaxCategory */ + deleteTaxCategory: DeletionResponse; + /** Delete a TaxRate */ + deleteTaxRate: DeletionResponse; + /** Delete a Zone */ + deleteZone: DeletionResponse; + flushBufferedJobs: Success; + importProducts?: Maybe; + /** Authenticates the user using the native authentication strategy. This mutation is an alias for `authenticate({ native: { ... }})` */ + login: NativeAuthenticationResult; + logout: Success; + /** + * Allows an Order to be modified after it has been completed by the Customer. The Order must first + * be in the `Modifying` state. + */ + modifyOrder: ModifyOrderResult; + /** Move a Collection to a different parent or index */ + moveCollection: Collection; + refundOrder: RefundOrderResult; + reindex: Job; + /** Removes Collections from the specified Channel */ + removeCollectionsFromChannel: Array; + /** Removes the given coupon code from the draft Order */ + removeCouponCodeFromDraftOrder?: Maybe; + /** Remove Customers from a CustomerGroup */ + removeCustomersFromGroup: CustomerGroup; + /** Remove an OrderLine from the draft Order */ + removeDraftOrderLine: RemoveOrderItemsResult; + /** Removes Facets from the specified Channel */ + removeFacetsFromChannel: Array; + /** Remove members from a Zone */ + removeMembersFromZone: Zone; + /** Remove an OptionGroup from a Product */ + removeOptionGroupFromProduct: RemoveOptionGroupFromProductResult; + /** Removes ProductVariants from the specified Channel */ + removeProductVariantsFromChannel: Array; + /** Removes all ProductVariants of Product from the specified Channel */ + removeProductsFromChannel: Array; + /** Removes Promotions from the specified Channel */ + removePromotionsFromChannel: Array; + /** Remove all settled jobs in the given queues older than the given date. Returns the number of jobs deleted. */ + removeSettledJobs: Scalars['Int']; + runPendingSearchIndexUpdates: Success; + setCustomerForDraftOrder: SetCustomerForDraftOrderResult; + /** Sets the billing address for a draft Order */ + setDraftOrderBillingAddress: Order; + /** Allows any custom fields to be set for the active order */ + setDraftOrderCustomFields: Order; + /** Sets the shipping address for a draft Order */ + setDraftOrderShippingAddress: Order; + /** Sets the shipping method by id, which can be obtained with the `eligibleShippingMethodsForDraftOrder` query */ + setDraftOrderShippingMethod: SetOrderShippingMethodResult; + setOrderCustomFields?: Maybe; + settlePayment: SettlePaymentResult; + settleRefund: SettleRefundResult; + transitionFulfillmentToState: TransitionFulfillmentToStateResult; + transitionOrderToState?: Maybe; + transitionPaymentToState: TransitionPaymentToStateResult; + /** Update the active (currently logged-in) Administrator */ + updateActiveAdministrator: Administrator; + /** Update an existing Administrator */ + updateAdministrator: Administrator; + /** Update an existing Asset */ + updateAsset: Asset; + /** Update an existing Channel */ + updateChannel: UpdateChannelResult; + /** Update an existing Collection */ + updateCollection: Collection; + /** Update an existing Country */ + updateCountry: Country; + /** Update an existing Customer */ + updateCustomer: UpdateCustomerResult; + /** Update an existing Address */ + updateCustomerAddress: Address; + /** Update an existing CustomerGroup */ + updateCustomerGroup: CustomerGroup; + updateCustomerNote: HistoryEntry; + /** Update an existing Facet */ + updateFacet: Facet; + /** Update one or more FacetValues */ + updateFacetValues: Array; + updateGlobalSettings: UpdateGlobalSettingsResult; + updateOrderNote: HistoryEntry; + /** Update an existing PaymentMethod */ + updatePaymentMethod: PaymentMethod; + /** Update an existing Product */ + updateProduct: Product; + /** Create a new ProductOption within a ProductOptionGroup */ + updateProductOption: ProductOption; + /** Update an existing ProductOptionGroup */ + updateProductOptionGroup: ProductOptionGroup; + /** Update existing ProductVariants */ + updateProductVariants: Array>; + /** Update multiple existing Products */ + updateProducts: Array; + updatePromotion: UpdatePromotionResult; + /** Update an existing Role */ + updateRole: Role; + /** Update an existing Seller */ + updateSeller: Seller; + /** Update an existing ShippingMethod */ + updateShippingMethod: ShippingMethod; + updateStockLocation: StockLocation; + /** Update an existing Tag */ + updateTag: Tag; + /** Update an existing TaxCategory */ + updateTaxCategory: TaxCategory; + /** Update an existing TaxRate */ + updateTaxRate: TaxRate; + /** Update an existing Zone */ + updateZone: Zone; }; + export type MutationAddCustomersToGroupArgs = { - customerGroupId: Scalars['ID']; - customerIds: Array; + customerGroupId: Scalars['ID']; + customerIds: Array; }; + export type MutationAddFulfillmentToOrderArgs = { - input: FulfillOrderInput; + input: FulfillOrderInput; }; + export type MutationAddItemToDraftOrderArgs = { - input: AddItemToDraftOrderInput; - orderId: Scalars['ID']; + input: AddItemToDraftOrderInput; + orderId: Scalars['ID']; }; + export type MutationAddManualPaymentToOrderArgs = { - input: ManualPaymentInput; + input: ManualPaymentInput; }; + export type MutationAddMembersToZoneArgs = { - memberIds: Array; - zoneId: Scalars['ID']; + memberIds: Array; + zoneId: Scalars['ID']; }; + export type MutationAddNoteToCustomerArgs = { - input: AddNoteToCustomerInput; + input: AddNoteToCustomerInput; }; + export type MutationAddNoteToOrderArgs = { - input: AddNoteToOrderInput; + input: AddNoteToOrderInput; }; + export type MutationAddOptionGroupToProductArgs = { - optionGroupId: Scalars['ID']; - productId: Scalars['ID']; + optionGroupId: Scalars['ID']; + productId: Scalars['ID']; }; + export type MutationAdjustDraftOrderLineArgs = { - input: AdjustDraftOrderLineInput; - orderId: Scalars['ID']; + input: AdjustDraftOrderLineInput; + orderId: Scalars['ID']; }; + export type MutationApplyCouponCodeToDraftOrderArgs = { - couponCode: Scalars['String']; - orderId: Scalars['ID']; + couponCode: Scalars['String']; + orderId: Scalars['ID']; }; + export type MutationAssignAssetsToChannelArgs = { - input: AssignAssetsToChannelInput; + input: AssignAssetsToChannelInput; }; + export type MutationAssignCollectionsToChannelArgs = { - input: AssignCollectionsToChannelInput; + input: AssignCollectionsToChannelInput; }; + export type MutationAssignFacetsToChannelArgs = { - input: AssignFacetsToChannelInput; + input: AssignFacetsToChannelInput; }; + export type MutationAssignProductVariantsToChannelArgs = { - input: AssignProductVariantsToChannelInput; + input: AssignProductVariantsToChannelInput; }; + export type MutationAssignProductsToChannelArgs = { - input: AssignProductsToChannelInput; + input: AssignProductsToChannelInput; }; + export type MutationAssignPromotionsToChannelArgs = { - input: AssignPromotionsToChannelInput; + input: AssignPromotionsToChannelInput; }; + export type MutationAssignRoleToAdministratorArgs = { - administratorId: Scalars['ID']; - roleId: Scalars['ID']; + administratorId: Scalars['ID']; + roleId: Scalars['ID']; }; + export type MutationAuthenticateArgs = { - input: AuthenticationInput; - rememberMe?: InputMaybe; + input: AuthenticationInput; + rememberMe?: InputMaybe; }; + export type MutationCancelJobArgs = { - jobId: Scalars['ID']; + jobId: Scalars['ID']; }; + export type MutationCancelOrderArgs = { - input: CancelOrderInput; + input: CancelOrderInput; }; + export type MutationCancelPaymentArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type MutationCreateAdministratorArgs = { - input: CreateAdministratorInput; + input: CreateAdministratorInput; }; + export type MutationCreateAssetsArgs = { - input: Array; + input: Array; }; + export type MutationCreateChannelArgs = { - input: CreateChannelInput; + input: CreateChannelInput; }; + export type MutationCreateCollectionArgs = { - input: CreateCollectionInput; + input: CreateCollectionInput; }; + export type MutationCreateCountryArgs = { - input: CreateCountryInput; + input: CreateCountryInput; }; + export type MutationCreateCustomerArgs = { - input: CreateCustomerInput; - password?: InputMaybe; + input: CreateCustomerInput; + password?: InputMaybe; }; + export type MutationCreateCustomerAddressArgs = { - customerId: Scalars['ID']; - input: CreateAddressInput; + customerId: Scalars['ID']; + input: CreateAddressInput; }; + export type MutationCreateCustomerGroupArgs = { - input: CreateCustomerGroupInput; + input: CreateCustomerGroupInput; }; + export type MutationCreateFacetArgs = { - input: CreateFacetInput; + input: CreateFacetInput; }; + export type MutationCreateFacetValuesArgs = { - input: Array; + input: Array; }; + export type MutationCreatePaymentMethodArgs = { - input: CreatePaymentMethodInput; + input: CreatePaymentMethodInput; }; + export type MutationCreateProductArgs = { - input: CreateProductInput; + input: CreateProductInput; }; + export type MutationCreateProductOptionArgs = { - input: CreateProductOptionInput; + input: CreateProductOptionInput; }; + export type MutationCreateProductOptionGroupArgs = { - input: CreateProductOptionGroupInput; + input: CreateProductOptionGroupInput; }; + export type MutationCreateProductVariantsArgs = { - input: Array; + input: Array; }; + export type MutationCreatePromotionArgs = { - input: CreatePromotionInput; + input: CreatePromotionInput; }; + export type MutationCreateRoleArgs = { - input: CreateRoleInput; + input: CreateRoleInput; }; + export type MutationCreateSellerArgs = { - input: CreateSellerInput; + input: CreateSellerInput; }; + export type MutationCreateShippingMethodArgs = { - input: CreateShippingMethodInput; + input: CreateShippingMethodInput; }; + export type MutationCreateStockLocationArgs = { - input: CreateStockLocationInput; + input: CreateStockLocationInput; }; + export type MutationCreateTagArgs = { - input: CreateTagInput; + input: CreateTagInput; }; + export type MutationCreateTaxCategoryArgs = { - input: CreateTaxCategoryInput; + input: CreateTaxCategoryInput; }; + export type MutationCreateTaxRateArgs = { - input: CreateTaxRateInput; + input: CreateTaxRateInput; }; + export type MutationCreateZoneArgs = { - input: CreateZoneInput; + input: CreateZoneInput; }; + export type MutationDeleteAdministratorArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type MutationDeleteAssetArgs = { - input: DeleteAssetInput; + input: DeleteAssetInput; }; + export type MutationDeleteAssetsArgs = { - input: DeleteAssetsInput; + input: DeleteAssetsInput; }; + export type MutationDeleteChannelArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type MutationDeleteCollectionArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type MutationDeleteCollectionsArgs = { - ids: Array; + ids: Array; }; + export type MutationDeleteCountryArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type MutationDeleteCustomerArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type MutationDeleteCustomerAddressArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type MutationDeleteCustomerGroupArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type MutationDeleteCustomerNoteArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type MutationDeleteDraftOrderArgs = { - orderId: Scalars['ID']; + orderId: Scalars['ID']; }; + export type MutationDeleteFacetArgs = { - force?: InputMaybe; - id: Scalars['ID']; + force?: InputMaybe; + id: Scalars['ID']; }; + export type MutationDeleteFacetValuesArgs = { - force?: InputMaybe; - ids: Array; + force?: InputMaybe; + ids: Array; }; + export type MutationDeleteFacetsArgs = { - force?: InputMaybe; - ids: Array; + force?: InputMaybe; + ids: Array; }; + export type MutationDeleteOrderNoteArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type MutationDeletePaymentMethodArgs = { - force?: InputMaybe; - id: Scalars['ID']; + force?: InputMaybe; + id: Scalars['ID']; }; + export type MutationDeleteProductArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type MutationDeleteProductOptionArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type MutationDeleteProductVariantArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type MutationDeleteProductVariantsArgs = { - ids: Array; + ids: Array; }; + export type MutationDeleteProductsArgs = { - ids: Array; + ids: Array; }; + export type MutationDeletePromotionArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type MutationDeleteRoleArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type MutationDeleteSellerArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type MutationDeleteShippingMethodArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type MutationDeleteStockLocationArgs = { - input: DeleteStockLocationInput; + input: DeleteStockLocationInput; }; + export type MutationDeleteTagArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type MutationDeleteTaxCategoryArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type MutationDeleteTaxRateArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type MutationDeleteZoneArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type MutationFlushBufferedJobsArgs = { - bufferIds?: InputMaybe>; + bufferIds?: InputMaybe>; }; + export type MutationImportProductsArgs = { - csvFile: Scalars['Upload']; + csvFile: Scalars['Upload']; }; + export type MutationLoginArgs = { - password: Scalars['String']; - rememberMe?: InputMaybe; - username: Scalars['String']; + password: Scalars['String']; + rememberMe?: InputMaybe; + username: Scalars['String']; }; + export type MutationModifyOrderArgs = { - input: ModifyOrderInput; + input: ModifyOrderInput; }; + export type MutationMoveCollectionArgs = { - input: MoveCollectionInput; + input: MoveCollectionInput; }; + export type MutationRefundOrderArgs = { - input: RefundOrderInput; + input: RefundOrderInput; }; + export type MutationRemoveCollectionsFromChannelArgs = { - input: RemoveCollectionsFromChannelInput; + input: RemoveCollectionsFromChannelInput; }; + export type MutationRemoveCouponCodeFromDraftOrderArgs = { - couponCode: Scalars['String']; - orderId: Scalars['ID']; + couponCode: Scalars['String']; + orderId: Scalars['ID']; }; + export type MutationRemoveCustomersFromGroupArgs = { - customerGroupId: Scalars['ID']; - customerIds: Array; + customerGroupId: Scalars['ID']; + customerIds: Array; }; + export type MutationRemoveDraftOrderLineArgs = { - orderId: Scalars['ID']; - orderLineId: Scalars['ID']; + orderId: Scalars['ID']; + orderLineId: Scalars['ID']; }; + export type MutationRemoveFacetsFromChannelArgs = { - input: RemoveFacetsFromChannelInput; + input: RemoveFacetsFromChannelInput; }; + export type MutationRemoveMembersFromZoneArgs = { - memberIds: Array; - zoneId: Scalars['ID']; + memberIds: Array; + zoneId: Scalars['ID']; }; + export type MutationRemoveOptionGroupFromProductArgs = { - optionGroupId: Scalars['ID']; - productId: Scalars['ID']; + optionGroupId: Scalars['ID']; + productId: Scalars['ID']; }; + export type MutationRemoveProductVariantsFromChannelArgs = { - input: RemoveProductVariantsFromChannelInput; + input: RemoveProductVariantsFromChannelInput; }; + export type MutationRemoveProductsFromChannelArgs = { - input: RemoveProductsFromChannelInput; + input: RemoveProductsFromChannelInput; }; + export type MutationRemovePromotionsFromChannelArgs = { - input: RemovePromotionsFromChannelInput; + input: RemovePromotionsFromChannelInput; }; + export type MutationRemoveSettledJobsArgs = { - olderThan?: InputMaybe; - queueNames?: InputMaybe>; + olderThan?: InputMaybe; + queueNames?: InputMaybe>; }; + export type MutationSetCustomerForDraftOrderArgs = { - customerId?: InputMaybe; - input?: InputMaybe; - orderId: Scalars['ID']; + customerId?: InputMaybe; + input?: InputMaybe; + orderId: Scalars['ID']; }; + export type MutationSetDraftOrderBillingAddressArgs = { - input: CreateAddressInput; - orderId: Scalars['ID']; + input: CreateAddressInput; + orderId: Scalars['ID']; }; + export type MutationSetDraftOrderCustomFieldsArgs = { - input: UpdateOrderInput; - orderId: Scalars['ID']; + input: UpdateOrderInput; + orderId: Scalars['ID']; }; + export type MutationSetDraftOrderShippingAddressArgs = { - input: CreateAddressInput; - orderId: Scalars['ID']; + input: CreateAddressInput; + orderId: Scalars['ID']; }; + export type MutationSetDraftOrderShippingMethodArgs = { - orderId: Scalars['ID']; - shippingMethodId: Scalars['ID']; + orderId: Scalars['ID']; + shippingMethodId: Scalars['ID']; }; + export type MutationSetOrderCustomFieldsArgs = { - input: UpdateOrderInput; + input: UpdateOrderInput; }; + export type MutationSettlePaymentArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type MutationSettleRefundArgs = { - input: SettleRefundInput; + input: SettleRefundInput; }; + export type MutationTransitionFulfillmentToStateArgs = { - id: Scalars['ID']; - state: Scalars['String']; + id: Scalars['ID']; + state: Scalars['String']; }; + export type MutationTransitionOrderToStateArgs = { - id: Scalars['ID']; - state: Scalars['String']; + id: Scalars['ID']; + state: Scalars['String']; }; + export type MutationTransitionPaymentToStateArgs = { - id: Scalars['ID']; - state: Scalars['String']; + id: Scalars['ID']; + state: Scalars['String']; }; + export type MutationUpdateActiveAdministratorArgs = { - input: UpdateActiveAdministratorInput; + input: UpdateActiveAdministratorInput; }; + export type MutationUpdateAdministratorArgs = { - input: UpdateAdministratorInput; + input: UpdateAdministratorInput; }; + export type MutationUpdateAssetArgs = { - input: UpdateAssetInput; + input: UpdateAssetInput; }; + export type MutationUpdateChannelArgs = { - input: UpdateChannelInput; + input: UpdateChannelInput; }; + export type MutationUpdateCollectionArgs = { - input: UpdateCollectionInput; + input: UpdateCollectionInput; }; + export type MutationUpdateCountryArgs = { - input: UpdateCountryInput; + input: UpdateCountryInput; }; + export type MutationUpdateCustomerArgs = { - input: UpdateCustomerInput; + input: UpdateCustomerInput; }; + export type MutationUpdateCustomerAddressArgs = { - input: UpdateAddressInput; + input: UpdateAddressInput; }; + export type MutationUpdateCustomerGroupArgs = { - input: UpdateCustomerGroupInput; + input: UpdateCustomerGroupInput; }; + export type MutationUpdateCustomerNoteArgs = { - input: UpdateCustomerNoteInput; + input: UpdateCustomerNoteInput; }; + export type MutationUpdateFacetArgs = { - input: UpdateFacetInput; + input: UpdateFacetInput; }; + export type MutationUpdateFacetValuesArgs = { - input: Array; + input: Array; }; + export type MutationUpdateGlobalSettingsArgs = { - input: UpdateGlobalSettingsInput; + input: UpdateGlobalSettingsInput; }; + export type MutationUpdateOrderNoteArgs = { - input: UpdateOrderNoteInput; + input: UpdateOrderNoteInput; }; + export type MutationUpdatePaymentMethodArgs = { - input: UpdatePaymentMethodInput; + input: UpdatePaymentMethodInput; }; + export type MutationUpdateProductArgs = { - input: UpdateProductInput; + input: UpdateProductInput; }; + export type MutationUpdateProductOptionArgs = { - input: UpdateProductOptionInput; + input: UpdateProductOptionInput; }; + export type MutationUpdateProductOptionGroupArgs = { - input: UpdateProductOptionGroupInput; + input: UpdateProductOptionGroupInput; }; + export type MutationUpdateProductVariantsArgs = { - input: Array; + input: Array; }; + export type MutationUpdateProductsArgs = { - input: Array; + input: Array; }; + export type MutationUpdatePromotionArgs = { - input: UpdatePromotionInput; + input: UpdatePromotionInput; }; + export type MutationUpdateRoleArgs = { - input: UpdateRoleInput; + input: UpdateRoleInput; }; + export type MutationUpdateSellerArgs = { - input: UpdateSellerInput; + input: UpdateSellerInput; }; + export type MutationUpdateShippingMethodArgs = { - input: UpdateShippingMethodInput; + input: UpdateShippingMethodInput; }; + export type MutationUpdateStockLocationArgs = { - input: UpdateStockLocationInput; + input: UpdateStockLocationInput; }; + export type MutationUpdateTagArgs = { - input: UpdateTagInput; + input: UpdateTagInput; }; + export type MutationUpdateTaxCategoryArgs = { - input: UpdateTaxCategoryInput; + input: UpdateTaxCategoryInput; }; + export type MutationUpdateTaxRateArgs = { - input: UpdateTaxRateInput; + input: UpdateTaxRateInput; }; + export type MutationUpdateZoneArgs = { - input: UpdateZoneInput; + input: UpdateZoneInput; }; export type NativeAuthInput = { - password: Scalars['String']; - username: Scalars['String']; + password: Scalars['String']; + username: Scalars['String']; }; /** Returned when attempting an operation that relies on the NativeAuthStrategy, if that strategy is not configured. */ export type NativeAuthStrategyError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; }; export type NativeAuthenticationResult = CurrentUser | InvalidCredentialsError | NativeAuthStrategyError; /** Returned when attempting to set a negative OrderLine quantity. */ export type NegativeQuantityError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; }; /** @@ -3219,342 +3318,343 @@ export type NegativeQuantityError = ErrorResult & { * current session. */ export type NoActiveOrderError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; }; /** Returned when a call to modifyOrder fails to specify any changes */ export type NoChangesSpecifiedError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; }; export type Node = { - id: Scalars['ID']; + id: Scalars['ID']; }; /** Returned if an attempting to refund an Order but neither items nor shipping refund was specified */ export type NothingToRefundError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; }; /** Operators for filtering on a list of Number fields */ export type NumberListOperators = { - inList: Scalars['Float']; + inList: Scalars['Float']; }; /** Operators for filtering on a Int or Float field */ export type NumberOperators = { - between?: InputMaybe; - eq?: InputMaybe; - gt?: InputMaybe; - gte?: InputMaybe; - isNull?: InputMaybe; - lt?: InputMaybe; - lte?: InputMaybe; + between?: InputMaybe; + eq?: InputMaybe; + gt?: InputMaybe; + gte?: InputMaybe; + isNull?: InputMaybe; + lt?: InputMaybe; + lte?: InputMaybe; }; export type NumberRange = { - end: Scalars['Float']; - start: Scalars['Float']; + end: Scalars['Float']; + start: Scalars['Float']; }; export type Order = Node & { - /** An order is active as long as the payment process has not been completed */ - active: Scalars['Boolean']; - aggregateOrder?: Maybe; - aggregateOrderId?: Maybe; - billingAddress?: Maybe; - channels: Array; - /** A unique code for the Order */ - code: Scalars['String']; - /** An array of all coupon codes applied to the Order */ - couponCodes: Array; - createdAt: Scalars['DateTime']; - currencyCode: CurrencyCode; - customFields?: Maybe; - customer?: Maybe; - discounts: Array; - fulfillments?: Maybe>; - history: HistoryEntryList; - id: Scalars['ID']; - lines: Array; - modifications: Array; - nextStates: Array; - /** - * The date & time that the Order was placed, i.e. the Customer - * completed the checkout and the Order is no longer "active" - */ - orderPlacedAt?: Maybe; - payments?: Maybe>; - /** Promotions applied to the order. Only gets populated after the payment process has completed. */ - promotions: Array; - sellerOrders?: Maybe>; - shipping: Scalars['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; - fulfillmentLines?: Maybe>; - id: Scalars['ID']; - /** 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; - /** The quantity at the time the Order was placed */ - orderPlacedQuantity: Scalars['Int']; - productVariant: ProductVariant; - /** - * The actual line price, taking into account both item discounts _and_ prorated (proportionally-distributed) - * Order-level discounts. This value is the true economic value of the OrderLine, and is used in tax - * and refund calculations. - */ - proratedLinePrice: Scalars['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; + fulfillmentLines?: Maybe>; + id: Scalars['ID']; + /** 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; + /** The quantity at the time the Order was placed */ + orderPlacedQuantity: Scalars['Int']; + productVariant: ProductVariant; + /** + * The actual line price, taking into account both item discounts _and_ prorated (proportionally-distributed) + * Order-level discounts. This value is the true economic value of the OrderLine, and is used in tax + * and refund calculations. + */ + proratedLinePrice: Scalars['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']; - lines: Array; - note: Scalars['String']; - payment?: Maybe; - priceChange: Scalars['Int']; - refund?: Maybe; - surcharges?: Maybe>; - updatedAt: Scalars['DateTime']; + createdAt: Scalars['DateTime']; + id: Scalars['ID']; + isSettled: Scalars['Boolean']; + lines: Array; + note: Scalars['String']; + payment?: Maybe; + priceChange: Scalars['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']; }; export type OrderModificationLine = { - modification: OrderModification; - modificationId: Scalars['ID']; - orderLine: OrderLine; - orderLineId: Scalars['ID']; - quantity: Scalars['Int']; + modification: OrderModification; + modificationId: Scalars['ID']; + orderLine: OrderLine; + orderLineId: Scalars['ID']; + quantity: Scalars['Int']; }; /** Returned when attempting to modify the contents of an Order that is not in the `Modifying` state. */ export type OrderModificationStateError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; }; export type OrderProcessState = { - name: Scalars['String']; - to: Array; + name: Scalars['String']; + to: Array; }; export type OrderSortParameter = { - aggregateOrderId?: InputMaybe; - code?: InputMaybe; - createdAt?: InputMaybe; - customerLastName?: InputMaybe; - id?: InputMaybe; - orderPlacedAt?: InputMaybe; - shipping?: InputMaybe; - shippingWithTax?: InputMaybe; - state?: InputMaybe; - subTotal?: InputMaybe; - subTotalWithTax?: InputMaybe; - total?: InputMaybe; - totalQuantity?: InputMaybe; - totalWithTax?: InputMaybe; - transactionId?: InputMaybe; - updatedAt?: InputMaybe; + aggregateOrderId?: InputMaybe; + code?: InputMaybe; + createdAt?: InputMaybe; + customerLastName?: InputMaybe; + id?: InputMaybe; + orderPlacedAt?: InputMaybe; + shipping?: InputMaybe; + shippingWithTax?: InputMaybe; + state?: InputMaybe; + subTotal?: InputMaybe; + subTotalWithTax?: InputMaybe; + total?: InputMaybe; + totalQuantity?: InputMaybe; + totalWithTax?: InputMaybe; + transactionId?: InputMaybe; + updatedAt?: InputMaybe; }; /** Returned if there is an error in transitioning the Order state */ export type OrderStateTransitionError = ErrorResult & { - errorCode: ErrorCode; - fromState: Scalars['String']; - message: Scalars['String']; - toState: Scalars['String']; - transitionError: Scalars['String']; + errorCode: ErrorCode; + fromState: Scalars['String']; + message: Scalars['String']; + toState: Scalars['String']; + transitionError: Scalars['String']; }; /** @@ -3562,80 +3662,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; }; /** @@ -3643,42 +3743,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']; }; /** @@ -3714,855 +3814,899 @@ 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']; - /** @deprecated use stockLevels */ - stockAllocated: Scalars['Int']; - stockLevel: Scalars['String']; - stockLevels: Array; - stockMovements: StockMovementList; - /** @deprecated use stockLevels */ - stockOnHand: Scalars['Int']; - taxCategory: TaxCategory; - taxRateApplied: TaxRate; - trackInventory: GlobalFlag; - translations: Array; - updatedAt: Scalars['DateTime']; - useGlobalOutOfStockThreshold: Scalars['Boolean']; + assets: Array; + channels: Array; + createdAt: Scalars['DateTime']; + currencyCode: CurrencyCode; + customFields?: Maybe; + enabled: Scalars['Boolean']; + facetValues: Array; + featuredAsset?: Maybe; + id: Scalars['ID']; + languageCode: LanguageCode; + name: Scalars['String']; + options: Array; + outOfStockThreshold: Scalars['Int']; + price: Scalars['Int']; + priceWithTax: Scalars['Int']; + product: Product; + productId: Scalars['ID']; + sku: Scalars['String']; + /** @deprecated use stockLevels */ + stockAllocated: Scalars['Int']; + stockLevel: Scalars['String']; + stockLevels: Array; + stockMovements: StockMovementList; + /** @deprecated use stockLevels */ + stockOnHand: Scalars['Int']; + taxCategory: TaxCategory; + taxRateApplied: TaxRate; + trackInventory: GlobalFlag; + translations: Array; + updatedAt: Scalars['DateTime']; + useGlobalOutOfStockThreshold: Scalars['Boolean']; }; + export type ProductVariantStockMovementsArgs = { - options?: InputMaybe; + options?: InputMaybe; }; export type ProductVariantFilterParameter = { - createdAt?: InputMaybe; - currencyCode?: InputMaybe; - enabled?: InputMaybe; - id?: InputMaybe; - languageCode?: InputMaybe; - name?: InputMaybe; - outOfStockThreshold?: InputMaybe; - price?: InputMaybe; - priceWithTax?: InputMaybe; - productId?: InputMaybe; - sku?: InputMaybe; - stockAllocated?: InputMaybe; - stockLevel?: InputMaybe; - stockOnHand?: InputMaybe; - trackInventory?: InputMaybe; - updatedAt?: InputMaybe; - useGlobalOutOfStockThreshold?: InputMaybe; + createdAt?: InputMaybe; + currencyCode?: InputMaybe; + enabled?: InputMaybe; + id?: InputMaybe; + languageCode?: InputMaybe; + name?: InputMaybe; + outOfStockThreshold?: InputMaybe; + price?: InputMaybe; + priceWithTax?: InputMaybe; + productId?: InputMaybe; + sku?: InputMaybe; + stockAllocated?: InputMaybe; + stockLevel?: InputMaybe; + stockOnHand?: InputMaybe; + trackInventory?: InputMaybe; + updatedAt?: InputMaybe; + useGlobalOutOfStockThreshold?: InputMaybe; }; export type ProductVariantList = PaginatedList & { - items: Array; - totalItems: Scalars['Int']; + items: Array; + totalItems: Scalars['Int']; }; export type ProductVariantListOptions = { - /** Allows the results to be filtered */ - filter?: InputMaybe; - /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ - filterOperator?: InputMaybe; - /** Skips the first n results, for use in pagination */ - skip?: InputMaybe; - /** Specifies which properties to sort the results by */ - sort?: InputMaybe; - /** Takes n results, for use in pagination */ - take?: InputMaybe; + /** Allows the results to be filtered */ + filter?: InputMaybe; + /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ + filterOperator?: InputMaybe; + /** Skips the first n results, for use in pagination */ + skip?: InputMaybe; + /** Specifies which properties to sort the results by */ + sort?: InputMaybe; + /** Takes n results, for use in pagination */ + take?: InputMaybe; }; export type ProductVariantSortParameter = { - createdAt?: InputMaybe; - id?: InputMaybe; - name?: InputMaybe; - outOfStockThreshold?: InputMaybe; - price?: InputMaybe; - priceWithTax?: InputMaybe; - productId?: InputMaybe; - sku?: InputMaybe; - stockAllocated?: InputMaybe; - stockLevel?: InputMaybe; - stockOnHand?: InputMaybe; - updatedAt?: InputMaybe; + createdAt?: InputMaybe; + id?: InputMaybe; + name?: InputMaybe; + outOfStockThreshold?: InputMaybe; + price?: InputMaybe; + priceWithTax?: InputMaybe; + productId?: InputMaybe; + sku?: InputMaybe; + stockAllocated?: InputMaybe; + stockLevel?: InputMaybe; + stockOnHand?: InputMaybe; + updatedAt?: InputMaybe; }; export type ProductVariantTranslation = { - createdAt: Scalars['DateTime']; - id: Scalars['ID']; - languageCode: LanguageCode; - name: Scalars['String']; - updatedAt: Scalars['DateTime']; + createdAt: Scalars['DateTime']; + id: Scalars['ID']; + languageCode: LanguageCode; + name: Scalars['String']; + updatedAt: Scalars['DateTime']; }; export type ProductVariantTranslationInput = { - customFields?: InputMaybe; - id?: InputMaybe; - languageCode: LanguageCode; - name?: InputMaybe; + customFields?: InputMaybe; + id?: InputMaybe; + languageCode: LanguageCode; + name?: InputMaybe; }; export type Promotion = Node & { - actions: Array; - conditions: Array; - couponCode?: Maybe; - createdAt: Scalars['DateTime']; - customFields?: Maybe; - 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; - stockLocation?: Maybe; - stockLocations: StockLocationList; - tag: Tag; - tags: TagList; - taxCategories: Array; - taxCategory?: Maybe; - taxRate?: Maybe; - taxRates: TaxRateList; - testEligibleShippingMethods: Array; - testShippingMethod: TestShippingMethodResult; - zone?: Maybe; - zones: Array; + activeAdministrator?: Maybe; + activeChannel: Channel; + administrator?: Maybe; + administrators: AdministratorList; + /** Get a single Asset by id */ + asset?: Maybe; + /** Get a list of Assets */ + assets: AssetList; + channel?: Maybe; + channels: Array; + /** Get a Collection either by id or slug. If neither id nor slug is specified, an error will result. */ + collection?: Maybe; + collectionFilters: Array; + collections: CollectionList; + countries: CountryList; + country?: Maybe; + customer?: Maybe; + customerGroup?: Maybe; + customerGroups: CustomerGroupList; + customers: CustomerList; + /** Returns a list of eligible shipping methods for the draft Order */ + eligibleShippingMethodsForDraftOrder: Array; + facet?: Maybe; + facetValues: FacetValueList; + facets: FacetList; + fulfillmentHandlers: Array; + globalSettings: GlobalSettings; + job?: Maybe; + jobBufferSize: Array; + jobQueues: Array; + jobs: JobList; + jobsById: Array; + me?: Maybe; + order?: Maybe; + orders: OrderList; + paymentMethod?: Maybe; + paymentMethodEligibilityCheckers: Array; + paymentMethodHandlers: Array; + paymentMethods: PaymentMethodList; + pendingSearchIndexUpdates: Scalars['Int']; + /** Used for real-time previews of the contents of a Collection */ + previewCollectionVariants: ProductVariantList; + /** Get a Product either by id or slug. If neither id nor slug is specified, an error will result. */ + product?: Maybe; + productOptionGroup?: Maybe; + productOptionGroups: Array; + /** Get a ProductVariant by id */ + productVariant?: Maybe; + /** List ProductVariants either all or for the specific product. */ + productVariants: ProductVariantList; + /** List Products */ + products: ProductList; + promotion?: Maybe; + promotionActions: Array; + promotionConditions: Array; + promotions: PromotionList; + role?: Maybe; + roles: RoleList; + search: SearchResponse; + seller?: Maybe; + sellers: SellerList; + shippingCalculators: Array; + shippingEligibilityCheckers: Array; + shippingMethod?: Maybe; + shippingMethods: ShippingMethodList; + stockLocation?: Maybe; + stockLocations: StockLocationList; + tag: Tag; + tags: TagList; + taxCategories: Array; + taxCategory?: Maybe; + taxRate?: Maybe; + taxRates: TaxRateList; + testEligibleShippingMethods: Array; + testShippingMethod: TestShippingMethodResult; + zone?: Maybe; + zones: Array; }; + export type QueryAdministratorArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type QueryAdministratorsArgs = { - options?: InputMaybe; + options?: InputMaybe; }; + export type QueryAssetArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type QueryAssetsArgs = { - options?: InputMaybe; + options?: InputMaybe; }; + export type QueryChannelArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type QueryCollectionArgs = { - id?: InputMaybe; - slug?: InputMaybe; + id?: InputMaybe; + slug?: InputMaybe; }; + export type QueryCollectionsArgs = { - options?: InputMaybe; + options?: InputMaybe; }; + export type QueryCountriesArgs = { - options?: InputMaybe; + options?: InputMaybe; }; + export type QueryCountryArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type QueryCustomerArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type QueryCustomerGroupArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type QueryCustomerGroupsArgs = { - options?: InputMaybe; + options?: InputMaybe; }; + export type QueryCustomersArgs = { - options?: InputMaybe; + options?: InputMaybe; }; + export type QueryEligibleShippingMethodsForDraftOrderArgs = { - orderId: Scalars['ID']; + orderId: Scalars['ID']; }; + export type QueryFacetArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type QueryFacetValuesArgs = { - options?: InputMaybe; + options?: InputMaybe; }; + export type QueryFacetsArgs = { - options?: InputMaybe; + options?: InputMaybe; }; + export type QueryJobArgs = { - jobId: Scalars['ID']; + jobId: Scalars['ID']; }; + export type QueryJobBufferSizeArgs = { - bufferIds?: InputMaybe>; + bufferIds?: InputMaybe>; }; + export type QueryJobsArgs = { - options?: InputMaybe; + options?: InputMaybe; }; + export type QueryJobsByIdArgs = { - jobIds: Array; + jobIds: Array; }; + export type QueryOrderArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type QueryOrdersArgs = { - options?: InputMaybe; + options?: InputMaybe; }; + export type QueryPaymentMethodArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type QueryPaymentMethodsArgs = { - options?: InputMaybe; + options?: InputMaybe; }; + export type QueryPreviewCollectionVariantsArgs = { - input: PreviewCollectionVariantsInput; - options?: InputMaybe; + input: PreviewCollectionVariantsInput; + options?: InputMaybe; }; + export type QueryProductArgs = { - id?: InputMaybe; - slug?: InputMaybe; + id?: InputMaybe; + slug?: InputMaybe; }; + export type QueryProductOptionGroupArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type QueryProductOptionGroupsArgs = { - filterTerm?: InputMaybe; + filterTerm?: InputMaybe; }; + export type QueryProductVariantArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type QueryProductVariantsArgs = { - options?: InputMaybe; - productId?: InputMaybe; + options?: InputMaybe; + productId?: InputMaybe; }; + export type QueryProductsArgs = { - options?: InputMaybe; + options?: InputMaybe; }; + export type QueryPromotionArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type QueryPromotionsArgs = { - options?: InputMaybe; + options?: InputMaybe; }; + export type QueryRoleArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type QueryRolesArgs = { - options?: InputMaybe; + options?: InputMaybe; }; + export type QuerySearchArgs = { - input: SearchInput; + input: SearchInput; }; + export type QuerySellerArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type QuerySellersArgs = { - options?: InputMaybe; + options?: InputMaybe; }; + export type QueryShippingMethodArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type QueryShippingMethodsArgs = { - options?: InputMaybe; + options?: InputMaybe; }; + export type QueryStockLocationArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type QueryStockLocationsArgs = { - options?: InputMaybe; + options?: InputMaybe; }; + export type QueryTagArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type QueryTagsArgs = { - options?: InputMaybe; + options?: InputMaybe; }; + export type QueryTaxCategoryArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type QueryTaxRateArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type QueryTaxRatesArgs = { - options?: InputMaybe; + options?: InputMaybe; }; + export type QueryTestEligibleShippingMethodsArgs = { - input: TestEligibleShippingMethodsInput; + input: TestEligibleShippingMethodsInput; }; + export type QueryTestShippingMethodArgs = { - input: TestShippingMethodInput; + input: TestShippingMethodInput; }; + export type QueryZoneArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; export type Refund = Node & { - adjustment: Scalars['Int']; - createdAt: Scalars['DateTime']; - id: Scalars['ID']; - items: Scalars['Int']; - lines: Array; - metadata?: Maybe; - method?: Maybe; - 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']; + lines: Array; + metadata?: Maybe; + method?: Maybe; + paymentId: Scalars['ID']; + reason?: Maybe; + shipping: Scalars['Int']; + state: Scalars['String']; + total: Scalars['Int']; + transactionId?: Maybe; + updatedAt: Scalars['DateTime']; }; export type RefundLine = { - orderLine: OrderLine; - orderLineId: Scalars['ID']; - quantity: Scalars['Int']; - refund: Refund; - refundId: Scalars['ID']; + orderLine: OrderLine; + orderLineId: Scalars['ID']; + quantity: Scalars['Int']; + refund: Refund; + refundId: Scalars['ID']; }; export type RefundOrderInput = { - adjustment: Scalars['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']; }; /** @@ -4570,55 +4714,54 @@ 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; @@ -4626,627 +4769,616 @@ 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 SellerFilterParameter = { - createdAt?: InputMaybe; - id?: InputMaybe; - name?: InputMaybe; - updatedAt?: InputMaybe; + createdAt?: InputMaybe; + id?: InputMaybe; + name?: InputMaybe; + updatedAt?: InputMaybe; }; export type SellerList = PaginatedList & { - items: Array; - totalItems: Scalars['Int']; + items: Array; + totalItems: Scalars['Int']; }; export type SellerListOptions = { - /** Allows the results to be filtered */ - filter?: InputMaybe; - /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ - filterOperator?: InputMaybe; - /** Skips the first n results, for use in pagination */ - skip?: InputMaybe; - /** Specifies which properties to sort the results by */ - sort?: InputMaybe; - /** Takes n results, for use in pagination */ - take?: InputMaybe; + /** Allows the results to be filtered */ + filter?: InputMaybe; + /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ + filterOperator?: InputMaybe; + /** Skips the first n results, for use in pagination */ + skip?: InputMaybe; + /** Specifies which properties to sort the results by */ + sort?: InputMaybe; + /** Takes n results, for use in pagination */ + take?: InputMaybe; }; export type SellerSortParameter = { - createdAt?: InputMaybe; - id?: InputMaybe; - name?: InputMaybe; - updatedAt?: InputMaybe; + createdAt?: InputMaybe; + id?: InputMaybe; + name?: InputMaybe; + updatedAt?: InputMaybe; }; export type ServerConfig = { - customFieldConfig: CustomFields; - orderProcess: Array; - permissions: Array; - permittedAssetTypes: Array; + customFieldConfig: CustomFields; + orderProcess: Array; + permissions: Array; + permittedAssetTypes: Array; }; export type SetCustomerForDraftOrderResult = EmailAddressConflictError | Order; -export type SetOrderShippingMethodResult = - | IneligibleShippingMethodError - | NoActiveOrderError - | Order - | OrderModificationError; +export type SetOrderShippingMethodResult = IneligibleShippingMethodError | NoActiveOrderError | Order | OrderModificationError; /** Returned if the Payment settlement fails */ export type SettlePaymentError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; - paymentErrorMessage: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; + paymentErrorMessage: Scalars['String']; }; -export type SettlePaymentResult = - | OrderStateTransitionError - | Payment - | PaymentStateTransitionError - | SettlePaymentError; +export type SettlePaymentResult = OrderStateTransitionError | Payment | PaymentStateTransitionError | SettlePaymentError; export type SettleRefundInput = { - id: Scalars['ID']; - transactionId: Scalars['String']; + id: Scalars['ID']; + transactionId: Scalars['String']; }; export type SettleRefundResult = Refund | RefundStateTransitionError; export type ShippingLine = { - discountedPrice: Scalars['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 StockLevel = Node & { - createdAt: Scalars['DateTime']; - id: Scalars['ID']; - stockAllocated: Scalars['Int']; - stockLocation: StockLocation; - stockLocationId: Scalars['ID']; - stockOnHand: Scalars['Int']; - updatedAt: Scalars['DateTime']; + createdAt: Scalars['DateTime']; + id: Scalars['ID']; + stockAllocated: Scalars['Int']; + stockLocation: StockLocation; + stockLocationId: Scalars['ID']; + stockOnHand: Scalars['Int']; + updatedAt: Scalars['DateTime']; }; export type StockLevelInput = { - stockLocationId: Scalars['ID']; - stockOnHand: Scalars['Int']; + stockLocationId: Scalars['ID']; + stockOnHand: Scalars['Int']; }; export type StockLocation = Node & { - createdAt: Scalars['DateTime']; - customFields?: Maybe; - description: Scalars['String']; - id: Scalars['ID']; - name: Scalars['String']; - updatedAt: Scalars['DateTime']; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + description: Scalars['String']; + id: Scalars['ID']; + name: Scalars['String']; + updatedAt: Scalars['DateTime']; }; export type StockLocationFilterParameter = { - createdAt?: InputMaybe; - description?: InputMaybe; - id?: InputMaybe; - name?: InputMaybe; - updatedAt?: InputMaybe; + createdAt?: InputMaybe; + description?: InputMaybe; + id?: InputMaybe; + name?: InputMaybe; + updatedAt?: InputMaybe; }; export type StockLocationList = PaginatedList & { - items: Array; - totalItems: Scalars['Int']; + items: Array; + totalItems: Scalars['Int']; }; export type StockLocationListOptions = { - /** Allows the results to be filtered */ - filter?: InputMaybe; - /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ - filterOperator?: InputMaybe; - /** Skips the first n results, for use in pagination */ - skip?: InputMaybe; - /** Specifies which properties to sort the results by */ - sort?: InputMaybe; - /** Takes n results, for use in pagination */ - take?: InputMaybe; + /** Allows the results to be filtered */ + filter?: InputMaybe; + /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ + filterOperator?: InputMaybe; + /** Skips the first n results, for use in pagination */ + skip?: InputMaybe; + /** Specifies which properties to sort the results by */ + sort?: InputMaybe; + /** Takes n results, for use in pagination */ + take?: InputMaybe; }; export type StockLocationSortParameter = { - createdAt?: InputMaybe; - description?: InputMaybe; - id?: InputMaybe; - name?: InputMaybe; - updatedAt?: InputMaybe; + createdAt?: InputMaybe; + description?: InputMaybe; + id?: InputMaybe; + name?: InputMaybe; + updatedAt?: InputMaybe; }; export type StockMovement = { - createdAt: Scalars['DateTime']; - id: Scalars['ID']; - productVariant: ProductVariant; - quantity: Scalars['Int']; - type: StockMovementType; - updatedAt: Scalars['DateTime']; + createdAt: Scalars['DateTime']; + id: Scalars['ID']; + productVariant: ProductVariant; + quantity: Scalars['Int']; + type: StockMovementType; + updatedAt: Scalars['DateTime']; }; export type StockMovementItem = Allocation | Cancellation | Release | Return | Sale | StockAdjustment; export type StockMovementList = { - items: Array; - totalItems: Scalars['Int']; + items: Array; + totalItems: Scalars['Int']; }; export type StockMovementListOptions = { - skip?: InputMaybe; - take?: InputMaybe; - type?: InputMaybe; + skip?: InputMaybe; + take?: InputMaybe; + type?: InputMaybe; }; export enum StockMovementType { - ADJUSTMENT = 'ADJUSTMENT', - ALLOCATION = 'ALLOCATION', - CANCELLATION = 'CANCELLATION', - RELEASE = 'RELEASE', - RETURN = 'RETURN', - SALE = 'SALE', + ADJUSTMENT = 'ADJUSTMENT', + ALLOCATION = 'ALLOCATION', + CANCELLATION = 'CANCELLATION', + RELEASE = 'RELEASE', + RETURN = 'RETURN', + SALE = 'SALE' } export type StringCustomFieldConfig = CustomField & { - description?: Maybe>; - internal?: Maybe; - label?: Maybe>; - length?: Maybe; - list: Scalars['Boolean']; - name: Scalars['String']; - nullable?: Maybe; - options?: Maybe>; - pattern?: Maybe; - readonly?: Maybe; - type: Scalars['String']; - ui?: Maybe; + description?: Maybe>; + internal?: Maybe; + label?: Maybe>; + length?: Maybe; + list: Scalars['Boolean']; + name: Scalars['String']; + nullable?: Maybe; + options?: Maybe>; + pattern?: Maybe; + readonly?: Maybe; + type: Scalars['String']; + ui?: Maybe; }; export type StringFieldOption = { - label?: Maybe>; - value: Scalars['String']; + label?: Maybe>; + value: Scalars['String']; }; /** Operators for filtering on a list of String fields */ export type StringListOperators = { - inList: Scalars['String']; + inList: Scalars['String']; }; /** Operators for filtering on a String field */ export type StringOperators = { - contains?: InputMaybe; - eq?: InputMaybe; - in?: InputMaybe>; - isNull?: InputMaybe; - notContains?: InputMaybe; - notEq?: InputMaybe; - notIn?: InputMaybe>; - regex?: InputMaybe; + contains?: InputMaybe; + eq?: InputMaybe; + in?: InputMaybe>; + isNull?: InputMaybe; + notContains?: InputMaybe; + notEq?: InputMaybe; + notIn?: InputMaybe>; + regex?: InputMaybe; }; /** Indicates that an operation succeeded, where we do not want to return any more specific information. */ export type Success = { - success: Scalars['Boolean']; + success: Scalars['Boolean']; }; export type Surcharge = Node & { - createdAt: Scalars['DateTime']; - description: Scalars['String']; - id: Scalars['ID']; - price: Scalars['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; @@ -5256,5888 +5388,2111 @@ 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; - stockLevels?: InputMaybe>; - stockOnHand?: InputMaybe; - taxCategoryId?: InputMaybe; - trackInventory?: InputMaybe; - translations?: InputMaybe>; - useGlobalOutOfStockThreshold?: InputMaybe; + assetIds?: InputMaybe>; + customFields?: InputMaybe; + enabled?: InputMaybe; + facetValueIds?: InputMaybe>; + featuredAssetId?: InputMaybe; + id: Scalars['ID']; + outOfStockThreshold?: InputMaybe; + price?: InputMaybe; + sku?: InputMaybe; + stockLevels?: InputMaybe>; + stockOnHand?: InputMaybe; + taxCategoryId?: InputMaybe; + trackInventory?: InputMaybe; + translations?: InputMaybe>; + useGlobalOutOfStockThreshold?: InputMaybe; }; export type UpdatePromotionInput = { - actions?: InputMaybe>; - conditions?: InputMaybe>; - couponCode?: InputMaybe; - customFields?: InputMaybe; - enabled?: InputMaybe; - endsAt?: InputMaybe; - id: Scalars['ID']; - 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 UpdateSellerInput = { - customFields?: InputMaybe; - id: Scalars['ID']; - name?: InputMaybe; + customFields?: InputMaybe; + id: Scalars['ID']; + name?: InputMaybe; }; export type UpdateShippingMethodInput = { - calculator?: InputMaybe; - checker?: InputMaybe; - code?: InputMaybe; - customFields?: InputMaybe; - fulfillmentHandler?: InputMaybe; - id: Scalars['ID']; - translations: Array; + calculator?: InputMaybe; + checker?: InputMaybe; + code?: InputMaybe; + customFields?: InputMaybe; + fulfillmentHandler?: InputMaybe; + id: Scalars['ID']; + translations: Array; }; export type UpdateStockLocationInput = { - customFields?: InputMaybe; - description?: InputMaybe; - id: Scalars['ID']; - name?: InputMaybe; + customFields?: InputMaybe; + description?: InputMaybe; + id: Scalars['ID']; + name?: InputMaybe; }; export type UpdateTagInput = { - id: Scalars['ID']; - value?: InputMaybe; + id: Scalars['ID']; + value?: InputMaybe; }; export type UpdateTaxCategoryInput = { - customFields?: InputMaybe; - id: Scalars['ID']; - isDefault?: InputMaybe; - name?: InputMaybe; + customFields?: InputMaybe; + id: Scalars['ID']; + isDefault?: InputMaybe; + name?: InputMaybe; }; export type UpdateTaxRateInput = { - categoryId?: InputMaybe; - customFields?: InputMaybe; - customerGroupId?: InputMaybe; - enabled?: InputMaybe; - id: Scalars['ID']; - name?: InputMaybe; - value?: InputMaybe; - zoneId?: InputMaybe; + categoryId?: InputMaybe; + customFields?: InputMaybe; + customerGroupId?: InputMaybe; + enabled?: InputMaybe; + id: Scalars['ID']; + name?: InputMaybe; + value?: InputMaybe; + zoneId?: InputMaybe; }; export type UpdateZoneInput = { - customFields?: InputMaybe; - id: Scalars['ID']; - name?: InputMaybe; + customFields?: InputMaybe; + id: Scalars['ID']; + name?: InputMaybe; }; export type User = Node & { - authenticationMethods: Array; - createdAt: Scalars['DateTime']; - customFields?: Maybe; - id: Scalars['ID']; - identifier: Scalars['String']; - lastLogin?: Maybe; - roles: Array; - updatedAt: Scalars['DateTime']; - verified: Scalars['Boolean']; + authenticationMethods: Array; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + id: Scalars['ID']; + identifier: Scalars['String']; + lastLogin?: Maybe; + roles: Array; + updatedAt: Scalars['DateTime']; + verified: Scalars['Boolean']; }; export type Zone = Node & { - createdAt: Scalars['DateTime']; - customFields?: Maybe; - id: Scalars['ID']; - members: Array; - name: Scalars['String']; - updatedAt: Scalars['DateTime']; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + id: Scalars['ID']; + members: Array; + name: Scalars['String']; + updatedAt: Scalars['DateTime']; }; export type GetAdministratorsQueryVariables = Exact<{ - options?: InputMaybe; -}>; - -export type GetAdministratorsQuery = { - administrators: { - totalItems: number; - items: Array<{ - id: string; - firstName: string; - lastName: string; - emailAddress: string; - user: { - id: string; - identifier: string; - lastLogin?: any | null; - roles: Array<{ - id: string; - code: string; - description: string; - permissions: Array; - }>; - }; - }>; - }; -}; + options?: InputMaybe; +}>; + + +export type GetAdministratorsQuery = { administrators: { totalItems: number, items: Array<{ id: string, firstName: string, lastName: string, emailAddress: string, user: { id: string, identifier: string, lastLogin?: any | null, roles: Array<{ id: string, code: string, description: string, permissions: Array }> } }> } }; export type GetAdministratorQueryVariables = Exact<{ - id: Scalars['ID']; -}>; - -export type GetAdministratorQuery = { - administrator?: { - id: string; - firstName: string; - lastName: string; - emailAddress: string; - user: { - id: string; - identifier: string; - lastLogin?: any | null; - roles: Array<{ id: string; code: string; description: string; permissions: Array }>; - }; - } | null; -}; - -export type ActiveAdministratorQueryVariables = Exact<{ [key: string]: never }>; - -export type ActiveAdministratorQuery = { - activeAdministrator?: { - id: string; - firstName: string; - lastName: string; - emailAddress: string; - user: { - id: string; - identifier: string; - lastLogin?: any | null; - roles: Array<{ id: string; code: string; description: string; permissions: Array }>; - }; - } | null; -}; + id: Scalars['ID']; +}>; + + +export type GetAdministratorQuery = { administrator?: { id: string, firstName: string, lastName: string, emailAddress: string, user: { id: string, identifier: string, lastLogin?: any | null, roles: Array<{ id: string, code: string, description: string, permissions: Array }> } } | null }; + +export type ActiveAdministratorQueryVariables = Exact<{ [key: string]: never; }>; + + +export type ActiveAdministratorQuery = { activeAdministrator?: { id: string, firstName: string, lastName: string, emailAddress: string, user: { id: string, identifier: string, lastLogin?: any | null, roles: Array<{ id: string, code: string, description: string, permissions: Array }> } } | null }; export type UpdateActiveAdministratorMutationVariables = Exact<{ - input: UpdateActiveAdministratorInput; + input: UpdateActiveAdministratorInput; }>; -export type UpdateActiveAdministratorMutation = { - updateActiveAdministrator: { - id: string; - firstName: string; - lastName: string; - emailAddress: string; - user: { - id: string; - identifier: string; - lastLogin?: any | null; - roles: Array<{ id: string; code: string; description: string; permissions: Array }>; - }; - }; -}; + +export type UpdateActiveAdministratorMutation = { updateActiveAdministrator: { id: string, firstName: string, lastName: string, emailAddress: string, user: { id: string, identifier: string, lastLogin?: any | null, roles: Array<{ id: string, code: string, description: string, permissions: Array }> } } }; export type DeleteAdministratorMutationVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; -export type DeleteAdministratorMutation = { - deleteAdministrator: { message?: string | null; result: DeletionResult }; -}; -export type Q1QueryVariables = Exact<{ [key: string]: never }>; +export type DeleteAdministratorMutation = { deleteAdministrator: { message?: string | null, result: DeletionResult } }; + +export type Q1QueryVariables = Exact<{ [key: string]: never; }>; + + +export type Q1Query = { product?: { id: string, name: string } | null }; -export type Q1Query = { product?: { id: string; name: string } | null }; +export type Q2QueryVariables = Exact<{ [key: string]: never; }>; -export type Q2QueryVariables = Exact<{ [key: string]: never }>; -export type Q2Query = { product?: { id: string; name: string } | null }; +export type Q2Query = { product?: { id: string, name: string } | null }; export type AssignAssetsToChannelMutationVariables = Exact<{ - input: AssignAssetsToChannelInput; + input: AssignAssetsToChannelInput; }>; -export type AssignAssetsToChannelMutation = { - assignAssetsToChannel: Array<{ - id: string; - name: string; - fileSize: number; - mimeType: string; - type: AssetType; - preview: string; - source: string; - }>; -}; + +export type AssignAssetsToChannelMutation = { assignAssetsToChannel: Array<{ id: string, name: string, fileSize: number, mimeType: string, type: AssetType, preview: string, source: string }> }; export type CanCreateCustomerMutationVariables = Exact<{ - input: CreateCustomerInput; + input: CreateCustomerInput; }>; + export type CanCreateCustomerMutation = { createCustomer: { id: string } | {} }; -export type GetCustomerCountQueryVariables = Exact<{ [key: string]: never }>; +export type GetCustomerCountQueryVariables = Exact<{ [key: string]: never; }>; + export type GetCustomerCountQuery = { customers: { totalItems: number } }; -export type DeepFieldResolutionTestQueryQueryVariables = Exact<{ [key: string]: never }>; +export type DeepFieldResolutionTestQueryQueryVariables = Exact<{ [key: string]: never; }>; -export type DeepFieldResolutionTestQueryQuery = { - product?: { - variants: Array<{ - taxRateApplied: { - customerGroup?: { customers: { items: Array<{ id: string; emailAddress: string }> } } | null; - }; - }>; - } | null; -}; + +export type DeepFieldResolutionTestQueryQuery = { product?: { variants: Array<{ taxRateApplied: { customerGroup?: { customers: { items: Array<{ id: string, emailAddress: string }> } } | null } }> } | null }; export type AuthenticateMutationVariables = Exact<{ - input: AuthenticationInput; + input: AuthenticationInput; }>; -export type AuthenticateMutation = { - authenticate: - | { - id: string; - identifier: string; - channels: Array<{ code: string; token: string; permissions: Array }>; - } - | { authenticationError: string; errorCode: ErrorCode; message: string }; -}; -export type GetCustomersQueryVariables = Exact<{ [key: string]: never }>; +export type AuthenticateMutation = { authenticate: { id: string, identifier: string, channels: Array<{ code: string, token: string, permissions: Array }> } | { authenticationError: string, errorCode: ErrorCode, message: string } }; -export type GetCustomersQuery = { - customers: { totalItems: number; items: Array<{ id: string; emailAddress: string }> }; -}; +export type GetCustomersQueryVariables = Exact<{ [key: string]: never; }>; + + +export type GetCustomersQuery = { customers: { totalItems: number, items: Array<{ id: string, emailAddress: string }> } }; export type GetCustomerUserAuthQueryVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; -export type GetCustomerUserAuthQuery = { - customer?: { - id: string; - user?: { - id: string; - verified: boolean; - authenticationMethods: Array<{ id: string; strategy: string }>; - } | null; - } | null; -}; + +export type GetCustomerUserAuthQuery = { customer?: { id: string, user?: { id: string, verified: boolean, authenticationMethods: Array<{ id: string, strategy: string }> } | null } | null }; export type DeleteChannelMutationVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; -export type DeleteChannelMutation = { deleteChannel: { message?: string | null; result: DeletionResult } }; + +export type DeleteChannelMutation = { deleteChannel: { message?: string | null, result: DeletionResult } }; export type UpdateGlobalLanguagesMutationVariables = Exact<{ - input: UpdateGlobalSettingsInput; + input: UpdateGlobalSettingsInput; }>; -export type UpdateGlobalLanguagesMutation = { - updateGlobalSettings: { id: string; availableLanguages: Array } | {}; -}; -export type GetCollectionsWithAssetsQueryVariables = Exact<{ [key: string]: never }>; +export type UpdateGlobalLanguagesMutation = { updateGlobalSettings: { id: string, availableLanguages: Array } | {} }; -export type GetCollectionsWithAssetsQuery = { - collections: { items: Array<{ assets: Array<{ name: string }> }> }; -}; +export type GetCollectionsWithAssetsQueryVariables = Exact<{ [key: string]: never; }>; -export type GetProductsWithVariantIdsQueryVariables = Exact<{ [key: string]: never }>; -export type GetProductsWithVariantIdsQuery = { - products: { items: Array<{ id: string; name: string; variants: Array<{ id: string; name: string }> }> }; -}; +export type GetCollectionsWithAssetsQuery = { collections: { items: Array<{ assets: Array<{ name: string }> }> } }; -export type GetCollectionQueryVariables = Exact<{ - id?: InputMaybe; - slug?: InputMaybe; - variantListOptions?: InputMaybe; -}>; - -export type GetCollectionQuery = { - collection?: { - id: string; - name: string; - slug: string; - description: string; - isPrivate: boolean; - languageCode?: LanguageCode | null; - productVariants: { items: Array<{ id: string; name: string; price: number }> }; - featuredAsset?: { - id: string; - name: string; - fileSize: number; - mimeType: string; - type: AssetType; - preview: string; - source: string; - } | null; - assets: Array<{ - id: string; - name: string; - fileSize: number; - mimeType: string; - type: AssetType; - preview: string; - source: string; - }>; - filters: Array<{ code: string; args: Array<{ name: string; value: string }> }>; - translations: Array<{ - id: string; - languageCode: LanguageCode; - name: string; - slug: string; - description: string; - }>; - parent?: { id: string; name: string } | null; - children?: Array<{ id: string; name: string; position: number }> | null; - } | null; -}; +export type GetProductsWithVariantIdsQueryVariables = Exact<{ [key: string]: never; }>; -export type GetCollectionListAdminQueryVariables = Exact<{ - options?: InputMaybe; -}>; - -export type GetCollectionListAdminQuery = { - collections: { - totalItems: number; - items: Array<{ - id: string; - name: string; - slug: string; - description: string; - isPrivate: boolean; - languageCode?: LanguageCode | null; - featuredAsset?: { - id: string; - name: string; - fileSize: number; - mimeType: string; - type: AssetType; - preview: string; - source: string; - } | null; - assets: Array<{ - id: string; - name: string; - fileSize: number; - mimeType: string; - type: AssetType; - preview: string; - source: string; - }>; - filters: Array<{ code: string; args: Array<{ name: string; value: string }> }>; - translations: Array<{ - id: string; - languageCode: LanguageCode; - name: string; - slug: string; - description: string; - }>; - parent?: { id: string; name: string } | null; - children?: Array<{ id: string; name: string; position: number }> | null; - }>; - }; -}; -export type MoveCollectionMutationVariables = Exact<{ - input: MoveCollectionInput; -}>; - -export type MoveCollectionMutation = { - moveCollection: { - id: string; - name: string; - slug: string; - description: string; - isPrivate: boolean; - languageCode?: LanguageCode | null; - featuredAsset?: { - id: string; - name: string; - fileSize: number; - mimeType: string; - type: AssetType; - preview: string; - source: string; - } | null; - assets: Array<{ - id: string; - name: string; - fileSize: number; - mimeType: string; - type: AssetType; - preview: string; - source: string; - }>; - filters: Array<{ code: string; args: Array<{ name: string; value: string }> }>; - translations: Array<{ - id: string; - languageCode: LanguageCode; - name: string; - slug: string; - description: string; - }>; - parent?: { id: string; name: string } | null; - children?: Array<{ id: string; name: string; position: number }> | null; - }; -}; - -export type GetFacetValuesQueryVariables = Exact<{ [key: string]: never }>; - -export type GetFacetValuesQuery = { - facets: { - items: Array<{ - values: Array<{ - id: string; - languageCode: LanguageCode; - code: string; - name: string; - translations: Array<{ id: string; languageCode: LanguageCode; name: string }>; - facet: { id: string; name: string }; - }>; - }>; - }; -}; +export type GetProductsWithVariantIdsQuery = { products: { items: Array<{ id: string, name: string, variants: Array<{ id: string, name: string }> }> } }; -export type GetCollectionProductsQueryVariables = Exact<{ - id: Scalars['ID']; +export type GetCollectionQueryVariables = Exact<{ + id?: InputMaybe; + slug?: InputMaybe; + variantListOptions?: InputMaybe; }>; -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 GetCollectionQuery = { collection?: { id: string, name: string, slug: string, description: string, isPrivate: boolean, languageCode?: LanguageCode | null, productVariants: { items: Array<{ id: string, name: string, price: number }> }, featuredAsset?: { id: string, name: string, fileSize: number, mimeType: string, type: AssetType, preview: string, source: string } | null, assets: Array<{ id: string, name: string, fileSize: number, mimeType: string, type: AssetType, preview: string, source: string }>, filters: Array<{ code: string, args: Array<{ name: string, value: string }> }>, translations: Array<{ id: string, languageCode: LanguageCode, name: string, slug: string, description: string }>, parent?: { id: string, name: string } | null, children?: Array<{ id: string, name: string, position: number }> | null } | null }; + +export type GetCollectionListAdminQueryVariables = Exact<{ + options?: InputMaybe; +}>; + + +export type GetCollectionListAdminQuery = { collections: { totalItems: number, items: Array<{ id: string, name: string, slug: string, description: string, isPrivate: boolean, languageCode?: LanguageCode | null, featuredAsset?: { id: string, name: string, fileSize: number, mimeType: string, type: AssetType, preview: string, source: string } | null, assets: Array<{ id: string, name: string, fileSize: number, mimeType: string, type: AssetType, preview: string, source: string }>, filters: Array<{ code: string, args: Array<{ name: string, value: string }> }>, translations: Array<{ id: string, languageCode: LanguageCode, name: string, slug: string, description: string }>, parent?: { id: string, name: string } | null, children?: Array<{ id: string, name: string, position: number }> | null }> } }; + +export type MoveCollectionMutationVariables = Exact<{ + input: MoveCollectionInput; }>; -export type CreateCollectionSelectVariantsMutation = { - createCollection: { id: string; productVariants: { totalItems: number; items: Array<{ name: string }> } }; -}; + +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 GetCollectionBreadcrumbsQueryVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; -export type GetCollectionBreadcrumbsQuery = { - collection?: { breadcrumbs: Array<{ id: string; name: string; slug: string }> } | null; -}; + +export type GetCollectionBreadcrumbsQuery = { collection?: { breadcrumbs: Array<{ id: string, name: string, slug: string }> } | null }; export type GetCollectionsForProductsQueryVariables = Exact<{ - term: Scalars['String']; + term: Scalars['String']; }>; -export type GetCollectionsForProductsQuery = { - products: { - items: Array<{ id: string; name: string; collections: Array<{ id: string; name: string }> }>; - }; -}; + +export type GetCollectionsForProductsQuery = { products: { items: Array<{ id: string, name: string, collections: Array<{ id: string, name: string }> }> } }; export type DeleteCollectionMutationVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; -export type DeleteCollectionMutation = { - deleteCollection: { result: DeletionResult; message?: string | null }; -}; + +export type DeleteCollectionMutation = { deleteCollection: { result: DeletionResult, message?: string | null } }; export type GetProductCollectionsQueryVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; -export type GetProductCollectionsQuery = { - product?: { id: string; collections: Array<{ id: string; name: string }> } | null; -}; + +export type GetProductCollectionsQuery = { product?: { id: string, collections: Array<{ id: string, name: string }> } | null }; export type GetProductCollectionsWithParentQueryVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; -export type GetProductCollectionsWithParentQuery = { - product?: { - id: string; - collections: Array<{ id: string; name: string; parent?: { id: string; name: string } | null }>; - } | null; -}; -export type GetCollectionNestedParentsQueryVariables = Exact<{ [key: string]: never }>; +export type GetProductCollectionsWithParentQuery = { product?: { id: string, collections: Array<{ id: string, name: string, parent?: { id: string, name: string } | null }> } | null }; -export type GetCollectionNestedParentsQuery = { - collections: { - items: Array<{ - id: string; - name: string; - parent?: { - name: string; - parent?: { name: string; parent?: { name: string } | null } | null; - } | null; - }>; - }; -}; +export type GetCollectionNestedParentsQueryVariables = Exact<{ [key: string]: never; }>; + + +export type GetCollectionNestedParentsQuery = { collections: { items: Array<{ id: string, name: string, parent?: { name: string, parent?: { name: string, parent?: { name: string } | null } | null } | null }> } }; export type PreviewCollectionVariantsQueryVariables = Exact<{ - input: PreviewCollectionVariantsInput; - options?: InputMaybe; + input: PreviewCollectionVariantsInput; + options?: InputMaybe; }>; -export type PreviewCollectionVariantsQuery = { - previewCollectionVariants: { totalItems: number; items: Array<{ id: string; name: string }> }; -}; + +export type PreviewCollectionVariantsQuery = { previewCollectionVariants: { totalItems: number, items: Array<{ id: string, name: string }> } }; export type AssignCollectionsToChannelMutationVariables = Exact<{ - input: AssignCollectionsToChannelInput; -}>; - -export type AssignCollectionsToChannelMutation = { - assignCollectionsToChannel: Array<{ - id: string; - name: string; - slug: string; - description: string; - isPrivate: boolean; - languageCode?: LanguageCode | null; - featuredAsset?: { - id: string; - name: string; - fileSize: number; - mimeType: string; - type: AssetType; - preview: string; - source: string; - } | null; - assets: Array<{ - id: string; - name: string; - fileSize: number; - mimeType: string; - type: AssetType; - preview: string; - source: string; - }>; - filters: Array<{ code: string; args: Array<{ name: string; value: string }> }>; - translations: Array<{ - id: string; - languageCode: LanguageCode; - name: string; - slug: string; - description: string; - }>; - parent?: { id: string; name: string } | null; - children?: Array<{ id: string; name: string; position: number }> | null; - }>; -}; + input: AssignCollectionsToChannelInput; +}>; + + +export type AssignCollectionsToChannelMutation = { assignCollectionsToChannel: Array<{ id: string, name: string, slug: string, description: string, isPrivate: boolean, languageCode?: LanguageCode | null, featuredAsset?: { id: string, name: string, fileSize: number, mimeType: string, type: AssetType, preview: string, source: string } | null, assets: Array<{ id: string, name: string, fileSize: number, mimeType: string, type: AssetType, preview: string, source: string }>, filters: Array<{ code: string, args: Array<{ name: string, value: string }> }>, translations: Array<{ id: string, languageCode: LanguageCode, name: string, slug: string, description: string }>, parent?: { id: string, name: string } | null, children?: Array<{ id: string, name: string, position: number }> | null }> }; export type RemoveCollectionsFromChannelMutationVariables = Exact<{ - input: RemoveCollectionsFromChannelInput; -}>; - -export type RemoveCollectionsFromChannelMutation = { - removeCollectionsFromChannel: Array<{ - id: string; - name: string; - slug: string; - description: string; - isPrivate: boolean; - languageCode?: LanguageCode | null; - featuredAsset?: { - id: string; - name: string; - fileSize: number; - mimeType: string; - type: AssetType; - preview: string; - source: string; - } | null; - assets: Array<{ - id: string; - name: string; - fileSize: number; - mimeType: string; - type: AssetType; - preview: string; - source: string; - }>; - filters: Array<{ code: string; args: Array<{ name: string; value: string }> }>; - translations: Array<{ - id: string; - languageCode: LanguageCode; - name: string; - slug: string; - description: string; - }>; - parent?: { id: string; name: string } | null; - children?: Array<{ id: string; name: string; position: number }> | null; - }>; -}; + input: RemoveCollectionsFromChannelInput; +}>; + + +export type RemoveCollectionsFromChannelMutation = { removeCollectionsFromChannel: Array<{ id: string, name: string, slug: string, description: string, isPrivate: boolean, languageCode?: LanguageCode | null, featuredAsset?: { id: string, name: string, fileSize: number, mimeType: string, type: AssetType, preview: string, source: string } | null, assets: Array<{ id: string, name: string, fileSize: number, mimeType: string, type: AssetType, preview: string, source: string }>, filters: Array<{ code: string, args: Array<{ name: string, value: string }> }>, translations: Array<{ id: string, languageCode: LanguageCode, name: string, slug: string, description: string }>, parent?: { id: string, name: string } | null, children?: Array<{ id: string, name: string, position: number }> | null }> }; export type DeleteCollectionsBulkMutationVariables = Exact<{ - ids: Array | Scalars['ID']; + ids: Array | Scalars['ID']; }>; -export type DeleteCollectionsBulkMutation = { - deleteCollections: Array<{ message?: string | null; result: DeletionResult }>; -}; -export type GetCheckersQueryVariables = Exact<{ [key: string]: never }>; +export type DeleteCollectionsBulkMutation = { deleteCollections: Array<{ message?: string | null, result: DeletionResult }> }; + +export type 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; - taxRate: number; - linePriceWithTax: number; - featuredAsset?: { preview: string } | null; - productVariant: { id: string; name: string; sku: string }; - taxLines: Array<{ description: string; taxRate: number }>; - }>; - surcharges: Array<{ - id: string; - description: string; - sku?: string | null; - price: number; - priceWithTax: number; - }>; - shippingLines: Array<{ - priceWithTax: number; - shippingMethod: { id: string; code: string; name: string; description: string }; - }>; - shippingAddress?: { - fullName?: string | null; - company?: string | null; - streetLine1?: string | null; - streetLine2?: string | null; - city?: string | null; - province?: string | null; - postalCode?: string | null; - country?: string | null; - phoneNumber?: string | null; - } | null; - payments?: Array<{ - id: string; - transactionId?: string | null; - amount: number; - method: string; - state: string; - nextStates: Array; - metadata?: any | null; - refunds: Array<{ id: string; total: number; reason?: string | null }>; - }> | null; - fulfillments?: Array<{ - id: string; - state: string; - method: string; - trackingCode?: string | null; - lines: Array<{ orderLineId: string; quantity: number }>; - }> | null; - }; -}; + input: SearchInput; +}>; + + +export type SearchGetPricesQuery = { search: { items: Array<{ price: { min: number, max: number } | { value: number }, priceWithTax: { min: number, max: number } | { value: number } }> } }; + +export type CreateDraftOrderMutationVariables = Exact<{ [key: string]: never; }>; + + +export type CreateDraftOrderMutation = { createDraftOrder: { id: string, createdAt: any, updatedAt: any, code: string, state: string, active: boolean, subTotal: number, subTotalWithTax: number, total: number, totalWithTax: number, totalQuantity: number, currencyCode: CurrencyCode, shipping: number, shippingWithTax: number, customer?: { id: string, firstName: string, lastName: string } | null, lines: Array<{ id: string, unitPrice: number, unitPriceWithTax: number, quantity: number, taxRate: number, linePriceWithTax: number, featuredAsset?: { preview: string } | null, productVariant: { id: string, name: string, sku: string }, taxLines: Array<{ description: string, taxRate: number }> }>, surcharges: Array<{ id: string, description: string, sku?: string | null, price: number, priceWithTax: number }>, shippingLines: Array<{ priceWithTax: number, shippingMethod: { id: string, code: string, name: string, description: string } }>, shippingAddress?: { fullName?: string | null, company?: string | null, streetLine1?: string | null, streetLine2?: string | null, city?: string | null, province?: string | null, postalCode?: string | null, country?: string | null, phoneNumber?: string | null } | null, payments?: Array<{ id: string, transactionId?: string | null, amount: number, method: string, state: string, nextStates: Array, metadata?: any | null, refunds: Array<{ id: string, total: number, reason?: string | null }> }> | null, fulfillments?: Array<{ id: string, state: string, method: string, trackingCode?: string | null, lines: Array<{ orderLineId: string, quantity: number }> }> | null } }; export type AddItemToDraftOrderMutationVariables = Exact<{ - orderId: Scalars['ID']; - input: AddItemToDraftOrderInput; -}>; - -export type AddItemToDraftOrderMutation = { - addItemToDraftOrder: - | { errorCode: ErrorCode; message: string } - | { errorCode: ErrorCode; message: string } - | { - id: string; - createdAt: any; - updatedAt: any; - code: string; - state: string; - active: boolean; - subTotal: number; - subTotalWithTax: number; - total: number; - totalWithTax: number; - totalQuantity: number; - currencyCode: CurrencyCode; - shipping: number; - shippingWithTax: number; - customer?: { id: string; firstName: string; lastName: string } | null; - lines: Array<{ - id: string; - unitPrice: number; - unitPriceWithTax: number; - quantity: number; - taxRate: number; - linePriceWithTax: number; - featuredAsset?: { preview: string } | null; - productVariant: { id: string; name: string; sku: string }; - taxLines: Array<{ description: string; taxRate: number }>; - }>; - surcharges: Array<{ - id: string; - description: string; - sku?: string | null; - price: number; - priceWithTax: number; - }>; - shippingLines: Array<{ - priceWithTax: number; - shippingMethod: { id: string; code: string; name: string; description: string }; - }>; - shippingAddress?: { - fullName?: string | null; - company?: string | null; - streetLine1?: string | null; - streetLine2?: string | null; - city?: string | null; - province?: string | null; - postalCode?: string | null; - country?: string | null; - phoneNumber?: string | null; - } | null; - payments?: Array<{ - id: string; - transactionId?: string | null; - amount: number; - method: string; - state: string; - nextStates: Array; - metadata?: any | null; - refunds: Array<{ id: string; total: number; reason?: string | null }>; - }> | null; - fulfillments?: Array<{ - id: string; - state: string; - method: string; - trackingCode?: string | null; - lines: Array<{ orderLineId: string; quantity: number }>; - }> | null; - } - | { errorCode: ErrorCode; message: string } - | { errorCode: ErrorCode; message: string }; -}; + orderId: Scalars['ID']; + input: AddItemToDraftOrderInput; +}>; + + +export type AddItemToDraftOrderMutation = { addItemToDraftOrder: { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } | { id: string, createdAt: any, updatedAt: any, code: string, state: string, active: boolean, subTotal: number, subTotalWithTax: number, total: number, totalWithTax: number, totalQuantity: number, currencyCode: CurrencyCode, shipping: number, shippingWithTax: number, customer?: { id: string, firstName: string, lastName: string } | null, lines: Array<{ id: string, unitPrice: number, unitPriceWithTax: number, quantity: number, taxRate: number, linePriceWithTax: number, featuredAsset?: { preview: string } | null, productVariant: { id: string, name: string, sku: string }, taxLines: Array<{ description: string, taxRate: number }> }>, surcharges: Array<{ id: string, description: string, sku?: string | null, price: number, priceWithTax: number }>, shippingLines: Array<{ priceWithTax: number, shippingMethod: { id: string, code: string, name: string, description: string } }>, shippingAddress?: { fullName?: string | null, company?: string | null, streetLine1?: string | null, streetLine2?: string | null, city?: string | null, province?: string | null, postalCode?: string | null, country?: string | null, phoneNumber?: string | null } | null, payments?: Array<{ id: string, transactionId?: string | null, amount: number, method: string, state: string, nextStates: Array, metadata?: any | null, refunds: Array<{ id: string, total: number, reason?: string | null }> }> | null, fulfillments?: Array<{ id: string, state: string, method: string, trackingCode?: string | null, lines: Array<{ orderLineId: string, quantity: number }> }> | null } | { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } }; export type AdjustDraftOrderLineMutationVariables = Exact<{ - orderId: Scalars['ID']; - input: AdjustDraftOrderLineInput; -}>; - -export type AdjustDraftOrderLineMutation = { - adjustDraftOrderLine: - | { errorCode: ErrorCode; message: string } - | { errorCode: ErrorCode; message: string } - | { - id: string; - createdAt: any; - updatedAt: any; - code: string; - state: string; - active: boolean; - subTotal: number; - subTotalWithTax: number; - total: number; - totalWithTax: number; - totalQuantity: number; - currencyCode: CurrencyCode; - shipping: number; - shippingWithTax: number; - customer?: { id: string; firstName: string; lastName: string } | null; - lines: Array<{ - id: string; - unitPrice: number; - unitPriceWithTax: number; - quantity: number; - taxRate: number; - linePriceWithTax: number; - featuredAsset?: { preview: string } | null; - productVariant: { id: string; name: string; sku: string }; - taxLines: Array<{ description: string; taxRate: number }>; - }>; - surcharges: Array<{ - id: string; - description: string; - sku?: string | null; - price: number; - priceWithTax: number; - }>; - shippingLines: Array<{ - priceWithTax: number; - shippingMethod: { id: string; code: string; name: string; description: string }; - }>; - shippingAddress?: { - fullName?: string | null; - company?: string | null; - streetLine1?: string | null; - streetLine2?: string | null; - city?: string | null; - province?: string | null; - postalCode?: string | null; - country?: string | null; - phoneNumber?: string | null; - } | null; - payments?: Array<{ - id: string; - transactionId?: string | null; - amount: number; - method: string; - state: string; - nextStates: Array; - metadata?: any | null; - refunds: Array<{ id: string; total: number; reason?: string | null }>; - }> | null; - fulfillments?: Array<{ - id: string; - state: string; - method: string; - trackingCode?: string | null; - lines: Array<{ orderLineId: string; quantity: number }>; - }> | null; - } - | { errorCode: ErrorCode; message: string } - | { errorCode: ErrorCode; message: string }; -}; + orderId: Scalars['ID']; + input: AdjustDraftOrderLineInput; +}>; + + +export type AdjustDraftOrderLineMutation = { adjustDraftOrderLine: { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } | { id: string, createdAt: any, updatedAt: any, code: string, state: string, active: boolean, subTotal: number, subTotalWithTax: number, total: number, totalWithTax: number, totalQuantity: number, currencyCode: CurrencyCode, shipping: number, shippingWithTax: number, customer?: { id: string, firstName: string, lastName: string } | null, lines: Array<{ id: string, unitPrice: number, unitPriceWithTax: number, quantity: number, taxRate: number, linePriceWithTax: number, featuredAsset?: { preview: string } | null, productVariant: { id: string, name: string, sku: string }, taxLines: Array<{ description: string, taxRate: number }> }>, surcharges: Array<{ id: string, description: string, sku?: string | null, price: number, priceWithTax: number }>, shippingLines: Array<{ priceWithTax: number, shippingMethod: { id: string, code: string, name: string, description: string } }>, shippingAddress?: { fullName?: string | null, company?: string | null, streetLine1?: string | null, streetLine2?: string | null, city?: string | null, province?: string | null, postalCode?: string | null, country?: string | null, phoneNumber?: string | null } | null, payments?: Array<{ id: string, transactionId?: string | null, amount: number, method: string, state: string, nextStates: Array, metadata?: any | null, refunds: Array<{ id: string, total: number, reason?: string | null }> }> | null, fulfillments?: Array<{ id: string, state: string, method: string, trackingCode?: string | null, lines: Array<{ orderLineId: string, quantity: number }> }> | null } | { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } }; export type RemoveDraftOrderLineMutationVariables = Exact<{ - orderId: Scalars['ID']; - orderLineId: Scalars['ID']; -}>; - -export type RemoveDraftOrderLineMutation = { - removeDraftOrderLine: - | { - id: string; - createdAt: any; - updatedAt: any; - code: string; - state: string; - active: boolean; - subTotal: number; - subTotalWithTax: number; - total: number; - totalWithTax: number; - totalQuantity: number; - currencyCode: CurrencyCode; - shipping: number; - shippingWithTax: number; - customer?: { id: string; firstName: string; lastName: string } | null; - lines: Array<{ - id: string; - unitPrice: number; - unitPriceWithTax: number; - quantity: number; - taxRate: number; - linePriceWithTax: number; - featuredAsset?: { preview: string } | null; - productVariant: { id: string; name: string; sku: string }; - taxLines: Array<{ description: string; taxRate: number }>; - }>; - surcharges: Array<{ - id: string; - description: string; - sku?: string | null; - price: number; - priceWithTax: number; - }>; - shippingLines: Array<{ - priceWithTax: number; - shippingMethod: { id: string; code: string; name: string; description: string }; - }>; - shippingAddress?: { - fullName?: string | null; - company?: string | null; - streetLine1?: string | null; - streetLine2?: string | null; - city?: string | null; - province?: string | null; - postalCode?: string | null; - country?: string | null; - phoneNumber?: string | null; - } | null; - payments?: Array<{ - id: string; - transactionId?: string | null; - amount: number; - method: string; - state: string; - nextStates: Array; - metadata?: any | null; - refunds: Array<{ id: string; total: number; reason?: string | null }>; - }> | null; - fulfillments?: Array<{ - id: string; - state: string; - method: string; - trackingCode?: string | null; - lines: Array<{ orderLineId: string; quantity: number }>; - }> | null; - } - | { errorCode: ErrorCode; message: string }; -}; + orderId: Scalars['ID']; + orderLineId: Scalars['ID']; +}>; + + +export type RemoveDraftOrderLineMutation = { removeDraftOrderLine: { id: string, createdAt: any, updatedAt: any, code: string, state: string, active: boolean, subTotal: number, subTotalWithTax: number, total: number, totalWithTax: number, totalQuantity: number, currencyCode: CurrencyCode, shipping: number, shippingWithTax: number, customer?: { id: string, firstName: string, lastName: string } | null, lines: Array<{ id: string, unitPrice: number, unitPriceWithTax: number, quantity: number, taxRate: number, linePriceWithTax: number, featuredAsset?: { preview: string } | null, productVariant: { id: string, name: string, sku: string }, taxLines: Array<{ description: string, taxRate: number }> }>, surcharges: Array<{ id: string, description: string, sku?: string | null, price: number, priceWithTax: number }>, shippingLines: Array<{ priceWithTax: number, shippingMethod: { id: string, code: string, name: string, description: string } }>, shippingAddress?: { fullName?: string | null, company?: string | null, streetLine1?: string | null, streetLine2?: string | null, city?: string | null, province?: string | null, postalCode?: string | null, country?: string | null, phoneNumber?: string | null } | null, payments?: Array<{ id: string, transactionId?: string | null, amount: number, method: string, state: string, nextStates: Array, metadata?: any | null, refunds: Array<{ id: string, total: number, reason?: string | null }> }> | null, fulfillments?: Array<{ id: string, state: string, method: string, trackingCode?: string | null, lines: Array<{ orderLineId: string, quantity: number }> }> | null } | { errorCode: ErrorCode, message: string } }; export type SetCustomerForDraftOrderMutationVariables = Exact<{ - orderId: Scalars['ID']; - customerId?: InputMaybe; - input?: InputMaybe; -}>; - -export type SetCustomerForDraftOrderMutation = { - setCustomerForDraftOrder: - | { errorCode: ErrorCode; message: string } - | { - id: string; - createdAt: any; - updatedAt: any; - code: string; - state: string; - active: boolean; - subTotal: number; - subTotalWithTax: number; - total: number; - totalWithTax: number; - totalQuantity: number; - currencyCode: CurrencyCode; - shipping: number; - shippingWithTax: number; - customer?: { id: string; firstName: string; lastName: string } | null; - lines: Array<{ - id: string; - unitPrice: number; - unitPriceWithTax: number; - quantity: number; - taxRate: number; - linePriceWithTax: number; - featuredAsset?: { preview: string } | null; - productVariant: { id: string; name: string; sku: string }; - taxLines: Array<{ description: string; taxRate: number }>; - }>; - surcharges: Array<{ - id: string; - description: string; - sku?: string | null; - price: number; - priceWithTax: number; - }>; - shippingLines: Array<{ - priceWithTax: number; - shippingMethod: { id: string; code: string; name: string; description: string }; - }>; - shippingAddress?: { - fullName?: string | null; - company?: string | null; - streetLine1?: string | null; - streetLine2?: string | null; - city?: string | null; - province?: string | null; - postalCode?: string | null; - country?: string | null; - phoneNumber?: string | null; - } | null; - payments?: Array<{ - id: string; - transactionId?: string | null; - amount: number; - method: string; - state: string; - nextStates: Array; - metadata?: any | null; - refunds: Array<{ id: string; total: number; reason?: string | null }>; - }> | null; - fulfillments?: Array<{ - id: string; - state: string; - method: string; - trackingCode?: string | null; - lines: Array<{ orderLineId: string; quantity: number }>; - }> | null; - }; -}; + orderId: Scalars['ID']; + customerId?: InputMaybe; + input?: InputMaybe; +}>; + + +export type SetCustomerForDraftOrderMutation = { setCustomerForDraftOrder: { errorCode: ErrorCode, message: string } | { id: string, createdAt: any, updatedAt: any, code: string, state: string, active: boolean, subTotal: number, subTotalWithTax: number, total: number, totalWithTax: number, totalQuantity: number, currencyCode: CurrencyCode, shipping: number, shippingWithTax: number, customer?: { id: string, firstName: string, lastName: string } | null, lines: Array<{ id: string, unitPrice: number, unitPriceWithTax: number, quantity: number, taxRate: number, linePriceWithTax: number, featuredAsset?: { preview: string } | null, productVariant: { id: string, name: string, sku: string }, taxLines: Array<{ description: string, taxRate: number }> }>, surcharges: Array<{ id: string, description: string, sku?: string | null, price: number, priceWithTax: number }>, shippingLines: Array<{ priceWithTax: number, shippingMethod: { id: string, code: string, name: string, description: string } }>, shippingAddress?: { fullName?: string | null, company?: string | null, streetLine1?: string | null, streetLine2?: string | null, city?: string | null, province?: string | null, postalCode?: string | null, country?: string | null, phoneNumber?: string | null } | null, payments?: Array<{ id: string, transactionId?: string | null, amount: number, method: string, state: string, nextStates: Array, metadata?: any | null, refunds: Array<{ id: string, total: number, reason?: string | null }> }> | null, fulfillments?: Array<{ id: string, state: string, method: string, trackingCode?: string | null, lines: Array<{ orderLineId: string, quantity: number }> }> | null } }; export type SetDraftOrderShippingAddressMutationVariables = Exact<{ - orderId: Scalars['ID']; - input: CreateAddressInput; -}>; - -export type SetDraftOrderShippingAddressMutation = { - setDraftOrderShippingAddress: { - id: string; - createdAt: any; - updatedAt: any; - code: string; - state: string; - active: boolean; - subTotal: number; - subTotalWithTax: number; - total: number; - totalWithTax: number; - totalQuantity: number; - currencyCode: CurrencyCode; - shipping: number; - shippingWithTax: number; - customer?: { id: string; firstName: string; lastName: string } | null; - lines: Array<{ - id: string; - unitPrice: number; - unitPriceWithTax: number; - quantity: number; - taxRate: number; - linePriceWithTax: number; - featuredAsset?: { preview: string } | null; - productVariant: { id: string; name: string; sku: string }; - taxLines: Array<{ description: string; taxRate: number }>; - }>; - surcharges: Array<{ - id: string; - description: string; - sku?: string | null; - price: number; - priceWithTax: number; - }>; - shippingLines: Array<{ - priceWithTax: number; - shippingMethod: { id: string; code: string; name: string; description: string }; - }>; - shippingAddress?: { - fullName?: string | null; - company?: string | null; - streetLine1?: string | null; - streetLine2?: string | null; - city?: string | null; - province?: string | null; - postalCode?: string | null; - country?: string | null; - phoneNumber?: string | null; - } | null; - payments?: Array<{ - id: string; - transactionId?: string | null; - amount: number; - method: string; - state: string; - nextStates: Array; - metadata?: any | null; - refunds: Array<{ id: string; total: number; reason?: string | null }>; - }> | null; - fulfillments?: Array<{ - id: string; - state: string; - method: string; - trackingCode?: string | null; - lines: Array<{ orderLineId: string; quantity: number }>; - }> | null; - }; -}; + orderId: Scalars['ID']; + input: CreateAddressInput; +}>; + + +export type SetDraftOrderShippingAddressMutation = { setDraftOrderShippingAddress: { id: string, createdAt: any, updatedAt: any, code: string, state: string, active: boolean, subTotal: number, subTotalWithTax: number, total: number, totalWithTax: number, totalQuantity: number, currencyCode: CurrencyCode, shipping: number, shippingWithTax: number, customer?: { id: string, firstName: string, lastName: string } | null, lines: Array<{ id: string, unitPrice: number, unitPriceWithTax: number, quantity: number, taxRate: number, linePriceWithTax: number, featuredAsset?: { preview: string } | null, productVariant: { id: string, name: string, sku: string }, taxLines: Array<{ description: string, taxRate: number }> }>, surcharges: Array<{ id: string, description: string, sku?: string | null, price: number, priceWithTax: number }>, shippingLines: Array<{ priceWithTax: number, shippingMethod: { id: string, code: string, name: string, description: string } }>, shippingAddress?: { fullName?: string | null, company?: string | null, streetLine1?: string | null, streetLine2?: string | null, city?: string | null, province?: string | null, postalCode?: string | null, country?: string | null, phoneNumber?: string | null } | null, payments?: Array<{ id: string, transactionId?: string | null, amount: number, method: string, state: string, nextStates: Array, metadata?: any | null, refunds: Array<{ id: string, total: number, reason?: string | null }> }> | null, fulfillments?: Array<{ id: string, state: string, method: string, trackingCode?: string | null, lines: Array<{ orderLineId: string, quantity: number }> }> | null } }; export type SetDraftOrderBillingAddressMutationVariables = Exact<{ - orderId: Scalars['ID']; - input: CreateAddressInput; -}>; - -export type SetDraftOrderBillingAddressMutation = { - setDraftOrderBillingAddress: { - id: string; - createdAt: any; - updatedAt: any; - code: string; - state: string; - active: boolean; - subTotal: number; - subTotalWithTax: number; - total: number; - totalWithTax: number; - totalQuantity: number; - currencyCode: CurrencyCode; - shipping: number; - shippingWithTax: number; - billingAddress?: { - fullName?: string | null; - company?: string | null; - streetLine1?: string | null; - streetLine2?: string | null; - city?: string | null; - province?: string | null; - postalCode?: string | null; - country?: string | null; - phoneNumber?: string | null; - } | null; - customer?: { id: string; firstName: string; lastName: string } | null; - lines: Array<{ - id: string; - unitPrice: number; - unitPriceWithTax: number; - quantity: number; - taxRate: number; - linePriceWithTax: number; - featuredAsset?: { preview: string } | null; - productVariant: { id: string; name: string; sku: string }; - taxLines: Array<{ description: string; taxRate: number }>; - }>; - surcharges: Array<{ - id: string; - description: string; - sku?: string | null; - price: number; - priceWithTax: number; - }>; - shippingLines: Array<{ - priceWithTax: number; - shippingMethod: { id: string; code: string; name: string; description: string }; - }>; - shippingAddress?: { - fullName?: string | null; - company?: string | null; - streetLine1?: string | null; - streetLine2?: string | null; - city?: string | null; - province?: string | null; - postalCode?: string | null; - country?: string | null; - phoneNumber?: string | null; - } | null; - payments?: Array<{ - id: string; - transactionId?: string | null; - amount: number; - method: string; - state: string; - nextStates: Array; - metadata?: any | null; - refunds: Array<{ id: string; total: number; reason?: string | null }>; - }> | null; - fulfillments?: Array<{ - id: string; - state: string; - method: string; - trackingCode?: string | null; - lines: Array<{ orderLineId: string; quantity: number }>; - }> | null; - }; -}; + orderId: Scalars['ID']; + input: CreateAddressInput; +}>; + + +export type SetDraftOrderBillingAddressMutation = { setDraftOrderBillingAddress: { id: string, createdAt: any, updatedAt: any, code: string, state: string, active: boolean, subTotal: number, subTotalWithTax: number, total: number, totalWithTax: number, totalQuantity: number, currencyCode: CurrencyCode, shipping: number, shippingWithTax: number, billingAddress?: { fullName?: string | null, company?: string | null, streetLine1?: string | null, streetLine2?: string | null, city?: string | null, province?: string | null, postalCode?: string | null, country?: string | null, phoneNumber?: string | null } | null, customer?: { id: string, firstName: string, lastName: string } | null, lines: Array<{ id: string, unitPrice: number, unitPriceWithTax: number, quantity: number, taxRate: number, linePriceWithTax: number, featuredAsset?: { preview: string } | null, productVariant: { id: string, name: string, sku: string }, taxLines: Array<{ description: string, taxRate: number }> }>, surcharges: Array<{ id: string, description: string, sku?: string | null, price: number, priceWithTax: number }>, shippingLines: Array<{ priceWithTax: number, shippingMethod: { id: string, code: string, name: string, description: string } }>, shippingAddress?: { fullName?: string | null, company?: string | null, streetLine1?: string | null, streetLine2?: string | null, city?: string | null, province?: string | null, postalCode?: string | null, country?: string | null, phoneNumber?: string | null } | null, payments?: Array<{ id: string, transactionId?: string | null, amount: number, method: string, state: string, nextStates: Array, metadata?: any | null, refunds: Array<{ id: string, total: number, reason?: string | null }> }> | null, fulfillments?: Array<{ id: string, state: string, method: string, trackingCode?: string | null, lines: Array<{ orderLineId: string, quantity: number }> }> | null } }; export type ApplyCouponCodeToDraftOrderMutationVariables = Exact<{ - orderId: Scalars['ID']; - couponCode: Scalars['String']; -}>; - -export type ApplyCouponCodeToDraftOrderMutation = { - applyCouponCodeToDraftOrder: - | { errorCode: ErrorCode; message: string } - | { errorCode: ErrorCode; message: string } - | { errorCode: ErrorCode; message: string } - | { - couponCodes: Array; - id: string; - createdAt: any; - updatedAt: any; - code: string; - state: string; - active: boolean; - subTotal: number; - subTotalWithTax: number; - total: number; - totalWithTax: number; - totalQuantity: number; - currencyCode: CurrencyCode; - shipping: number; - shippingWithTax: number; - customer?: { id: string; firstName: string; lastName: string } | null; - lines: Array<{ - id: string; - unitPrice: number; - unitPriceWithTax: number; - quantity: number; - taxRate: number; - linePriceWithTax: number; - featuredAsset?: { preview: string } | null; - productVariant: { id: string; name: string; sku: string }; - taxLines: Array<{ description: string; taxRate: number }>; - }>; - surcharges: Array<{ - id: string; - description: string; - sku?: string | null; - price: number; - priceWithTax: number; - }>; - shippingLines: Array<{ - priceWithTax: number; - shippingMethod: { id: string; code: string; name: string; description: string }; - }>; - shippingAddress?: { - fullName?: string | null; - company?: string | null; - streetLine1?: string | null; - streetLine2?: string | null; - city?: string | null; - province?: string | null; - postalCode?: string | null; - country?: string | null; - phoneNumber?: string | null; - } | null; - payments?: Array<{ - id: string; - transactionId?: string | null; - amount: number; - method: string; - state: string; - nextStates: Array; - metadata?: any | null; - refunds: Array<{ id: string; total: number; reason?: string | null }>; - }> | null; - fulfillments?: Array<{ - id: string; - state: string; - method: string; - trackingCode?: string | null; - lines: Array<{ orderLineId: string; quantity: number }>; - }> | null; - }; -}; + orderId: Scalars['ID']; + couponCode: Scalars['String']; +}>; + + +export type ApplyCouponCodeToDraftOrderMutation = { applyCouponCodeToDraftOrder: { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } | { couponCodes: Array, id: string, createdAt: any, updatedAt: any, code: string, state: string, active: boolean, subTotal: number, subTotalWithTax: number, total: number, totalWithTax: number, totalQuantity: number, currencyCode: CurrencyCode, shipping: number, shippingWithTax: number, customer?: { id: string, firstName: string, lastName: string } | null, lines: Array<{ id: string, unitPrice: number, unitPriceWithTax: number, quantity: number, taxRate: number, linePriceWithTax: number, featuredAsset?: { preview: string } | null, productVariant: { id: string, name: string, sku: string }, taxLines: Array<{ description: string, taxRate: number }> }>, surcharges: Array<{ id: string, description: string, sku?: string | null, price: number, priceWithTax: number }>, shippingLines: Array<{ priceWithTax: number, shippingMethod: { id: string, code: string, name: string, description: string } }>, shippingAddress?: { fullName?: string | null, company?: string | null, streetLine1?: string | null, streetLine2?: string | null, city?: string | null, province?: string | null, postalCode?: string | null, country?: string | null, phoneNumber?: string | null } | null, payments?: Array<{ id: string, transactionId?: string | null, amount: number, method: string, state: string, nextStates: Array, metadata?: any | null, refunds: Array<{ id: string, total: number, reason?: string | null }> }> | null, fulfillments?: Array<{ id: string, state: string, method: string, trackingCode?: string | null, lines: Array<{ orderLineId: string, quantity: number }> }> | null } }; export type RemoveCouponCodeFromDraftOrderMutationVariables = Exact<{ - orderId: Scalars['ID']; - couponCode: Scalars['String']; -}>; - -export type RemoveCouponCodeFromDraftOrderMutation = { - removeCouponCodeFromDraftOrder?: { - couponCodes: Array; - id: string; - createdAt: any; - updatedAt: any; - code: string; - state: string; - active: boolean; - subTotal: number; - subTotalWithTax: number; - total: number; - totalWithTax: number; - totalQuantity: number; - currencyCode: CurrencyCode; - shipping: number; - shippingWithTax: number; - customer?: { id: string; firstName: string; lastName: string } | null; - lines: Array<{ - id: string; - unitPrice: number; - unitPriceWithTax: number; - quantity: number; - taxRate: number; - linePriceWithTax: number; - featuredAsset?: { preview: string } | null; - productVariant: { id: string; name: string; sku: string }; - taxLines: Array<{ description: string; taxRate: number }>; - }>; - surcharges: Array<{ - id: string; - description: string; - sku?: string | null; - price: number; - priceWithTax: number; - }>; - shippingLines: Array<{ - priceWithTax: number; - shippingMethod: { id: string; code: string; name: string; description: string }; - }>; - shippingAddress?: { - fullName?: string | null; - company?: string | null; - streetLine1?: string | null; - streetLine2?: string | null; - city?: string | null; - province?: string | null; - postalCode?: string | null; - country?: string | null; - phoneNumber?: string | null; - } | null; - payments?: Array<{ - id: string; - transactionId?: string | null; - amount: number; - method: string; - state: string; - nextStates: Array; - metadata?: any | null; - refunds: Array<{ id: string; total: number; reason?: string | null }>; - }> | null; - fulfillments?: Array<{ - id: string; - state: string; - method: string; - trackingCode?: string | null; - lines: Array<{ orderLineId: string; quantity: number }>; - }> | null; - } | null; -}; + orderId: Scalars['ID']; + couponCode: Scalars['String']; +}>; + + +export type RemoveCouponCodeFromDraftOrderMutation = { removeCouponCodeFromDraftOrder?: { couponCodes: Array, id: string, createdAt: any, updatedAt: any, code: string, state: string, active: boolean, subTotal: number, subTotalWithTax: number, total: number, totalWithTax: number, totalQuantity: number, currencyCode: CurrencyCode, shipping: number, shippingWithTax: number, customer?: { id: string, firstName: string, lastName: string } | null, lines: Array<{ id: string, unitPrice: number, unitPriceWithTax: number, quantity: number, taxRate: number, linePriceWithTax: number, featuredAsset?: { preview: string } | null, productVariant: { id: string, name: string, sku: string }, taxLines: Array<{ description: string, taxRate: number }> }>, surcharges: Array<{ id: string, description: string, sku?: string | null, price: number, priceWithTax: number }>, shippingLines: Array<{ priceWithTax: number, shippingMethod: { id: string, code: string, name: string, description: string } }>, shippingAddress?: { fullName?: string | null, company?: string | null, streetLine1?: string | null, streetLine2?: string | null, city?: string | null, province?: string | null, postalCode?: string | null, country?: string | null, phoneNumber?: string | null } | null, payments?: Array<{ id: string, transactionId?: string | null, amount: number, method: string, state: string, nextStates: Array, metadata?: any | null, refunds: Array<{ id: string, total: number, reason?: string | null }> }> | null, fulfillments?: Array<{ id: string, state: string, method: string, trackingCode?: string | null, lines: Array<{ orderLineId: string, quantity: number }> }> | null } | null }; export type DraftOrderEligibleShippingMethodsQueryVariables = Exact<{ - orderId: Scalars['ID']; + orderId: Scalars['ID']; }>; -export type DraftOrderEligibleShippingMethodsQuery = { - eligibleShippingMethodsForDraftOrder: Array<{ - id: string; - name: string; - code: string; - description: string; - price: number; - priceWithTax: number; - metadata?: any | null; - }>; -}; + +export type DraftOrderEligibleShippingMethodsQuery = { eligibleShippingMethodsForDraftOrder: Array<{ id: string, name: string, code: string, description: string, price: number, priceWithTax: number, metadata?: any | null }> }; export type SetDraftOrderShippingMethodMutationVariables = Exact<{ - orderId: Scalars['ID']; - shippingMethodId: Scalars['ID']; -}>; - -export type SetDraftOrderShippingMethodMutation = { - setDraftOrderShippingMethod: - | { errorCode: ErrorCode; message: string } - | { errorCode: ErrorCode; message: string } - | { - id: string; - createdAt: any; - updatedAt: any; - code: string; - state: string; - active: boolean; - subTotal: number; - subTotalWithTax: number; - total: number; - totalWithTax: number; - totalQuantity: number; - currencyCode: CurrencyCode; - shipping: number; - shippingWithTax: number; - customer?: { id: string; firstName: string; lastName: string } | null; - lines: Array<{ - id: string; - unitPrice: number; - unitPriceWithTax: number; - quantity: number; - taxRate: number; - linePriceWithTax: number; - featuredAsset?: { preview: string } | null; - productVariant: { id: string; name: string; sku: string }; - taxLines: Array<{ description: string; taxRate: number }>; - }>; - surcharges: Array<{ - id: string; - description: string; - sku?: string | null; - price: number; - priceWithTax: number; - }>; - shippingLines: Array<{ - priceWithTax: number; - shippingMethod: { id: string; code: string; name: string; description: string }; - }>; - shippingAddress?: { - fullName?: string | null; - company?: string | null; - streetLine1?: string | null; - streetLine2?: string | null; - city?: string | null; - province?: string | null; - postalCode?: string | null; - country?: string | null; - phoneNumber?: string | null; - } | null; - payments?: Array<{ - id: string; - transactionId?: string | null; - amount: number; - method: string; - state: string; - nextStates: Array; - metadata?: any | null; - refunds: Array<{ id: string; total: number; reason?: string | null }>; - }> | null; - fulfillments?: Array<{ - id: string; - state: string; - method: string; - trackingCode?: string | null; - lines: Array<{ orderLineId: string; quantity: number }>; - }> | null; - } - | { errorCode: ErrorCode; message: string }; -}; - -export type IdTest1QueryVariables = Exact<{ [key: string]: never }>; + orderId: Scalars['ID']; + shippingMethodId: Scalars['ID']; +}>; + + +export type SetDraftOrderShippingMethodMutation = { setDraftOrderShippingMethod: { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } | { id: string, createdAt: any, updatedAt: any, code: string, state: string, active: boolean, subTotal: number, subTotalWithTax: number, total: number, totalWithTax: number, totalQuantity: number, currencyCode: CurrencyCode, shipping: number, shippingWithTax: number, customer?: { id: string, firstName: string, lastName: string } | null, lines: Array<{ id: string, unitPrice: number, unitPriceWithTax: number, quantity: number, taxRate: number, linePriceWithTax: number, featuredAsset?: { preview: string } | null, productVariant: { id: string, name: string, sku: string }, taxLines: Array<{ description: string, taxRate: number }> }>, surcharges: Array<{ id: string, description: string, sku?: string | null, price: number, priceWithTax: number }>, shippingLines: Array<{ priceWithTax: number, shippingMethod: { id: string, code: string, name: string, description: string } }>, shippingAddress?: { fullName?: string | null, company?: string | null, streetLine1?: string | null, streetLine2?: string | null, city?: string | null, province?: string | null, postalCode?: string | null, country?: string | null, phoneNumber?: string | null } | null, payments?: Array<{ id: string, transactionId?: string | null, amount: number, method: string, state: string, nextStates: Array, metadata?: any | null, refunds: Array<{ id: string, total: number, reason?: string | null }> }> | null, fulfillments?: Array<{ id: string, state: string, method: string, trackingCode?: string | null, lines: Array<{ orderLineId: string, quantity: number }> }> | null } | { errorCode: ErrorCode, message: string } }; + +export type IdTest1QueryVariables = Exact<{ [key: string]: never; }>; + export type IdTest1Query = { products: { items: Array<{ id: string }> } }; -export type IdTest2QueryVariables = Exact<{ [key: string]: never }>; +export type IdTest2QueryVariables = Exact<{ [key: string]: never; }>; -export type IdTest2Query = { - products: { - items: Array<{ - id: string; - variants: Array<{ id: string; options: Array<{ id: string; name: string }> }>; - }>; - }; -}; -export type IdTest3QueryVariables = Exact<{ [key: string]: never }>; +export type IdTest2Query = { products: { items: Array<{ id: string, variants: Array<{ id: string, options: Array<{ id: string, name: string }> }> }> } }; + +export type IdTest3QueryVariables = Exact<{ [key: string]: never; }>; + export type IdTest3Query = { product?: { id: string } | null }; -export type IdTest4MutationVariables = Exact<{ [key: string]: never }>; +export type IdTest4MutationVariables = Exact<{ [key: string]: never; }>; + -export type IdTest4Mutation = { updateProduct: { id: string; featuredAsset?: { id: string } | null } }; +export type IdTest4Mutation = { updateProduct: { id: string, featuredAsset?: { id: string } | null } }; -export type IdTest5MutationVariables = Exact<{ [key: string]: never }>; +export type IdTest5MutationVariables = Exact<{ [key: string]: never; }>; -export type IdTest5Mutation = { updateProduct: { id: string; name: string } }; + +export type IdTest5Mutation = { updateProduct: { id: string, name: string } }; export type IdTest6QueryVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; + export type IdTest6Query = { product?: { id: string } | null }; export type IdTest7MutationVariables = Exact<{ - input: UpdateProductInput; + input: UpdateProductInput; }>; -export type IdTest7Mutation = { updateProduct: { id: string; featuredAsset?: { id: string } | null } }; + +export type IdTest7Mutation = { updateProduct: { id: string, featuredAsset?: { id: string } | null } }; export type IdTest8MutationVariables = Exact<{ - input: UpdateProductInput; + input: UpdateProductInput; }>; -export type IdTest8Mutation = { updateProduct: { id: string; name: string } }; -export type IdTest9QueryVariables = Exact<{ [key: string]: never }>; +export type IdTest8Mutation = { updateProduct: { id: string, name: string } }; -export type IdTest9Query = { - products: { items: Array<{ id: string; featuredAsset?: { id: string } | null }> }; -}; +export type IdTest9QueryVariables = Exact<{ [key: string]: never; }>; -export type ProdFragmentFragment = { id: string; featuredAsset?: { id: string } | null }; -export type IdTest10QueryVariables = Exact<{ [key: string]: never }>; +export type IdTest9Query = { products: { items: Array<{ id: string, featuredAsset?: { id: string } | null }> } }; -export type IdTest10Query = { - products: { items: Array<{ id: string; featuredAsset?: { id: string } | null }> }; -}; +export type ProdFragmentFragment = { id: string, featuredAsset?: { id: string } | null }; -export type ProdFragment1Fragment = { id: string; featuredAsset?: { id: string } | null }; +export type IdTest10QueryVariables = Exact<{ [key: string]: never; }>; -export type ProdFragment2Fragment = { id: string; featuredAsset?: { id: string } | null }; -export type IdTest11QueryVariables = Exact<{ [key: string]: never }>; +export type IdTest10Query = { products: { items: Array<{ id: string, featuredAsset?: { id: string } | null }> } }; -export type IdTest11Query = { - products: { items: Array<{ id: string; featuredAsset?: { id: string } | null }> }; -}; +export type ProdFragment1Fragment = { id: string, featuredAsset?: { id: string } | null }; + +export type ProdFragment2Fragment = { id: string, featuredAsset?: { id: string } | null }; + +export type IdTest11QueryVariables = Exact<{ [key: string]: never; }>; -export type ProdFragment1_1Fragment = { id: string; featuredAsset?: { id: string } | null }; -export type ProdFragment2_1Fragment = { id: string; featuredAsset?: { id: string } | null }; +export type IdTest11Query = { products: { items: Array<{ id: string, featuredAsset?: { id: string } | null }> } }; -export type ProdFragment3_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 ProdFragment3_1Fragment = { id: string, featuredAsset?: { id: string } | null }; export type GetFacetWithValuesQueryVariables = Exact<{ - id: Scalars['ID']; -}>; - -export type GetFacetWithValuesQuery = { - facet?: { - id: string; - languageCode: LanguageCode; - isPrivate: boolean; - code: string; - name: string; - translations: Array<{ id: string; languageCode: LanguageCode; name: string }>; - values: Array<{ - id: string; - languageCode: LanguageCode; - code: string; - name: string; - translations: Array<{ id: string; languageCode: LanguageCode; name: string }>; - facet: { id: string; name: string }; - }>; - } | null; -}; + id: Scalars['ID']; +}>; + + +export type GetFacetWithValuesQuery = { facet?: { id: string, languageCode: LanguageCode, isPrivate: boolean, code: string, name: string, translations: Array<{ id: string, languageCode: LanguageCode, name: string }>, values: Array<{ id: string, languageCode: LanguageCode, code: string, name: string, translations: Array<{ id: string, languageCode: LanguageCode, name: string }>, facet: { id: string, name: string } }> } | null }; export type DeleteFacetValuesMutationVariables = Exact<{ - ids: Array | Scalars['ID']; - force?: InputMaybe; + ids: Array | Scalars['ID']; + force?: InputMaybe; }>; -export type DeleteFacetValuesMutation = { - deleteFacetValues: Array<{ result: DeletionResult; message?: string | null }>; -}; + +export type DeleteFacetValuesMutation = { deleteFacetValues: Array<{ result: DeletionResult, message?: string | null }> }; export type DeleteFacetMutationVariables = Exact<{ - id: Scalars['ID']; - force?: InputMaybe; + id: Scalars['ID']; + force?: InputMaybe; }>; -export type DeleteFacetMutation = { deleteFacet: { result: DeletionResult; message?: string | null } }; + +export type DeleteFacetMutation = { deleteFacet: { result: DeletionResult, message?: string | null } }; export type GetProductWithFacetValuesQueryVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; -export type GetProductWithFacetValuesQuery = { - product?: { - id: string; - facetValues: Array<{ id: string; name: string; code: string }>; - variants: Array<{ id: string; facetValues: Array<{ id: string; name: string; code: string }> }>; - } | null; -}; -export type GetProductListWithVariantsQueryVariables = Exact<{ [key: string]: never }>; +export type GetProductWithFacetValuesQuery = { product?: { id: string, facetValues: Array<{ id: string, name: string, code: string }>, variants: Array<{ id: string, facetValues: Array<{ id: string, name: string, code: string }> }> } | null }; -export type GetProductListWithVariantsQuery = { - products: { - totalItems: number; - items: Array<{ id: string; name: string; variants: Array<{ id: string; name: string }> }>; - }; -}; +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 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 PaymentFragment = { - id: string; - transactionId?: string | null; - amount: number; - method: string; - state: string; - nextStates: Array; - metadata?: any | null; - refunds: Array<{ id: string; total: number; reason?: string | null }>; -}; - -export type OrderWithLinesFragment = { - id: string; - createdAt: any; - updatedAt: any; - code: string; - state: string; - active: boolean; - subTotal: number; - subTotalWithTax: number; - total: number; - totalWithTax: number; - totalQuantity: number; - currencyCode: CurrencyCode; - shipping: number; - shippingWithTax: number; - customer?: { id: string; firstName: string; lastName: string } | null; - lines: Array<{ - id: string; - unitPrice: number; - unitPriceWithTax: number; - quantity: number; - taxRate: number; - linePriceWithTax: number; - featuredAsset?: { preview: string } | null; - productVariant: { id: string; name: string; sku: string }; - taxLines: Array<{ description: string; taxRate: number }>; - }>; - surcharges: Array<{ - id: string; - description: string; - sku?: string | null; - price: number; - priceWithTax: number; - }>; - shippingLines: Array<{ - priceWithTax: number; - shippingMethod: { id: string; code: string; name: string; description: string }; - }>; - shippingAddress?: { - fullName?: string | null; - company?: string | null; - streetLine1?: string | null; - streetLine2?: string | null; - city?: string | null; - province?: string | null; - postalCode?: string | null; - country?: string | null; - phoneNumber?: string | null; - } | null; - payments?: Array<{ - id: string; - transactionId?: string | null; - amount: number; - method: string; - state: string; - nextStates: Array; - metadata?: any | null; - refunds: Array<{ id: string; total: number; reason?: string | null }>; - }> | null; - fulfillments?: Array<{ - id: string; - state: string; - method: string; - trackingCode?: string | null; - lines: Array<{ orderLineId: string; quantity: number }>; - }> | null; -}; - -export type PromotionFragment = { - id: string; - createdAt: any; - updatedAt: any; - couponCode?: string | null; - startsAt?: any | null; - endsAt?: any | null; - name: string; - enabled: boolean; - conditions: Array<{ code: string; args: Array<{ name: string; value: string }> }>; - actions: Array<{ code: string; args: Array<{ name: string; value: string }> }>; -}; - -export type ZoneFragment = { - id: string; - name: string; - members: Array<{ - id: string; - code: string; - name: string; - enabled: boolean; - translations: Array<{ id: string; languageCode: LanguageCode; name: string }>; - }>; -}; - -export type TaxRateFragment = { - id: string; - name: string; - enabled: boolean; - value: number; - category: { id: string; name: string }; - zone: { id: string; name: string }; - customerGroup?: { id: string; name: string } | null; -}; - -export type CurrentUserFragment = { - id: string; - identifier: string; - channels: Array<{ code: string; token: string; permissions: Array }>; -}; - -export type VariantWithStockFragment = { - id: string; - stockOnHand: number; - stockAllocated: number; - stockMovements: { - totalItems: number; - items: Array< - | { id: string; type: StockMovementType; quantity: number } - | { id: string; type: StockMovementType; quantity: number } - | { id: string; type: StockMovementType; quantity: number } - | { id: string; type: StockMovementType; quantity: number } - | { id: string; type: StockMovementType; quantity: number } - | { id: string; type: StockMovementType; quantity: number } - >; - }; -}; - -export type FulfillmentFragment = { - id: string; - state: string; - nextStates: Array; - method: string; - trackingCode?: string | null; - lines: Array<{ orderLineId: string; quantity: number }>; -}; - -export type ChannelFragment = { - id: string; - code: string; - token: string; - currencyCode: CurrencyCode; - defaultLanguageCode: LanguageCode; - pricesIncludeTax: boolean; - defaultShippingZone?: { id: string } | null; - defaultTaxZone?: { id: string } | null; -}; - -export type GlobalSettingsFragment = { - id: string; - availableLanguages: Array; - trackInventory: boolean; - outOfStockThreshold: number; - serverConfig: { - permittedAssetTypes: Array; - orderProcess: Array<{ name: string; to: Array }>; - permissions: Array<{ name: string; description: string; assignable: boolean }>; - customFieldConfig: { - Customer: Array< - | { name: string } - | { name: string } - | { name: string } - | { name: string } - | { name: string } - | { name: string } - | { name: string } - | { name: string } - >; - }; - }; -}; - -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 PaymentFragment = { id: string, transactionId?: string | null, amount: number, method: string, state: string, nextStates: Array, metadata?: any | null, refunds: Array<{ id: string, total: number, reason?: string | null }> }; + +export type OrderWithLinesFragment = { id: string, createdAt: any, updatedAt: any, code: string, state: string, active: boolean, subTotal: number, subTotalWithTax: number, total: number, totalWithTax: number, totalQuantity: number, currencyCode: CurrencyCode, shipping: number, shippingWithTax: number, customer?: { id: string, firstName: string, lastName: string } | null, lines: Array<{ id: string, unitPrice: number, unitPriceWithTax: number, quantity: number, taxRate: number, linePriceWithTax: number, featuredAsset?: { preview: string } | null, productVariant: { id: string, name: string, sku: string }, taxLines: Array<{ description: string, taxRate: number }> }>, surcharges: Array<{ id: string, description: string, sku?: string | null, price: number, priceWithTax: number }>, shippingLines: Array<{ priceWithTax: number, shippingMethod: { id: string, code: string, name: string, description: string } }>, shippingAddress?: { fullName?: string | null, company?: string | null, streetLine1?: string | null, streetLine2?: string | null, city?: string | null, province?: string | null, postalCode?: string | null, country?: string | null, phoneNumber?: string | null } | null, payments?: Array<{ id: string, transactionId?: string | null, amount: number, method: string, state: string, nextStates: Array, metadata?: any | null, refunds: Array<{ id: string, total: number, reason?: string | null }> }> | null, fulfillments?: Array<{ id: string, state: string, method: string, trackingCode?: string | null, lines: Array<{ orderLineId: string, quantity: number }> }> | null }; + +export type PromotionFragment = { id: string, createdAt: any, updatedAt: any, couponCode?: string | null, startsAt?: any | null, endsAt?: any | null, name: string, enabled: boolean, conditions: Array<{ code: string, args: Array<{ name: string, value: string }> }>, actions: Array<{ code: string, args: Array<{ name: string, value: string }> }> }; + +export type ZoneFragment = { id: string, name: string, members: Array<{ id: string, code: string, name: string, enabled: boolean, translations: Array<{ id: string, languageCode: LanguageCode, name: string }> }> }; + +export type TaxRateFragment = { id: string, name: string, enabled: boolean, value: number, category: { id: string, name: string }, zone: { id: string, name: string }, customerGroup?: { id: string, name: string } | null }; + +export type CurrentUserFragment = { id: string, identifier: string, channels: Array<{ code: string, token: string, permissions: Array }> }; + +export type VariantWithStockFragment = { id: string, stockOnHand: number, stockAllocated: number, stockMovements: { totalItems: number, items: Array<{ id: string, type: StockMovementType, quantity: number } | { id: string, type: StockMovementType, quantity: number } | { id: string, type: StockMovementType, quantity: number } | { id: string, type: StockMovementType, quantity: number } | { id: string, type: StockMovementType, quantity: number } | { id: string, type: StockMovementType, quantity: number }> } }; + +export type FulfillmentFragment = { id: string, state: string, nextStates: Array, method: string, trackingCode?: string | null, lines: Array<{ orderLineId: string, quantity: number }> }; + +export type ChannelFragment = { id: string, code: string, token: string, currencyCode: CurrencyCode, defaultLanguageCode: LanguageCode, pricesIncludeTax: boolean, defaultShippingZone?: { id: string } | null, defaultTaxZone?: { id: string } | null }; + +export type GlobalSettingsFragment = { id: string, availableLanguages: Array, trackInventory: boolean, outOfStockThreshold: number, serverConfig: { permittedAssetTypes: Array, orderProcess: Array<{ name: string, to: Array }>, permissions: Array<{ name: string, description: string, assignable: boolean }>, customFieldConfig: { Customer: Array<{ name: string } | { name: string } | { name: string } | { name: string } | { name: string } | { name: string } | { name: string } | { name: string }> } } }; + +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 }>; - } - | { errorCode: ErrorCode; message: string } - | { errorCode: ErrorCode; message: string }; -}; + +export type AttemptLoginMutation = { login: { id: string, identifier: string, channels: Array<{ code: string, token: string, permissions: Array }> } | { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } }; export type GetCountryListQueryVariables = Exact<{ - options?: InputMaybe; + options?: InputMaybe; }>; -export type GetCountryListQuery = { - countries: { - totalItems: number; - items: Array<{ id: string; code: string; name: string; enabled: boolean }>; - }; -}; + +export type GetCountryListQuery = { countries: { totalItems: number, items: Array<{ id: string, code: string, name: string, enabled: boolean }> } }; export type UpdateCountryMutationVariables = Exact<{ - input: UpdateCountryInput; + input: UpdateCountryInput; }>; -export type UpdateCountryMutation = { - updateCountry: { - id: string; - code: string; - name: string; - enabled: boolean; - translations: Array<{ id: string; languageCode: LanguageCode; name: string }>; - }; -}; + +export type UpdateCountryMutation = { updateCountry: { id: string, code: string, name: string, enabled: boolean, translations: Array<{ id: string, languageCode: LanguageCode, name: string }> } }; export type GetFacetListQueryVariables = Exact<{ - options?: InputMaybe; -}>; - -export type GetFacetListQuery = { - facets: { - totalItems: number; - items: Array<{ - id: string; - languageCode: LanguageCode; - isPrivate: boolean; - code: string; - name: string; - translations: Array<{ id: string; languageCode: LanguageCode; name: string }>; - values: Array<{ - id: string; - languageCode: LanguageCode; - code: string; - name: string; - translations: Array<{ id: string; languageCode: LanguageCode; name: string }>; - facet: { id: string; name: string }; - }>; - }>; - }; -}; + options?: InputMaybe; +}>; + + +export type GetFacetListQuery = { facets: { totalItems: number, items: Array<{ id: string, languageCode: LanguageCode, isPrivate: boolean, code: string, name: string, translations: Array<{ id: string, languageCode: LanguageCode, name: string }>, values: Array<{ id: string, languageCode: LanguageCode, code: string, name: string, translations: Array<{ id: string, languageCode: LanguageCode, name: string }>, facet: { id: string, name: string } }> }> } }; export type GetFacetListSimpleQueryVariables = Exact<{ - options?: InputMaybe; + options?: InputMaybe; }>; -export type GetFacetListSimpleQuery = { - facets: { totalItems: number; items: Array<{ id: string; name: string }> }; -}; + +export type GetFacetListSimpleQuery = { facets: { totalItems: number, items: Array<{ id: string, name: string }> } }; export type DeleteProductMutationVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; + export type DeleteProductMutation = { deleteProduct: { result: DeletionResult } }; export type GetProductSimpleQueryVariables = Exact<{ - id?: InputMaybe; - slug?: InputMaybe; + id?: InputMaybe; + slug?: InputMaybe; }>; -export type GetProductSimpleQuery = { product?: { id: string; slug: string } | null }; + +export type GetProductSimpleQuery = { product?: { id: string, slug: string } | null }; export type GetStockMovementQueryVariables = Exact<{ - id: Scalars['ID']; -}>; - -export type GetStockMovementQuery = { - product?: { - id: string; - variants: Array<{ - id: string; - stockOnHand: number; - stockAllocated: number; - stockMovements: { - totalItems: number; - items: Array< - | { id: string; type: StockMovementType; quantity: number } - | { id: string; type: StockMovementType; quantity: number } - | { id: string; type: StockMovementType; quantity: number } - | { id: string; type: StockMovementType; quantity: number } - | { id: string; type: StockMovementType; quantity: number } - | { id: string; type: StockMovementType; quantity: number } - >; - }; - }>; - } | null; -}; + id: Scalars['ID']; +}>; + + +export type GetStockMovementQuery = { product?: { id: string, variants: Array<{ id: string, stockOnHand: number, stockAllocated: number, stockMovements: { totalItems: number, items: Array<{ id: string, type: StockMovementType, quantity: number } | { id: string, type: StockMovementType, quantity: number } | { id: string, type: StockMovementType, quantity: number } | { id: string, type: StockMovementType, quantity: number } | { id: string, type: StockMovementType, quantity: number } | { id: string, type: StockMovementType, quantity: number }> } }> } | null }; export type GetRunningJobsQueryVariables = Exact<{ - options?: InputMaybe; + options?: InputMaybe; }>; -export type GetRunningJobsQuery = { - jobs: { - totalItems: number; - items: Array<{ - id: string; - queueName: string; - state: JobState; - isSettled: boolean; - duration: number; - }>; - }; -}; + +export type GetRunningJobsQuery = { jobs: { totalItems: number, items: Array<{ id: string, queueName: string, state: JobState, isSettled: boolean, duration: number }> } }; export type CreatePromotionMutationVariables = Exact<{ - input: CreatePromotionInput; + input: CreatePromotionInput; }>; -export type CreatePromotionMutation = { - createPromotion: - | { errorCode: ErrorCode; message: string } - | { - id: string; - createdAt: any; - updatedAt: any; - couponCode?: string | null; - startsAt?: any | null; - endsAt?: any | null; - name: string; - enabled: boolean; - conditions: Array<{ code: string; args: Array<{ name: string; value: string }> }>; - actions: Array<{ code: string; args: Array<{ name: string; value: string }> }>; - }; -}; -export type MeQueryVariables = Exact<{ [key: string]: never }>; +export type CreatePromotionMutation = { createPromotion: { errorCode: ErrorCode, message: string } | { id: string, createdAt: any, updatedAt: any, couponCode?: string | null, startsAt?: any | null, endsAt?: any | null, name: string, 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 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; - taxRate: number; - linePriceWithTax: number; - featuredAsset?: { preview: string } | null; - productVariant: { id: string; name: string; sku: string }; - taxLines: Array<{ description: string; taxRate: number }>; - }>; - surcharges: Array<{ - id: string; - description: string; - sku?: string | null; - price: number; - priceWithTax: number; - }>; - shippingLines: Array<{ - priceWithTax: number; - shippingMethod: { id: string; code: string; name: string; description: string }; - }>; - shippingAddress?: { - fullName?: string | null; - company?: string | null; - streetLine1?: string | null; - streetLine2?: string | null; - city?: string | null; - province?: string | null; - postalCode?: string | null; - country?: string | null; - phoneNumber?: string | null; - } | null; - payments?: Array<{ - id: string; - transactionId?: string | null; - amount: number; - method: string; - state: string; - nextStates: Array; - metadata?: any | null; - refunds: Array<{ id: string; total: number; reason?: string | null }>; - }> | null; - fulfillments?: Array<{ - id: string; - state: string; - method: string; - trackingCode?: string | null; - lines: Array<{ orderLineId: string; quantity: number }>; - }> | null; - } | null; -}; + id: Scalars['ID']; +}>; + + +export type GetOrderQuery = { order?: { id: string, createdAt: any, updatedAt: any, code: string, state: string, active: boolean, subTotal: number, subTotalWithTax: number, total: number, totalWithTax: number, totalQuantity: number, currencyCode: CurrencyCode, shipping: number, shippingWithTax: number, customer?: { id: string, firstName: string, lastName: string } | null, lines: Array<{ id: string, unitPrice: number, unitPriceWithTax: number, quantity: number, taxRate: number, linePriceWithTax: number, featuredAsset?: { preview: string } | null, productVariant: { id: string, name: string, sku: string }, taxLines: Array<{ description: string, taxRate: number }> }>, surcharges: Array<{ id: string, description: string, sku?: string | null, price: number, priceWithTax: number }>, shippingLines: Array<{ priceWithTax: number, shippingMethod: { id: string, code: string, name: string, description: string } }>, shippingAddress?: { fullName?: string | null, company?: string | null, streetLine1?: string | null, streetLine2?: string | null, city?: string | null, province?: string | null, postalCode?: string | null, country?: string | null, phoneNumber?: string | null } | null, payments?: Array<{ id: string, transactionId?: string | null, amount: number, method: string, state: string, nextStates: Array, metadata?: any | null, refunds: Array<{ id: string, total: number, reason?: string | null }> }> | null, fulfillments?: Array<{ id: string, state: string, method: string, trackingCode?: string | null, lines: Array<{ orderLineId: string, quantity: number }> }> | null } | null }; export type CreateCustomerGroupMutationVariables = Exact<{ - input: CreateCustomerGroupInput; + input: CreateCustomerGroupInput; }>; -export type CreateCustomerGroupMutation = { - createCustomerGroup: { - id: string; - name: string; - customers: { totalItems: number; items: Array<{ id: string }> }; - }; -}; + +export type CreateCustomerGroupMutation = { createCustomerGroup: { id: string, name: string, customers: { totalItems: number, items: Array<{ id: string }> } } }; export type RemoveCustomersFromGroupMutationVariables = Exact<{ - groupId: Scalars['ID']; - customerIds: Array | Scalars['ID']; + groupId: Scalars['ID']; + customerIds: Array | Scalars['ID']; }>; -export type RemoveCustomersFromGroupMutation = { - removeCustomersFromGroup: { - id: string; - name: string; - customers: { totalItems: number; items: Array<{ id: string }> }; - }; -}; + +export type RemoveCustomersFromGroupMutation = { removeCustomersFromGroup: { id: string, name: string, customers: { totalItems: number, items: Array<{ id: string }> } } }; export type CreateFulfillmentMutationVariables = Exact<{ - input: FulfillOrderInput; -}>; - -export type CreateFulfillmentMutation = { - addFulfillmentToOrder: - | { errorCode: ErrorCode; message: string; fulfillmentHandlerError: string } - | { errorCode: ErrorCode; message: string } - | { - id: string; - state: string; - nextStates: Array; - method: string; - trackingCode?: string | null; - lines: Array<{ orderLineId: string; quantity: number }>; - } - | { errorCode: ErrorCode; message: string } - | { errorCode: ErrorCode; message: string } - | { errorCode: ErrorCode; message: string } - | { errorCode: ErrorCode; message: string }; -}; + input: FulfillOrderInput; +}>; + + +export type CreateFulfillmentMutation = { addFulfillmentToOrder: { errorCode: ErrorCode, message: string, fulfillmentHandlerError: string } | { errorCode: ErrorCode, message: string } | { id: string, state: string, nextStates: Array, method: string, trackingCode?: string | null, lines: Array<{ orderLineId: string, quantity: number }> } | { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } }; export type TransitFulfillmentMutationVariables = Exact<{ - id: Scalars['ID']; - state: Scalars['String']; -}>; - -export type TransitFulfillmentMutation = { - transitionFulfillmentToState: - | { - id: string; - state: string; - nextStates: Array; - method: string; - trackingCode?: string | null; - lines: Array<{ orderLineId: string; quantity: number }>; - } - | { - errorCode: ErrorCode; - message: string; - transitionError: string; - fromState: string; - toState: string; - }; -}; + id: Scalars['ID']; + state: Scalars['String']; +}>; + + +export type TransitFulfillmentMutation = { transitionFulfillmentToState: { id: string, state: string, nextStates: Array, method: string, trackingCode?: string | null, lines: Array<{ orderLineId: string, quantity: number }> } | { errorCode: ErrorCode, message: string, transitionError: string, fromState: string, toState: string } }; export type GetOrderFulfillmentsQueryVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; -export type GetOrderFulfillmentsQuery = { - order?: { - id: string; - state: string; - fulfillments?: Array<{ - id: string; - state: string; - nextStates: Array; - method: string; - summary: Array<{ quantity: number; orderLine: { id: string } }>; - }> | null; - } | null; -}; + +export type GetOrderFulfillmentsQuery = { order?: { id: string, state: string, fulfillments?: Array<{ id: string, state: string, nextStates: Array, method: string, summary: Array<{ quantity: number, orderLine: { id: string } }> }> | null } | null }; export type GetOrderListQueryVariables = Exact<{ - options?: InputMaybe; -}>; - -export type GetOrderListQuery = { - orders: { - totalItems: number; - items: Array<{ - id: string; - createdAt: any; - updatedAt: any; - code: string; - active: boolean; - state: string; - total: number; - totalWithTax: number; - totalQuantity: number; - currencyCode: CurrencyCode; - customer?: { id: string; firstName: string; lastName: string } | null; - }>; - }; -}; + options?: InputMaybe; +}>; + + +export type GetOrderListQuery = { orders: { totalItems: number, items: Array<{ id: string, createdAt: any, updatedAt: any, code: string, active: boolean, state: string, total: number, totalWithTax: number, totalQuantity: number, currencyCode: CurrencyCode, customer?: { id: string, firstName: string, lastName: string } | null }> } }; export type CreateAddressMutationVariables = Exact<{ - id: Scalars['ID']; - input: CreateAddressInput; -}>; - -export type CreateAddressMutation = { - createCustomerAddress: { - id: string; - fullName?: string | null; - company?: string | null; - streetLine1: string; - streetLine2?: string | null; - city?: string | null; - province?: string | null; - postalCode?: string | null; - phoneNumber?: string | null; - defaultShippingAddress?: boolean | null; - defaultBillingAddress?: boolean | null; - country: { code: string; name: string }; - }; -}; + id: Scalars['ID']; + input: CreateAddressInput; +}>; + + +export type CreateAddressMutation = { createCustomerAddress: { id: string, fullName?: string | null, company?: string | null, streetLine1: string, streetLine2?: string | null, city?: string | null, province?: string | null, postalCode?: string | null, phoneNumber?: string | null, defaultShippingAddress?: boolean | null, defaultBillingAddress?: boolean | null, country: { code: string, name: string } } }; export type UpdateAddressMutationVariables = Exact<{ - input: UpdateAddressInput; + input: UpdateAddressInput; }>; -export type UpdateAddressMutation = { - updateCustomerAddress: { - id: string; - defaultShippingAddress?: boolean | null; - defaultBillingAddress?: boolean | null; - country: { code: string; name: string }; - }; -}; + +export type UpdateAddressMutation = { updateCustomerAddress: { id: string, defaultShippingAddress?: boolean | null, defaultBillingAddress?: boolean | null, country: { code: string, name: string } } }; export type CreateCustomerMutationVariables = Exact<{ - input: CreateCustomerInput; - password?: InputMaybe; -}>; - -export type CreateCustomerMutation = { - createCustomer: - | { - id: string; - title?: string | null; - firstName: string; - lastName: string; - phoneNumber?: string | null; - emailAddress: string; - user?: { id: string; identifier: string; verified: boolean; lastLogin?: any | null } | null; - addresses?: Array<{ - id: string; - fullName?: string | null; - company?: string | null; - streetLine1: string; - streetLine2?: string | null; - city?: string | null; - province?: string | null; - postalCode?: string | null; - phoneNumber?: string | null; - defaultShippingAddress?: boolean | null; - defaultBillingAddress?: boolean | null; - country: { id: string; code: string; name: string }; - }> | null; - } - | { errorCode: ErrorCode; message: string }; -}; + input: CreateCustomerInput; + password?: InputMaybe; +}>; + + +export type CreateCustomerMutation = { createCustomer: { id: string, title?: string | null, firstName: string, lastName: string, phoneNumber?: string | null, emailAddress: string, user?: { id: string, identifier: string, verified: boolean, lastLogin?: any | null } | null, addresses?: Array<{ id: string, fullName?: string | null, company?: string | null, streetLine1: string, streetLine2?: string | null, city?: string | null, province?: string | null, postalCode?: string | null, phoneNumber?: string | null, defaultShippingAddress?: boolean | null, defaultBillingAddress?: boolean | null, country: { id: string, code: string, name: string } }> | null } | { errorCode: ErrorCode, message: string } }; export type UpdateCustomerMutationVariables = Exact<{ - input: UpdateCustomerInput; -}>; - -export type UpdateCustomerMutation = { - updateCustomer: - | { - id: string; - title?: string | null; - firstName: string; - lastName: string; - phoneNumber?: string | null; - emailAddress: string; - user?: { id: string; identifier: string; verified: boolean; lastLogin?: any | null } | null; - addresses?: Array<{ - id: string; - fullName?: string | null; - company?: string | null; - streetLine1: string; - streetLine2?: string | null; - city?: string | null; - province?: string | null; - postalCode?: string | null; - phoneNumber?: string | null; - defaultShippingAddress?: boolean | null; - defaultBillingAddress?: boolean | null; - country: { id: string; code: string; name: string }; - }> | null; - } - | { errorCode: ErrorCode; message: string }; -}; + input: UpdateCustomerInput; +}>; + + +export type UpdateCustomerMutation = { updateCustomer: { id: string, title?: string | null, firstName: string, lastName: string, phoneNumber?: string | null, emailAddress: string, user?: { id: string, identifier: string, verified: boolean, lastLogin?: any | null } | null, addresses?: Array<{ id: string, fullName?: string | null, company?: string | null, streetLine1: string, streetLine2?: string | null, city?: string | null, province?: string | null, postalCode?: string | null, phoneNumber?: string | null, defaultShippingAddress?: boolean | null, defaultBillingAddress?: boolean | null, country: { id: string, code: string, name: string } }> | null } | { errorCode: ErrorCode, message: string } }; export type DeleteCustomerMutationVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; + export type DeleteCustomerMutation = { deleteCustomer: { result: DeletionResult } }; export type UpdateCustomerNoteMutationVariables = Exact<{ - input: UpdateCustomerNoteInput; + input: UpdateCustomerNoteInput; }>; -export type UpdateCustomerNoteMutation = { updateCustomerNote: { id: string; data: any; isPublic: boolean } }; + +export type UpdateCustomerNoteMutation = { updateCustomerNote: { id: string, data: any, isPublic: boolean } }; export type DeleteCustomerNoteMutationVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; -export type DeleteCustomerNoteMutation = { - deleteCustomerNote: { result: DeletionResult; message?: string | null }; -}; + +export type DeleteCustomerNoteMutation = { deleteCustomerNote: { result: DeletionResult, message?: string | null } }; export type UpdateCustomerGroupMutationVariables = Exact<{ - input: UpdateCustomerGroupInput; + input: UpdateCustomerGroupInput; }>; -export type UpdateCustomerGroupMutation = { - updateCustomerGroup: { - id: string; - name: string; - customers: { totalItems: number; items: Array<{ id: string }> }; - }; -}; + +export type UpdateCustomerGroupMutation = { updateCustomerGroup: { id: string, name: string, customers: { totalItems: number, items: Array<{ id: string }> } } }; export type DeleteCustomerGroupMutationVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; -export type DeleteCustomerGroupMutation = { - deleteCustomerGroup: { result: DeletionResult; message?: string | null }; -}; + +export type DeleteCustomerGroupMutation = { deleteCustomerGroup: { result: DeletionResult, message?: string | null } }; export type GetCustomerGroupsQueryVariables = Exact<{ - options?: InputMaybe; + options?: InputMaybe; }>; -export type GetCustomerGroupsQuery = { - customerGroups: { totalItems: number; items: Array<{ id: string; name: string }> }; -}; + +export type GetCustomerGroupsQuery = { customerGroups: { totalItems: number, items: Array<{ id: string, name: string }> } }; export type GetCustomerGroupQueryVariables = Exact<{ - id: Scalars['ID']; - options?: InputMaybe; + id: Scalars['ID']; + options?: InputMaybe; }>; -export type GetCustomerGroupQuery = { - customerGroup?: { - id: string; - name: string; - customers: { totalItems: number; items: Array<{ id: string }> }; - } | null; -}; + +export type GetCustomerGroupQuery = { customerGroup?: { id: string, name: string, customers: { totalItems: number, items: Array<{ id: string }> } } | null }; export type AddCustomersToGroupMutationVariables = Exact<{ - groupId: Scalars['ID']; - customerIds: Array | Scalars['ID']; + groupId: Scalars['ID']; + customerIds: Array | Scalars['ID']; }>; -export type AddCustomersToGroupMutation = { - addCustomersToGroup: { - id: string; - name: string; - customers: { totalItems: number; items: Array<{ id: string }> }; - }; -}; + +export type AddCustomersToGroupMutation = { addCustomersToGroup: { id: string, name: string, customers: { totalItems: number, items: Array<{ id: string }> } } }; export type GetCustomerWithGroupsQueryVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; -export type GetCustomerWithGroupsQuery = { - customer?: { id: string; groups: Array<{ id: string; name: string }> } | null; -}; + +export type GetCustomerWithGroupsQuery = { customer?: { id: string, groups: Array<{ id: string, name: string }> } | null }; export type AdminTransitionMutationVariables = Exact<{ - id: Scalars['ID']; - state: Scalars['String']; -}>; - -export type AdminTransitionMutation = { - transitionOrderToState?: - | { - id: string; - createdAt: any; - updatedAt: any; - code: string; - active: boolean; - state: string; - total: number; - totalWithTax: number; - totalQuantity: number; - currencyCode: CurrencyCode; - customer?: { id: string; firstName: string; lastName: string } | null; - } - | { - errorCode: ErrorCode; - message: string; - transitionError: string; - fromState: string; - toState: string; - } - | null; -}; + id: Scalars['ID']; + state: Scalars['String']; +}>; + + +export type AdminTransitionMutation = { transitionOrderToState?: { id: string, createdAt: any, updatedAt: any, code: string, active: boolean, state: string, total: number, totalWithTax: number, totalQuantity: number, currencyCode: CurrencyCode, customer?: { id: string, firstName: string, lastName: string } | null } | { errorCode: ErrorCode, message: string, transitionError: string, fromState: string, toState: string } | null }; export type CancelOrderMutationVariables = Exact<{ - input: CancelOrderInput; + input: CancelOrderInput; }>; -export type CancelOrderMutation = { - cancelOrder: - | { errorCode: ErrorCode; message: string } - | { errorCode: ErrorCode; message: string } - | { errorCode: ErrorCode; message: string } - | { id: string; state: string; lines: Array<{ id: string; quantity: number }> } - | { errorCode: ErrorCode; message: string } - | { errorCode: ErrorCode; message: string }; -}; -export type CanceledOrderFragment = { - id: string; - state: string; - lines: Array<{ id: string; quantity: number }>; -}; +export type CancelOrderMutation = { cancelOrder: { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } | { id: string, state: string, lines: Array<{ id: string, quantity: number }> } | { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } }; + +export type CanceledOrderFragment = { id: string, state: string, lines: Array<{ id: string, quantity: number }> }; export type UpdateGlobalSettingsMutationVariables = Exact<{ - input: UpdateGlobalSettingsInput; -}>; - -export type UpdateGlobalSettingsMutation = { - updateGlobalSettings: - | { errorCode: ErrorCode; message: string } - | { - id: string; - availableLanguages: Array; - trackInventory: boolean; - outOfStockThreshold: number; - serverConfig: { - permittedAssetTypes: Array; - orderProcess: Array<{ name: string; to: Array }>; - permissions: Array<{ name: string; description: string; assignable: boolean }>; - customFieldConfig: { - Customer: Array< - | { name: string } - | { name: string } - | { name: string } - | { name: string } - | { name: string } - | { name: string } - | { name: string } - | { name: string } - >; - }; - }; - }; -}; + 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 GetProductsWithVariantPricesQueryVariables = Exact<{ [key: string]: never }>; +export type UpdateRoleMutation = { updateRole: { id: string, code: string, description: string, permissions: Array, channels: Array<{ id: string, code: string, token: string }> } }; + +export type GetProductsWithVariantPricesQueryVariables = Exact<{ [key: string]: never; }>; -export type GetProductsWithVariantPricesQuery = { - products: { - items: Array<{ - id: string; - slug: string; - variants: Array<{ - id: string; - price: number; - priceWithTax: number; - sku: string; - facetValues: Array<{ id: string; code: string }>; - }>; - }>; - }; -}; + +export type GetProductsWithVariantPricesQuery = { products: { items: Array<{ id: string, slug: string, variants: Array<{ id: string, price: number, priceWithTax: number, sku: string, facetValues: Array<{ id: string, code: string }> }> }> } }; export type CreateProductOptionGroupMutationVariables = Exact<{ - input: CreateProductOptionGroupInput; + input: CreateProductOptionGroupInput; }>; -export type CreateProductOptionGroupMutation = { - createProductOptionGroup: { - id: string; - code: string; - name: string; - options: Array<{ id: string; code: string; name: string }>; - translations: Array<{ id: string; languageCode: LanguageCode; name: string }>; - }; -}; + +export type CreateProductOptionGroupMutation = { createProductOptionGroup: { id: string, code: string, name: string, options: Array<{ id: string, code: string, name: string }>, translations: Array<{ id: string, languageCode: LanguageCode, name: string }> } }; export type AddOptionGroupToProductMutationVariables = Exact<{ - productId: Scalars['ID']; - optionGroupId: Scalars['ID']; + productId: Scalars['ID']; + optionGroupId: Scalars['ID']; }>; -export type AddOptionGroupToProductMutation = { - addOptionGroupToProduct: { - id: string; - optionGroups: Array<{ id: string; code: string; options: Array<{ id: string; code: string }> }>; - }; -}; + +export type AddOptionGroupToProductMutation = { addOptionGroupToProduct: { id: string, optionGroups: Array<{ id: string, code: string, options: Array<{ id: string, code: string }> }> } }; export type CreateShippingMethodMutationVariables = Exact<{ - input: CreateShippingMethodInput; + input: CreateShippingMethodInput; }>; -export type CreateShippingMethodMutation = { - createShippingMethod: { - id: string; - code: string; - name: string; - description: string; - calculator: { code: string; args: Array<{ name: string; value: string }> }; - checker: { code: string; args: Array<{ name: string; value: string }> }; - }; -}; + +export type CreateShippingMethodMutation = { createShippingMethod: { id: string, code: string, name: string, description: string, calculator: { code: string, args: Array<{ name: string, value: string }> }, checker: { code: string, args: Array<{ name: string, value: string }> } } }; export type SettlePaymentMutationVariables = Exact<{ - id: Scalars['ID']; -}>; - -export type SettlePaymentMutation = { - settlePayment: - | { errorCode: ErrorCode; message: string } - | { - id: string; - transactionId?: string | null; - amount: number; - method: string; - state: string; - nextStates: Array; - metadata?: any | null; - refunds: Array<{ id: string; total: number; reason?: string | null }>; - } - | { errorCode: ErrorCode; message: string } - | { errorCode: ErrorCode; message: string; paymentErrorMessage: string }; -}; + id: Scalars['ID']; +}>; + + +export type SettlePaymentMutation = { settlePayment: { errorCode: ErrorCode, message: string } | { id: string, transactionId?: string | null, amount: number, method: string, state: string, nextStates: Array, metadata?: any | null, refunds: Array<{ id: string, total: number, reason?: string | null }> } | { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string, paymentErrorMessage: string } }; export type GetOrderHistoryQueryVariables = Exact<{ - id: Scalars['ID']; - options?: InputMaybe; + id: Scalars['ID']; + options?: InputMaybe; }>; -export type GetOrderHistoryQuery = { - order?: { - id: string; - history: { - totalItems: number; - items: Array<{ - id: string; - type: HistoryEntryType; - data: any; - administrator?: { id: string } | null; - }>; - }; - } | null; -}; + +export type GetOrderHistoryQuery = { order?: { id: string, history: { totalItems: number, items: Array<{ id: string, type: HistoryEntryType, data: any, administrator?: { id: string } | null }> } } | null }; export type UpdateShippingMethodMutationVariables = Exact<{ - input: UpdateShippingMethodInput; + input: UpdateShippingMethodInput; }>; -export type UpdateShippingMethodMutation = { - updateShippingMethod: { - id: string; - code: string; - name: string; - description: string; - calculator: { code: string; args: Array<{ name: string; value: string }> }; - checker: { code: string; args: Array<{ name: string; value: string }> }; - }; -}; + +export type UpdateShippingMethodMutation = { updateShippingMethod: { id: string, code: string, name: string, description: string, calculator: { code: string, args: Array<{ name: string, value: string }> }, checker: { code: string, args: Array<{ name: string, value: string }> } } }; export type GetAssetQueryVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; -export type GetAssetQuery = { - asset?: { - width: number; - height: number; - id: string; - name: string; - fileSize: number; - mimeType: string; - type: AssetType; - preview: string; - source: string; - } | null; -}; -export type AssetFragFirstFragment = { id: string; preview: string }; +export type GetAssetQuery = { asset?: { width: number, height: number, id: string, name: string, fileSize: number, mimeType: string, type: AssetType, preview: string, source: string } | null }; + +export type AssetFragFirstFragment = { id: string, preview: string }; export type GetAssetFragmentFirstQueryVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; -export type GetAssetFragmentFirstQuery = { asset?: { id: string; preview: string } | null }; -export type AssetWithTagsAndFocalPointFragment = { - id: string; - name: string; - fileSize: number; - mimeType: string; - type: AssetType; - preview: string; - source: string; - focalPoint?: { x: number; y: number } | null; - tags: Array<{ id: string; value: string }>; -}; +export type GetAssetFragmentFirstQuery = { asset?: { id: string, preview: string } | null }; + +export type AssetWithTagsAndFocalPointFragment = { id: string, name: string, fileSize: number, mimeType: string, type: AssetType, preview: string, source: string, focalPoint?: { x: number, y: number } | null, tags: Array<{ id: string, value: string }> }; export type CreateAssetsMutationVariables = Exact<{ - input: Array | CreateAssetInput; -}>; - -export type CreateAssetsMutation = { - createAssets: Array< - | { - id: string; - name: string; - fileSize: number; - mimeType: string; - type: AssetType; - preview: string; - source: string; - focalPoint?: { x: number; y: number } | null; - tags: Array<{ id: string; value: string }>; - } - | { message: string; fileName: string; mimeType: string } - >; -}; + input: Array | CreateAssetInput; +}>; + + +export type CreateAssetsMutation = { createAssets: Array<{ id: string, name: string, fileSize: number, mimeType: string, type: AssetType, preview: string, source: string, focalPoint?: { x: number, y: number } | null, tags: Array<{ id: string, value: string }> } | { message: string, fileName: string, mimeType: string }> }; export type DeleteShippingMethodMutationVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; -export type DeleteShippingMethodMutation = { - deleteShippingMethod: { result: DeletionResult; message?: string | null }; -}; + +export type DeleteShippingMethodMutation = { deleteShippingMethod: { result: DeletionResult, message?: string | null } }; export type AssignPromotionToChannelMutationVariables = Exact<{ - input: AssignPromotionsToChannelInput; + input: AssignPromotionsToChannelInput; }>; -export type AssignPromotionToChannelMutation = { - assignPromotionsToChannel: Array<{ id: string; name: string }>; -}; + +export type AssignPromotionToChannelMutation = { assignPromotionsToChannel: Array<{ id: string, name: string }> }; export type RemovePromotionFromChannelMutationVariables = Exact<{ - input: RemovePromotionsFromChannelInput; + input: RemovePromotionsFromChannelInput; }>; -export type RemovePromotionFromChannelMutation = { - removePromotionsFromChannel: Array<{ id: string; name: string }>; -}; + +export type RemovePromotionFromChannelMutation = { removePromotionsFromChannel: Array<{ id: string, name: string }> }; export type GetTaxRatesQueryVariables = Exact<{ - options?: InputMaybe; -}>; - -export type GetTaxRatesQuery = { - taxRates: { - totalItems: number; - items: Array<{ - id: string; - name: string; - enabled: boolean; - value: number; - category: { id: string; name: string }; - zone: { id: string; name: string }; - customerGroup?: { id: string; name: string } | null; - }>; - }; -}; - -export type GetShippingMethodListQueryVariables = Exact<{ [key: string]: never }>; - -export type GetShippingMethodListQuery = { - shippingMethods: { - totalItems: number; - items: Array<{ - id: string; - code: string; - name: string; - description: string; - calculator: { code: string; args: Array<{ name: string; value: string }> }; - checker: { code: string; args: Array<{ name: string; value: string }> }; - }>; - }; -}; - -export type GetCollectionsQueryVariables = Exact<{ [key: string]: never }>; - -export type GetCollectionsQuery = { - collections: { - items: Array<{ - id: string; - name: string; - position: number; - parent?: { id: string; name: string } | null; - }>; - }; -}; + options?: InputMaybe; +}>; + + +export type GetTaxRatesQuery = { taxRates: { totalItems: number, items: Array<{ id: string, name: string, enabled: boolean, value: number, category: { id: string, name: string }, zone: { id: string, name: string }, customerGroup?: { id: string, name: string } | null }> } }; + +export type GetShippingMethodListQueryVariables = Exact<{ [key: string]: never; }>; + + +export type GetShippingMethodListQuery = { shippingMethods: { totalItems: number, items: Array<{ id: string, code: string, name: string, description: string, calculator: { code: string, args: Array<{ name: string, value: string }> }, checker: { code: string, args: Array<{ name: string, value: string }> } }> } }; + +export type GetCollectionsQueryVariables = Exact<{ [key: string]: never; }>; + + +export type GetCollectionsQuery = { collections: { items: Array<{ id: string, name: string, position: number, parent?: { id: string, name: string } | null }> } }; export type TransitionPaymentToStateMutationVariables = Exact<{ - id: Scalars['ID']; - state: Scalars['String']; + id: Scalars['ID']; + state: Scalars['String']; }>; -export type TransitionPaymentToStateMutation = { - transitionPaymentToState: - | { - id: string; - transactionId?: string | null; - amount: number; - method: string; - state: string; - nextStates: Array; - metadata?: any | null; - refunds: Array<{ id: string; total: number; reason?: string | null }>; - } - | { errorCode: ErrorCode; message: string; transitionError: string }; -}; + +export type TransitionPaymentToStateMutation = { transitionPaymentToState: { id: string, transactionId?: string | null, amount: number, method: string, state: string, nextStates: Array, metadata?: any | null, refunds: Array<{ id: string, total: number, reason?: string | null }> } | { errorCode: ErrorCode, message: string, transitionError: string } }; export type GetProductVariantListQueryVariables = Exact<{ - options?: InputMaybe; - productId?: InputMaybe; + options?: InputMaybe; + productId?: InputMaybe; }>; -export type GetProductVariantListQuery = { - productVariants: { - totalItems: number; - items: Array<{ id: string; name: string; sku: string; price: number; priceWithTax: number }>; - }; -}; + +export type GetProductVariantListQuery = { productVariants: { totalItems: number, items: Array<{ id: string, name: string, sku: string, price: number, priceWithTax: number }> } }; export type DeletePromotionMutationVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; + export type DeletePromotionMutation = { deletePromotion: { result: DeletionResult } }; -export type GetChannelsQueryVariables = Exact<{ [key: string]: never }>; +export type GetChannelsQueryVariables = Exact<{ [key: string]: never; }>; -export type GetChannelsQuery = { channels: Array<{ id: string; code: string; token: string }> }; + +export type GetChannelsQuery = { channels: Array<{ id: string, code: string, token: string }> }; export type UpdateAdministratorMutationVariables = Exact<{ - input: UpdateAdministratorInput; + input: UpdateAdministratorInput; }>; -export type UpdateAdministratorMutation = { - updateAdministrator: { - id: string; - firstName: string; - lastName: string; - emailAddress: string; - user: { - id: string; - identifier: string; - lastLogin?: any | null; - roles: Array<{ id: string; code: string; description: string; permissions: Array }>; - }; - }; -}; + +export type UpdateAdministratorMutation = { updateAdministrator: { id: string, firstName: string, lastName: string, emailAddress: string, user: { id: string, identifier: string, lastLogin?: any | null, roles: Array<{ id: string, code: string, description: string, permissions: Array }> } } }; export type CancelJobMutationVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; -export type CancelJobMutation = { - cancelJob: { id: string; state: JobState; isSettled: boolean; settledAt?: any | null }; -}; + +export type CancelJobMutation = { cancelJob: { id: string, state: JobState, isSettled: boolean, settledAt?: any | null } }; export type UpdateOptionGroupMutationVariables = Exact<{ - input: UpdateProductOptionGroupInput; + input: UpdateProductOptionGroupInput; }>; + export type UpdateOptionGroupMutation = { updateProductOptionGroup: { id: string } }; -export type GetFulfillmentHandlersQueryVariables = Exact<{ [key: string]: never }>; - -export type GetFulfillmentHandlersQuery = { - fulfillmentHandlers: Array<{ - code: string; - description: string; - args: Array<{ - name: string; - type: string; - description?: string | null; - label?: string | null; - ui?: any | null; - }>; - }>; -}; - -export type OrderWithModificationsFragment = { - id: string; - state: string; - subTotal: number; - subTotalWithTax: number; - shipping: number; - shippingWithTax: number; - total: number; - totalWithTax: number; - lines: Array<{ - id: string; - quantity: number; - orderPlacedQuantity: number; - linePrice: number; - linePriceWithTax: number; - unitPriceWithTax: number; - discountedLinePriceWithTax: number; - proratedLinePriceWithTax: number; - proratedUnitPriceWithTax: number; - discounts: Array<{ description: string; amountWithTax: number }>; - productVariant: { id: string; name: string }; - }>; - surcharges: Array<{ - id: string; - description: string; - sku?: string | null; - price: number; - priceWithTax: number; - taxRate: number; - }>; - payments?: Array<{ - id: string; - transactionId?: string | null; - state: string; - amount: number; - method: string; - metadata?: any | null; - refunds: Array<{ id: string; state: string; total: number; paymentId: string }>; - }> | null; - modifications: Array<{ - id: string; - note: string; - priceChange: number; - isSettled: boolean; - lines: Array<{ orderLineId: string; quantity: number }>; - surcharges?: Array<{ id: string }> | null; - payment?: { id: string; state: string; amount: number; method: string } | null; - refund?: { id: string; state: string; total: number; paymentId: string } | null; - }>; - promotions: Array<{ id: string; name: string; couponCode?: string | null }>; - discounts: Array<{ - description: string; - adjustmentSource: string; - amount: number; - amountWithTax: number; - }>; - shippingAddress?: { - streetLine1?: string | null; - city?: string | null; - postalCode?: string | null; - province?: string | null; - countryCode?: string | null; - country?: string | null; - } | null; - billingAddress?: { - streetLine1?: string | null; - city?: string | null; - postalCode?: string | null; - province?: string | null; - countryCode?: string | null; - country?: string | null; - } | null; -}; +export type GetFulfillmentHandlersQueryVariables = Exact<{ [key: string]: never; }>; + + +export type GetFulfillmentHandlersQuery = { fulfillmentHandlers: Array<{ code: string, description: string, args: Array<{ name: string, type: string, description?: string | null, label?: string | null, ui?: any | null }> }> }; + +export type OrderWithModificationsFragment = { id: string, state: string, subTotal: number, subTotalWithTax: number, shipping: number, shippingWithTax: number, total: number, totalWithTax: number, lines: Array<{ id: string, quantity: number, orderPlacedQuantity: number, linePrice: number, linePriceWithTax: number, unitPriceWithTax: number, discountedLinePriceWithTax: number, proratedLinePriceWithTax: number, proratedUnitPriceWithTax: number, discounts: Array<{ description: string, amountWithTax: number }>, productVariant: { id: string, name: string } }>, surcharges: Array<{ id: string, description: string, sku?: string | null, price: number, priceWithTax: number, taxRate: number }>, payments?: Array<{ id: string, transactionId?: string | null, state: string, amount: number, method: string, metadata?: any | null, refunds: Array<{ id: string, state: string, total: number, paymentId: string }> }> | null, modifications: Array<{ id: string, note: string, priceChange: number, isSettled: boolean, lines: Array<{ orderLineId: string, quantity: number }>, surcharges?: Array<{ id: string }> | null, payment?: { id: string, state: string, amount: number, method: string } | null, refund?: { id: string, state: string, total: number, paymentId: string } | null }>, promotions: Array<{ id: string, name: string, couponCode?: string | null }>, discounts: Array<{ description: string, adjustmentSource: string, amount: number, amountWithTax: number }>, shippingAddress?: { streetLine1?: string | null, city?: string | null, postalCode?: string | null, province?: string | null, countryCode?: string | null, country?: string | null } | null, billingAddress?: { streetLine1?: string | null, city?: string | null, postalCode?: string | null, province?: string | null, countryCode?: string | null, country?: string | null } | null }; export type GetOrderWithModificationsQueryVariables = Exact<{ - id: Scalars['ID']; -}>; - -export type GetOrderWithModificationsQuery = { - order?: { - id: string; - state: string; - subTotal: number; - subTotalWithTax: number; - shipping: number; - shippingWithTax: number; - total: number; - totalWithTax: number; - lines: Array<{ - id: string; - quantity: number; - orderPlacedQuantity: number; - linePrice: number; - linePriceWithTax: number; - unitPriceWithTax: number; - discountedLinePriceWithTax: number; - proratedLinePriceWithTax: number; - proratedUnitPriceWithTax: number; - discounts: Array<{ description: string; amountWithTax: number }>; - productVariant: { id: string; name: string }; - }>; - surcharges: Array<{ - id: string; - description: string; - sku?: string | null; - price: number; - priceWithTax: number; - taxRate: number; - }>; - payments?: Array<{ - id: string; - transactionId?: string | null; - state: string; - amount: number; - method: string; - metadata?: any | null; - refunds: Array<{ id: string; state: string; total: number; paymentId: string }>; - }> | null; - modifications: Array<{ - id: string; - note: string; - priceChange: number; - isSettled: boolean; - lines: Array<{ orderLineId: string; quantity: number }>; - surcharges?: Array<{ id: string }> | null; - payment?: { id: string; state: string; amount: number; method: string } | null; - refund?: { id: string; state: string; total: number; paymentId: string } | null; - }>; - promotions: Array<{ id: string; name: string; couponCode?: string | null }>; - discounts: Array<{ - description: string; - adjustmentSource: string; - amount: number; - amountWithTax: number; - }>; - shippingAddress?: { - streetLine1?: string | null; - city?: string | null; - postalCode?: string | null; - province?: string | null; - countryCode?: string | null; - country?: string | null; - } | null; - billingAddress?: { - streetLine1?: string | null; - city?: string | null; - postalCode?: string | null; - province?: string | null; - countryCode?: string | null; - country?: string | null; - } | null; - } | null; -}; + id: Scalars['ID']; +}>; + + +export type GetOrderWithModificationsQuery = { order?: { id: string, state: string, subTotal: number, subTotalWithTax: number, shipping: number, shippingWithTax: number, total: number, totalWithTax: number, lines: Array<{ id: string, quantity: number, orderPlacedQuantity: number, linePrice: number, linePriceWithTax: number, unitPriceWithTax: number, discountedLinePriceWithTax: number, proratedLinePriceWithTax: number, proratedUnitPriceWithTax: number, discounts: Array<{ description: string, amountWithTax: number }>, productVariant: { id: string, name: string } }>, surcharges: Array<{ id: string, description: string, sku?: string | null, price: number, priceWithTax: number, taxRate: number }>, payments?: Array<{ id: string, transactionId?: string | null, state: string, amount: number, method: string, metadata?: any | null, refunds: Array<{ id: string, state: string, total: number, paymentId: string }> }> | null, modifications: Array<{ id: string, note: string, priceChange: number, isSettled: boolean, lines: Array<{ orderLineId: string, quantity: number }>, surcharges?: Array<{ id: string }> | null, payment?: { id: string, state: string, amount: number, method: string } | null, refund?: { id: string, state: string, total: number, paymentId: string } | null }>, promotions: Array<{ id: string, name: string, couponCode?: string | null }>, discounts: Array<{ description: string, adjustmentSource: string, amount: number, amountWithTax: number }>, shippingAddress?: { streetLine1?: string | null, city?: string | null, postalCode?: string | null, province?: string | null, countryCode?: string | null, country?: string | null } | null, billingAddress?: { streetLine1?: string | null, city?: string | null, postalCode?: string | null, province?: string | null, countryCode?: string | null, country?: string | null } | null } | null }; export type ModifyOrderMutationVariables = Exact<{ - input: ModifyOrderInput; -}>; - -export type ModifyOrderMutation = { - modifyOrder: - | { errorCode: ErrorCode; message: string } - | { errorCode: ErrorCode; message: string } - | { errorCode: ErrorCode; message: string } - | { errorCode: ErrorCode; message: string } - | { errorCode: ErrorCode; message: string } - | { errorCode: ErrorCode; message: string } - | { - id: string; - state: string; - subTotal: number; - subTotalWithTax: number; - shipping: number; - shippingWithTax: number; - total: number; - totalWithTax: number; - lines: Array<{ - id: string; - quantity: number; - orderPlacedQuantity: number; - linePrice: number; - linePriceWithTax: number; - unitPriceWithTax: number; - discountedLinePriceWithTax: number; - proratedLinePriceWithTax: number; - proratedUnitPriceWithTax: number; - discounts: Array<{ description: string; amountWithTax: number }>; - productVariant: { id: string; name: string }; - }>; - surcharges: Array<{ - id: string; - description: string; - sku?: string | null; - price: number; - priceWithTax: number; - taxRate: number; - }>; - payments?: Array<{ - id: string; - transactionId?: string | null; - state: string; - amount: number; - method: string; - metadata?: any | null; - refunds: Array<{ id: string; state: string; total: number; paymentId: string }>; - }> | null; - modifications: Array<{ - id: string; - note: string; - priceChange: number; - isSettled: boolean; - lines: Array<{ orderLineId: string; quantity: number }>; - surcharges?: Array<{ id: string }> | null; - payment?: { id: string; state: string; amount: number; method: string } | null; - refund?: { id: string; state: string; total: number; paymentId: string } | null; - }>; - promotions: Array<{ id: string; name: string; couponCode?: string | null }>; - discounts: Array<{ - description: string; - adjustmentSource: string; - amount: number; - amountWithTax: number; - }>; - shippingAddress?: { - streetLine1?: string | null; - city?: string | null; - postalCode?: string | null; - province?: string | null; - countryCode?: string | null; - country?: string | null; - } | null; - billingAddress?: { - streetLine1?: string | null; - city?: string | null; - postalCode?: string | null; - province?: string | null; - countryCode?: string | null; - country?: string | null; - } | null; - } - | { errorCode: ErrorCode; message: string } - | { errorCode: ErrorCode; message: string } - | { errorCode: ErrorCode; message: string } - | { errorCode: ErrorCode; message: string }; -}; + input: ModifyOrderInput; +}>; + + +export type ModifyOrderMutation = { modifyOrder: { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } | { id: string, state: string, subTotal: number, subTotalWithTax: number, shipping: number, shippingWithTax: number, total: number, totalWithTax: number, lines: Array<{ id: string, quantity: number, orderPlacedQuantity: number, linePrice: number, linePriceWithTax: number, unitPriceWithTax: number, discountedLinePriceWithTax: number, proratedLinePriceWithTax: number, proratedUnitPriceWithTax: number, discounts: Array<{ description: string, amountWithTax: number }>, productVariant: { id: string, name: string } }>, surcharges: Array<{ id: string, description: string, sku?: string | null, price: number, priceWithTax: number, taxRate: number }>, payments?: Array<{ id: string, transactionId?: string | null, state: string, amount: number, method: string, metadata?: any | null, refunds: Array<{ id: string, state: string, total: number, paymentId: string }> }> | null, modifications: Array<{ id: string, note: string, priceChange: number, isSettled: boolean, lines: Array<{ orderLineId: string, quantity: number }>, surcharges?: Array<{ id: string }> | null, payment?: { id: string, state: string, amount: number, method: string } | null, refund?: { id: string, state: string, total: number, paymentId: string } | null }>, promotions: Array<{ id: string, name: string, couponCode?: string | null }>, discounts: Array<{ description: string, adjustmentSource: string, amount: number, amountWithTax: number }>, shippingAddress?: { streetLine1?: string | null, city?: string | null, postalCode?: string | null, province?: string | null, countryCode?: string | null, country?: string | null } | null, billingAddress?: { streetLine1?: string | null, city?: string | null, postalCode?: string | null, province?: string | null, countryCode?: string | null, country?: string | null } | null } | { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } }; export type AddManualPaymentMutationVariables = Exact<{ - input: ManualPaymentInput; -}>; - -export type AddManualPaymentMutation = { - addManualPaymentToOrder: - | { errorCode: ErrorCode; message: string } - | { - id: string; - state: string; - subTotal: number; - subTotalWithTax: number; - shipping: number; - shippingWithTax: number; - total: number; - totalWithTax: number; - lines: Array<{ - id: string; - quantity: number; - orderPlacedQuantity: number; - linePrice: number; - linePriceWithTax: number; - unitPriceWithTax: number; - discountedLinePriceWithTax: number; - proratedLinePriceWithTax: number; - proratedUnitPriceWithTax: number; - discounts: Array<{ description: string; amountWithTax: number }>; - productVariant: { id: string; name: string }; - }>; - surcharges: Array<{ - id: string; - description: string; - sku?: string | null; - price: number; - priceWithTax: number; - taxRate: number; - }>; - payments?: Array<{ - id: string; - transactionId?: string | null; - state: string; - amount: number; - method: string; - metadata?: any | null; - refunds: Array<{ id: string; state: string; total: number; paymentId: string }>; - }> | null; - modifications: Array<{ - id: string; - note: string; - priceChange: number; - isSettled: boolean; - lines: Array<{ orderLineId: string; quantity: number }>; - surcharges?: Array<{ id: string }> | null; - payment?: { id: string; state: string; amount: number; method: string } | null; - refund?: { id: string; state: string; total: number; paymentId: string } | null; - }>; - promotions: Array<{ id: string; name: string; couponCode?: string | null }>; - discounts: Array<{ - description: string; - adjustmentSource: string; - amount: number; - amountWithTax: number; - }>; - shippingAddress?: { - streetLine1?: string | null; - city?: string | null; - postalCode?: string | null; - province?: string | null; - countryCode?: string | null; - country?: string | null; - } | null; - billingAddress?: { - streetLine1?: string | null; - city?: string | null; - postalCode?: string | null; - province?: string | null; - countryCode?: string | null; - country?: string | null; - } | null; - }; -}; - -export type DeletePromotionAdHoc1MutationVariables = Exact<{ [key: string]: never }>; + input: ManualPaymentInput; +}>; + + +export type AddManualPaymentMutation = { addManualPaymentToOrder: { errorCode: ErrorCode, message: string } | { id: string, state: string, subTotal: number, subTotalWithTax: number, shipping: number, shippingWithTax: number, total: number, totalWithTax: number, lines: Array<{ id: string, quantity: number, orderPlacedQuantity: number, linePrice: number, linePriceWithTax: number, unitPriceWithTax: number, discountedLinePriceWithTax: number, proratedLinePriceWithTax: number, proratedUnitPriceWithTax: number, discounts: Array<{ description: string, amountWithTax: number }>, productVariant: { id: string, name: string } }>, surcharges: Array<{ id: string, description: string, sku?: string | null, price: number, priceWithTax: number, taxRate: number }>, payments?: Array<{ id: string, transactionId?: string | null, state: string, amount: number, method: string, metadata?: any | null, refunds: Array<{ id: string, state: string, total: number, paymentId: string }> }> | null, modifications: Array<{ id: string, note: string, priceChange: number, isSettled: boolean, lines: Array<{ orderLineId: string, quantity: number }>, surcharges?: Array<{ id: string }> | null, payment?: { id: string, state: string, amount: number, method: string } | null, refund?: { id: string, state: string, total: number, paymentId: string } | null }>, promotions: Array<{ id: string, name: string, couponCode?: string | null }>, discounts: Array<{ description: string, adjustmentSource: string, amount: number, amountWithTax: number }>, shippingAddress?: { streetLine1?: string | null, city?: string | null, postalCode?: string | null, province?: string | null, countryCode?: string | null, country?: string | null } | null, billingAddress?: { streetLine1?: string | null, city?: string | null, postalCode?: string | null, province?: string | null, countryCode?: string | null, country?: string | null } | null } }; + +export type DeletePromotionAdHoc1MutationVariables = Exact<{ [key: string]: never; }>; + export type DeletePromotionAdHoc1Mutation = { deletePromotion: { result: DeletionResult } }; export type GetTaxRateListQueryVariables = Exact<{ - options?: InputMaybe; + options?: InputMaybe; }>; -export type GetTaxRateListQuery = { - taxRates: { - totalItems: number; - items: Array<{ - id: string; - name: string; - enabled: boolean; - value: number; - category: { id: string; name: string }; - zone: { id: string; name: string }; - }>; - }; -}; + +export type GetTaxRateListQuery = { taxRates: { totalItems: number, items: Array<{ id: string, name: string, enabled: boolean, value: number, category: { id: string, name: string }, zone: { id: string, name: string } }> } }; export type GetOrderWithLineCalculatedPropsQueryVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; -export type GetOrderWithLineCalculatedPropsQuery = { - order?: { id: string; lines: Array<{ id: string; linePriceWithTax: number; quantity: number }> } | null; -}; -export type GetOrderListFulfillmentsQueryVariables = Exact<{ [key: string]: never }>; +export type GetOrderWithLineCalculatedPropsQuery = { order?: { id: string, lines: Array<{ id: string, linePriceWithTax: number, quantity: number }> } | null }; + +export type GetOrderListFulfillmentsQueryVariables = Exact<{ [key: string]: never; }>; -export type GetOrderListFulfillmentsQuery = { - orders: { - items: Array<{ - id: string; - state: string; - fulfillments?: Array<{ - id: string; - state: string; - nextStates: Array; - method: string; - }> | null; - }>; - }; -}; + +export type GetOrderListFulfillmentsQuery = { orders: { items: Array<{ id: string, state: string, fulfillments?: Array<{ id: string, state: string, nextStates: Array, method: string }> | null }> } }; export type GetOrderFulfillmentItemsQueryVariables = Exact<{ - id: Scalars['ID']; -}>; - -export type GetOrderFulfillmentItemsQuery = { - order?: { - id: string; - state: string; - fulfillments?: Array<{ - id: string; - state: string; - nextStates: Array; - method: string; - trackingCode?: string | null; - lines: Array<{ orderLineId: string; quantity: number }>; - }> | null; - } | null; -}; - -export type RefundFragment = { - id: string; - state: string; - items: number; - transactionId?: string | null; - shipping: number; - total: number; - metadata?: any | null; -}; + id: Scalars['ID']; +}>; + + +export type GetOrderFulfillmentItemsQuery = { order?: { id: string, state: string, fulfillments?: Array<{ id: string, state: string, nextStates: Array, method: string, trackingCode?: string | null, lines: Array<{ orderLineId: string, quantity: number }> }> | null } | null }; + +export type RefundFragment = { id: string, state: string, items: number, transactionId?: string | null, shipping: number, total: number, metadata?: any | null }; export type RefundOrderMutationVariables = Exact<{ - input: RefundOrderInput; -}>; - -export type RefundOrderMutation = { - refundOrder: - | { errorCode: ErrorCode; message: string } - | { errorCode: ErrorCode; message: string } - | { errorCode: ErrorCode; message: string } - | { errorCode: ErrorCode; message: string } - | { errorCode: ErrorCode; message: string } - | { errorCode: ErrorCode; message: string } - | { - id: string; - state: string; - items: number; - transactionId?: string | null; - shipping: number; - total: number; - metadata?: any | null; - } - | { errorCode: ErrorCode; message: string } - | { errorCode: ErrorCode; message: string }; -}; + input: RefundOrderInput; +}>; + + +export type RefundOrderMutation = { refundOrder: { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } | { id: string, state: string, items: number, transactionId?: string | null, shipping: number, total: number, metadata?: any | null } | { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } }; export type SettleRefundMutationVariables = Exact<{ - input: SettleRefundInput; + input: SettleRefundInput; }>; -export type SettleRefundMutation = { - settleRefund: - | { - id: string; - state: string; - items: number; - transactionId?: string | null; - shipping: number; - total: number; - metadata?: any | null; - } - | { errorCode: ErrorCode; message: string }; -}; + +export type SettleRefundMutation = { settleRefund: { id: string, state: string, items: number, transactionId?: string | null, shipping: number, total: number, metadata?: any | null } | { errorCode: ErrorCode, message: string } }; export type AddNoteToOrderMutationVariables = Exact<{ - input: AddNoteToOrderInput; + input: AddNoteToOrderInput; }>; + export type AddNoteToOrderMutation = { addNoteToOrder: { id: string } }; export type UpdateOrderNoteMutationVariables = Exact<{ - input: UpdateOrderNoteInput; + input: UpdateOrderNoteInput; }>; -export type UpdateOrderNoteMutation = { updateOrderNote: { id: string; data: any; isPublic: boolean } }; + +export type UpdateOrderNoteMutation = { updateOrderNote: { id: string, data: any, isPublic: boolean } }; export type DeleteOrderNoteMutationVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; -export type DeleteOrderNoteMutation = { - deleteOrderNote: { result: DeletionResult; message?: string | null }; -}; + +export type DeleteOrderNoteMutation = { deleteOrderNote: { result: DeletionResult, message?: string | null } }; export type GetOrderWithPaymentsQueryVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; -export type GetOrderWithPaymentsQuery = { - order?: { - id: string; - payments?: Array<{ - id: string; - errorMessage?: string | null; - metadata?: any | null; - refunds: Array<{ id: string; total: number }>; - }> | null; - } | null; -}; + +export type GetOrderWithPaymentsQuery = { order?: { id: string, payments?: Array<{ id: string, errorMessage?: string | null, metadata?: any | null, refunds: Array<{ id: string, total: number }> }> | null } | null }; export type GetOrderLineFulfillmentsQueryVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; -export type GetOrderLineFulfillmentsQuery = { - order?: { - id: string; - lines: Array<{ - id: string; - fulfillmentLines?: Array<{ - orderLineId: string; - quantity: number; - fulfillment: { id: string; state: string }; - }> | null; - }>; - } | null; -}; + +export type GetOrderLineFulfillmentsQuery = { order?: { id: string, lines: Array<{ id: string, fulfillmentLines?: Array<{ orderLineId: string, quantity: number, fulfillment: { id: string, state: string } }> | null }> } | null }; export type GetOrderListWithQtyQueryVariables = Exact<{ - options?: InputMaybe; + options?: InputMaybe; }>; -export type GetOrderListWithQtyQuery = { - orders: { - items: Array<{ - id: string; - code: string; - totalQuantity: number; - lines: Array<{ id: string; quantity: number }>; - }>; - }; -}; + +export type GetOrderListWithQtyQuery = { orders: { items: Array<{ id: string, code: string, totalQuantity: number, lines: Array<{ id: string, quantity: number }> }> } }; export type CancelPaymentMutationVariables = Exact<{ - paymentId: Scalars['ID']; -}>; - -export type CancelPaymentMutation = { - cancelPayment: - | { errorCode: ErrorCode; message: string; paymentErrorMessage: string } - | { - id: string; - transactionId?: string | null; - amount: number; - method: string; - state: string; - nextStates: Array; - metadata?: any | null; - refunds: Array<{ id: string; total: number; reason?: string | null }>; - } - | { errorCode: ErrorCode; message: string; transitionError: string }; -}; - -export type PaymentMethodFragment = { - id: string; - code: string; - name: string; - description: string; - enabled: boolean; - checker?: { code: string; args: Array<{ name: string; value: string }> } | null; - handler: { code: string; args: Array<{ name: string; value: string }> }; -}; + paymentId: Scalars['ID']; +}>; + + +export type CancelPaymentMutation = { cancelPayment: { errorCode: ErrorCode, message: string, paymentErrorMessage: string } | { id: string, transactionId?: string | null, amount: number, method: string, state: string, nextStates: Array, metadata?: any | null, refunds: Array<{ id: string, total: number, reason?: string | null }> } | { errorCode: ErrorCode, message: string, transitionError: string } }; + +export type PaymentMethodFragment = { id: string, code: string, name: string, description: string, enabled: boolean, checker?: { code: string, args: Array<{ name: string, value: string }> } | null, handler: { code: string, args: Array<{ name: string, value: string }> } }; 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 GetPaymentMethodHandlersQueryVariables = Exact<{ [key: string]: never }>; +export type UpdatePaymentMethodMutation = { updatePaymentMethod: { id: string, code: string, name: string, description: string, enabled: boolean, checker?: { code: string, args: Array<{ name: string, value: string }> } | null, handler: { code: string, args: Array<{ name: string, value: string }> } } }; -export type GetPaymentMethodHandlersQuery = { - paymentMethodHandlers: Array<{ code: string; args: Array<{ name: string; type: string }> }>; -}; +export type GetPaymentMethodHandlersQueryVariables = Exact<{ [key: string]: never; }>; -export type GetPaymentMethodCheckersQueryVariables = Exact<{ [key: string]: never }>; -export type GetPaymentMethodCheckersQuery = { - paymentMethodEligibilityCheckers: Array<{ code: string; args: Array<{ name: string; type: string }> }>; -}; +export type GetPaymentMethodHandlersQuery = { paymentMethodHandlers: Array<{ code: string, args: Array<{ name: string, type: string }> }> }; + +export type GetPaymentMethodCheckersQueryVariables = Exact<{ [key: string]: never; }>; + + +export type GetPaymentMethodCheckersQuery = { paymentMethodEligibilityCheckers: Array<{ code: string, args: Array<{ name: string, type: string }> }> }; export type GetPaymentMethodQueryVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; -export type GetPaymentMethodQuery = { - paymentMethod?: { - id: string; - code: string; - name: string; - description: string; - enabled: boolean; - checker?: { code: string; args: Array<{ name: string; value: string }> } | null; - handler: { code: string; args: Array<{ name: string; value: string }> }; - } | null; -}; + +export type GetPaymentMethodQuery = { paymentMethod?: { id: string, code: string, name: string, description: string, enabled: boolean, checker?: { code: string, args: Array<{ name: string, value: string }> } | null, handler: { code: string, args: Array<{ name: string, value: string }> } } | 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; - taxRate: number; - linePriceWithTax: number; - featuredAsset?: { preview: string } | null; - productVariant: { id: string; name: string; sku: string }; - taxLines: Array<{ description: string; taxRate: number }>; - }>; - surcharges: Array<{ - id: string; - description: string; - sku?: string | null; - price: number; - priceWithTax: number; - }>; - shippingLines: Array<{ - priceWithTax: number; - shippingMethod: { id: string; code: string; name: string; description: string }; - }>; - shippingAddress?: { - fullName?: string | null; - company?: string | null; - streetLine1?: string | null; - streetLine2?: string | null; - city?: string | null; - province?: string | null; - postalCode?: string | null; - country?: string | null; - phoneNumber?: string | null; - } | null; - payments?: Array<{ - id: string; - transactionId?: string | null; - amount: number; - method: string; - state: string; - nextStates: Array; - metadata?: any | null; - refunds: Array<{ id: string; total: number; reason?: string | null }>; - }> | null; - fulfillments?: Array<{ - id: string; - state: string; - method: string; - trackingCode?: string | null; - lines: Array<{ orderLineId: string; quantity: number }>; - }> | null; - }; -}; + input: ManualPaymentInput; +}>; + + +export type AddManualPayment2Mutation = { addManualPaymentToOrder: { errorCode: ErrorCode, message: string } | { id: string, createdAt: any, updatedAt: any, code: string, state: string, active: boolean, subTotal: number, subTotalWithTax: number, total: number, totalWithTax: number, totalQuantity: number, currencyCode: CurrencyCode, shipping: number, shippingWithTax: number, customer?: { id: string, firstName: string, lastName: string } | null, lines: Array<{ id: string, unitPrice: number, unitPriceWithTax: number, quantity: number, taxRate: number, linePriceWithTax: number, featuredAsset?: { preview: string } | null, productVariant: { id: string, name: string, sku: string }, taxLines: Array<{ description: string, taxRate: number }> }>, surcharges: Array<{ id: string, description: string, sku?: string | null, price: number, priceWithTax: number }>, shippingLines: Array<{ priceWithTax: number, shippingMethod: { id: string, code: string, name: string, description: string } }>, shippingAddress?: { fullName?: string | null, company?: string | null, streetLine1?: string | null, streetLine2?: string | null, city?: string | null, province?: string | null, postalCode?: string | null, country?: string | null, phoneNumber?: string | null } | null, payments?: Array<{ id: string, transactionId?: string | null, amount: number, method: string, state: string, nextStates: Array, metadata?: any | null, refunds: Array<{ id: string, total: number, reason?: string | null }> }> | null, fulfillments?: Array<{ id: string, state: string, method: string, trackingCode?: string | null, lines: Array<{ orderLineId: string, quantity: number }> }> | null } }; export type GetProductOptionGroupQueryVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; -export type GetProductOptionGroupQuery = { - productOptionGroup?: { - id: string; - code: string; - name: string; - options: Array<{ id: string; code: string; name: string }>; - } | null; -}; + +export type GetProductOptionGroupQuery = { productOptionGroup?: { id: string, code: string, name: string, options: Array<{ id: string, code: string, name: string }> } | null }; export type UpdateProductOptionGroupMutationVariables = Exact<{ - input: UpdateProductOptionGroupInput; + input: UpdateProductOptionGroupInput; }>; -export type UpdateProductOptionGroupMutation = { - updateProductOptionGroup: { - id: string; - code: string; - name: string; - options: Array<{ id: string; code: string; name: string }>; - translations: Array<{ id: string; languageCode: LanguageCode; name: string }>; - }; -}; + +export type UpdateProductOptionGroupMutation = { updateProductOptionGroup: { id: string, code: string, name: string, options: Array<{ id: string, code: string, name: string }>, translations: Array<{ id: string, languageCode: LanguageCode, name: string }> } }; export type CreateProductOptionMutationVariables = Exact<{ - input: CreateProductOptionInput; + input: CreateProductOptionInput; }>; -export type CreateProductOptionMutation = { - createProductOption: { - id: string; - code: string; - name: string; - groupId: string; - translations: Array<{ id: string; languageCode: LanguageCode; name: string }>; - }; -}; + +export type CreateProductOptionMutation = { createProductOption: { id: string, code: string, name: string, groupId: string, translations: Array<{ id: string, languageCode: LanguageCode, name: string }> } }; export type UpdateProductOptionMutationVariables = Exact<{ - input: UpdateProductOptionInput; + input: UpdateProductOptionInput; }>; -export type UpdateProductOptionMutation = { - updateProductOption: { id: string; code: string; name: string; groupId: string }; -}; + +export type UpdateProductOptionMutation = { updateProductOption: { id: string, code: string, name: string, groupId: string } }; export type DeleteProductOptionMutationVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; -export type DeleteProductOptionMutation = { - deleteProductOption: { result: DeletionResult; message?: string | null }; -}; + +export type DeleteProductOptionMutation = { deleteProductOption: { result: DeletionResult, message?: string | null } }; export type RemoveOptionGroupFromProductMutationVariables = Exact<{ - productId: Scalars['ID']; - optionGroupId: Scalars['ID']; + productId: Scalars['ID']; + optionGroupId: Scalars['ID']; }>; -export type RemoveOptionGroupFromProductMutation = { - removeOptionGroupFromProduct: - | { - id: string; - optionGroups: Array<{ id: string; code: string; options: Array<{ id: string; code: string }> }>; - } - | { errorCode: ErrorCode; message: string; optionGroupCode: string; productVariantCount: number }; -}; + +export type RemoveOptionGroupFromProductMutation = { removeOptionGroupFromProduct: { id: string, optionGroups: Array<{ id: string, code: string, options: Array<{ id: string, code: string }> }> } | { errorCode: ErrorCode, message: string, optionGroupCode: string, productVariantCount: number } }; export type GetOptionGroupQueryVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; -export type GetOptionGroupQuery = { - productOptionGroup?: { id: string; code: string; options: Array<{ id: string; code: string }> } | null; -}; + +export type GetOptionGroupQuery = { productOptionGroup?: { id: string, code: string, options: Array<{ id: string, code: string }> } | null }; export type GetProductVariantQueryVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; -export type GetProductVariantQuery = { productVariant?: { id: string; name: string } | null }; + +export type GetProductVariantQuery = { productVariant?: { id: string, name: string } | null }; export type GetProductWithVariantListQueryVariables = Exact<{ - id?: InputMaybe; - variantListOptions?: InputMaybe; -}>; - -export type GetProductWithVariantListQuery = { - product?: { - id: string; - variantList: { - totalItems: number; - items: Array<{ - id: string; - createdAt: any; - updatedAt: any; - enabled: boolean; - languageCode: LanguageCode; - name: string; - currencyCode: CurrencyCode; - price: number; - priceWithTax: number; - stockOnHand: number; - trackInventory: GlobalFlag; - sku: string; - taxRateApplied: { id: string; name: string; value: number }; - taxCategory: { id: string; name: string }; - options: Array<{ id: string; code: string; languageCode: LanguageCode; name: string }>; - facetValues: Array<{ - id: string; - code: string; - name: string; - facet: { id: string; name: string }; - }>; - featuredAsset?: { - id: string; - name: string; - fileSize: number; - mimeType: string; - type: AssetType; - preview: string; - source: string; - } | null; - assets: Array<{ - id: string; - name: string; - fileSize: number; - mimeType: string; - type: AssetType; - preview: string; - source: string; - }>; - translations: Array<{ id: string; languageCode: LanguageCode; name: string }>; - channels: Array<{ id: string; code: string }>; - }>; - }; - } | null; -}; + id?: InputMaybe; + variantListOptions?: InputMaybe; +}>; + + +export type GetProductWithVariantListQuery = { product?: { id: string, variantList: { totalItems: number, items: Array<{ id: string, createdAt: any, updatedAt: any, enabled: boolean, languageCode: LanguageCode, name: string, currencyCode: CurrencyCode, price: number, priceWithTax: number, stockOnHand: number, trackInventory: GlobalFlag, sku: string, taxRateApplied: { id: string, name: string, value: number }, taxCategory: { id: string, name: string }, options: Array<{ id: string, code: string, languageCode: LanguageCode, name: string }>, facetValues: Array<{ id: string, code: string, name: string, facet: { id: string, name: string } }>, featuredAsset?: { id: string, name: string, fileSize: number, mimeType: string, type: AssetType, preview: string, source: string } | null, assets: Array<{ id: string, name: string, fileSize: number, mimeType: string, type: AssetType, preview: string, source: string }>, translations: Array<{ id: string, languageCode: LanguageCode, name: string }>, channels: Array<{ id: string, code: string }> }> } } | null }; export type GetPromotionListQueryVariables = Exact<{ - options?: InputMaybe; -}>; - -export type GetPromotionListQuery = { - promotions: { - totalItems: number; - items: Array<{ - id: string; - createdAt: any; - updatedAt: any; - couponCode?: string | null; - startsAt?: any | null; - endsAt?: any | null; - name: string; - enabled: boolean; - conditions: Array<{ code: string; args: Array<{ name: string; value: string }> }>; - actions: Array<{ code: string; args: Array<{ name: string; value: string }> }>; - }>; - }; -}; + options?: InputMaybe; +}>; + + +export type GetPromotionListQuery = { promotions: { totalItems: number, items: Array<{ id: string, createdAt: any, updatedAt: any, couponCode?: string | null, startsAt?: any | null, endsAt?: any | null, name: string, 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 LogoutMutationVariables = Exact<{ [key: string]: never }>; +export type DeleteRoleMutation = { deleteRole: { result: DeletionResult, message?: string | null } }; + +export type LogoutMutationVariables = Exact<{ [key: string]: never; }>; + export type LogoutMutation = { logout: { success: boolean } }; export type GetShippingMethodQueryVariables = Exact<{ - id: Scalars['ID']; -}>; - -export type GetShippingMethodQuery = { - shippingMethod?: { - id: string; - code: string; - name: string; - description: string; - calculator: { code: string; args: Array<{ name: string; value: string }> }; - checker: { code: string; args: Array<{ name: string; value: string }> }; - } | null; -}; - -export type GetEligibilityCheckersQueryVariables = Exact<{ [key: string]: never }>; - -export type GetEligibilityCheckersQuery = { - shippingEligibilityCheckers: Array<{ - code: string; - description: string; - args: Array<{ - name: string; - type: string; - description?: string | null; - label?: string | null; - ui?: any | null; - }>; - }>; -}; - -export type GetCalculatorsQueryVariables = Exact<{ [key: string]: never }>; - -export type GetCalculatorsQuery = { - shippingCalculators: Array<{ - code: string; - description: string; - args: Array<{ - name: string; - type: string; - description?: string | null; - label?: string | null; - ui?: any | null; - }>; - }>; -}; + id: Scalars['ID']; +}>; + + +export type GetShippingMethodQuery = { shippingMethod?: { id: string, code: string, name: string, description: string, calculator: { code: string, args: Array<{ name: string, value: string }> }, checker: { code: string, args: Array<{ name: string, value: string }> } } | null }; + +export type GetEligibilityCheckersQueryVariables = Exact<{ [key: string]: never; }>; + + +export type GetEligibilityCheckersQuery = { shippingEligibilityCheckers: Array<{ code: string, description: string, args: Array<{ name: string, type: string, description?: string | null, label?: string | null, ui?: any | null }> }> }; + +export type GetCalculatorsQueryVariables = Exact<{ [key: string]: never; }>; + + +export type GetCalculatorsQuery = { shippingCalculators: Array<{ code: string, description: string, args: Array<{ name: string, type: string, description?: string | null, label?: string | null, ui?: any | null }> }> }; export type TestShippingMethodQueryVariables = Exact<{ - input: TestShippingMethodInput; + input: TestShippingMethodInput; }>; -export type TestShippingMethodQuery = { - testShippingMethod: { - eligible: boolean; - quote?: { price: number; priceWithTax: number; metadata?: any | null } | null; - }; -}; + +export type TestShippingMethodQuery = { testShippingMethod: { eligible: boolean, quote?: { price: number, priceWithTax: number, metadata?: any | null } | null } }; export type TestEligibleMethodsQueryVariables = Exact<{ - input: TestEligibleShippingMethodsInput; + input: TestEligibleShippingMethodsInput; }>; -export type TestEligibleMethodsQuery = { - testEligibleShippingMethods: Array<{ - id: string; - name: string; - description: string; - price: number; - priceWithTax: number; - metadata?: any | null; - }>; -}; -export type GetMeQueryVariables = Exact<{ [key: string]: never }>; +export type TestEligibleMethodsQuery = { testEligibleShippingMethods: Array<{ id: string, name: string, description: string, price: number, priceWithTax: number, metadata?: any | null }> }; + +export type GetMeQueryVariables = Exact<{ [key: string]: never; }>; + export type GetMeQuery = { me?: { identifier: string } | null }; -export type GetProductsTake3QueryVariables = Exact<{ [key: string]: never }>; +export type GetProductsTake3QueryVariables = Exact<{ [key: string]: never; }>; + export type GetProductsTake3Query = { products: { items: Array<{ id: string }> } }; -export type GetProduct1QueryVariables = Exact<{ [key: string]: never }>; +export type GetProduct1QueryVariables = Exact<{ [key: string]: never; }>; + export type GetProduct1Query = { product?: { id: string } | null }; -export type GetProduct2VariantsQueryVariables = Exact<{ [key: string]: never }>; +export type GetProduct2VariantsQueryVariables = Exact<{ [key: string]: never; }>; -export type GetProduct2VariantsQuery = { - product?: { id: string; variants: Array<{ id: string; name: string }> } | null; -}; -export type GetProductCollectionQueryVariables = Exact<{ [key: string]: never }>; +export type GetProduct2VariantsQuery = { product?: { id: string, variants: Array<{ id: string, name: string }> } | null }; + +export type GetProductCollectionQueryVariables = Exact<{ [key: string]: never; }>; -export type GetProductCollectionQuery = { - product?: { collections: Array<{ id: string; name: string }> } | null; -}; + +export type GetProductCollectionQuery = { product?: { collections: Array<{ id: string, name: string }> } | null }; export type GetCollectionShopQueryVariables = Exact<{ - id?: InputMaybe; - slug?: InputMaybe; + id?: InputMaybe; + slug?: InputMaybe; }>; -export type GetCollectionShopQuery = { - collection?: { - id: string; - name: string; - slug: string; - description: string; - parent?: { id: string; name: string } | null; - children?: Array<{ id: string; name: string }> | null; - } | null; -}; + +export type GetCollectionShopQuery = { collection?: { id: string, name: string, slug: string, description: string, parent?: { id: string, name: string } | null, children?: Array<{ id: string, name: string }> | null } | null }; export type DisableProductMutationVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; + export type DisableProductMutation = { updateProduct: { id: string } }; export type GetCollectionVariantsQueryVariables = Exact<{ - id?: InputMaybe; - slug?: InputMaybe; + id?: InputMaybe; + slug?: InputMaybe; }>; -export type GetCollectionVariantsQuery = { - collection?: { id: string; productVariants: { items: Array<{ id: string; name: string }> } } | null; -}; -export type GetCollectionListQueryVariables = Exact<{ [key: string]: never }>; +export type GetCollectionVariantsQuery = { collection?: { id: string, productVariants: { items: Array<{ id: string, name: string }> } } | null }; + +export type GetCollectionListQueryVariables = Exact<{ [key: string]: never; }>; -export type GetCollectionListQuery = { collections: { items: Array<{ id: string; name: string }> } }; + +export type GetCollectionListQuery = { collections: { items: Array<{ id: string, name: string }> } }; export type GetProductFacetValuesQueryVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; -export type GetProductFacetValuesQuery = { - product?: { id: string; name: string; facetValues: Array<{ name: string }> } | null; -}; + +export type GetProductFacetValuesQuery = { product?: { id: string, name: string, facetValues: Array<{ name: string }> } | null }; export type GetVariantFacetValuesQueryVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; -export type GetVariantFacetValuesQuery = { - product?: { - id: string; - name: string; - variants: Array<{ id: string; facetValues: Array<{ name: string }> }>; - } | null; -}; -export type GetCustomerIdsQueryVariables = Exact<{ [key: string]: never }>; +export type GetVariantFacetValuesQuery = { product?: { id: string, name: string, variants: Array<{ id: string, facetValues: Array<{ name: string }> }> } | null }; + +export type GetCustomerIdsQueryVariables = Exact<{ [key: string]: never; }>; + export type GetCustomerIdsQuery = { customers: { items: Array<{ id: string }> } }; -export type StockLocationFragment = { id: string; name: string; description: string }; +export type StockLocationFragment = { id: string, name: string, description: string }; export type GetStockLocationQueryVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; -export type GetStockLocationQuery = { - stockLocation?: { id: string; name: string; description: string } | null; -}; + +export type GetStockLocationQuery = { stockLocation?: { id: string, name: string, description: string } | null }; export type GetStockLocationsQueryVariables = Exact<{ - options?: InputMaybe; + options?: InputMaybe; }>; -export type GetStockLocationsQuery = { - stockLocations: { totalItems: number; items: Array<{ id: string; name: string; description: string }> }; -}; + +export type GetStockLocationsQuery = { stockLocations: { totalItems: number, items: Array<{ id: string, name: string, description: string }> } }; export type CreateStockLocationMutationVariables = Exact<{ - input: CreateStockLocationInput; + input: CreateStockLocationInput; }>; -export type CreateStockLocationMutation = { - createStockLocation: { id: string; name: string; description: string }; -}; + +export type CreateStockLocationMutation = { createStockLocation: { id: string, name: string, description: string } }; export type UpdateStockLocationMutationVariables = Exact<{ - input: UpdateStockLocationInput; + input: UpdateStockLocationInput; }>; -export type UpdateStockLocationMutation = { - updateStockLocation: { id: string; name: string; description: string }; -}; + +export type UpdateStockLocationMutation = { updateStockLocation: { id: string, name: string, description: string } }; export type GetVariantStockLevelsQueryVariables = Exact<{ - options?: InputMaybe; + options?: InputMaybe; }>; -export type GetVariantStockLevelsQuery = { - productVariants: { - items: Array<{ - id: string; - name: string; - stockOnHand: number; - stockAllocated: number; - stockLevels: Array<{ stockLocationId: string; stockOnHand: number; stockAllocated: number }>; - }>; - }; -}; + +export type GetVariantStockLevelsQuery = { productVariants: { items: Array<{ id: string, name: string, stockOnHand: number, stockAllocated: number, stockLevels: Array<{ stockLocationId: string, stockOnHand: number, stockAllocated: number }> }> } }; export type UpdateStockMutationVariables = Exact<{ - input: Array | UpdateProductVariantInput; -}>; - -export type UpdateStockMutation = { - updateProductVariants: Array<{ - id: string; - stockOnHand: number; - stockAllocated: number; - stockMovements: { - totalItems: number; - items: Array< - | { id: string; type: StockMovementType; quantity: number } - | { id: string; type: StockMovementType; quantity: number } - | { id: string; type: StockMovementType; quantity: number } - | { id: string; type: StockMovementType; quantity: number } - | { id: string; type: StockMovementType; quantity: number } - | { id: string; type: StockMovementType; quantity: number } - >; - }; - } | null>; -}; + input: Array | UpdateProductVariantInput; +}>; + + +export type UpdateStockMutation = { updateProductVariants: Array<{ id: string, stockOnHand: number, stockAllocated: number, stockMovements: { totalItems: number, items: Array<{ id: string, type: StockMovementType, quantity: number } | { id: string, type: StockMovementType, quantity: number } | { id: string, type: StockMovementType, quantity: number } | { id: string, type: StockMovementType, quantity: number } | { id: string, type: StockMovementType, quantity: number } | { id: string, type: StockMovementType, quantity: number }> } } | null> }; export type TransitionFulfillmentToStateMutationVariables = Exact<{ - id: Scalars['ID']; - state: Scalars['String']; + id: Scalars['ID']; + state: Scalars['String']; }>; -export type TransitionFulfillmentToStateMutation = { - transitionFulfillmentToState: - | { id: string; state: string; nextStates: Array; createdAt: any } - | { errorCode: ErrorCode; message: string; transitionError: string }; -}; + +export type TransitionFulfillmentToStateMutation = { transitionFulfillmentToState: { id: string, state: string, nextStates: Array, createdAt: any } | { errorCode: ErrorCode, message: string, transitionError: string } }; export type UpdateOrderCustomFieldsMutationVariables = Exact<{ - input: UpdateOrderInput; + input: UpdateOrderInput; }>; + export type UpdateOrderCustomFieldsMutation = { setOrderCustomFields?: { id: string } | null }; export type GetTagListQueryVariables = Exact<{ - options?: InputMaybe; + options?: InputMaybe; }>; -export type GetTagListQuery = { tags: { totalItems: number; items: Array<{ id: string; value: string }> } }; + +export type GetTagListQuery = { tags: { totalItems: number, items: Array<{ id: string, value: string }> } }; export type GetTagQueryVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; -export type GetTagQuery = { tag: { id: string; value: string } }; + +export type GetTagQuery = { tag: { id: string, value: string } }; export type CreateTagMutationVariables = Exact<{ - input: CreateTagInput; + input: CreateTagInput; }>; -export type CreateTagMutation = { createTag: { id: string; value: string } }; + +export type CreateTagMutation = { createTag: { id: string, value: string } }; export type UpdateTagMutationVariables = Exact<{ - input: UpdateTagInput; + input: UpdateTagInput; }>; -export type UpdateTagMutation = { updateTag: { id: string; value: string } }; + +export type UpdateTagMutation = { updateTag: { id: string, value: string } }; export type DeleteTagMutationVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; -export type DeleteTagMutation = { deleteTag: { message?: string | null; result: DeletionResult } }; -export type GetTaxCategoryListQueryVariables = Exact<{ [key: string]: never }>; +export type DeleteTagMutation = { deleteTag: { message?: string | null, result: DeletionResult } }; -export type GetTaxCategoryListQuery = { - taxCategories: Array<{ id: string; name: string; isDefault: boolean }>; -}; +export type GetTaxCategoryListQueryVariables = Exact<{ [key: string]: never; }>; + + +export type GetTaxCategoryListQuery = { taxCategories: Array<{ id: string, name: string, isDefault: boolean }> }; export type GetTaxCategoryQueryVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; -export type GetTaxCategoryQuery = { taxCategory?: { id: string; name: string; isDefault: boolean } | null }; + +export type GetTaxCategoryQuery = { taxCategory?: { id: string, name: string, isDefault: boolean } | null }; export type CreateTaxCategoryMutationVariables = Exact<{ - input: CreateTaxCategoryInput; + input: CreateTaxCategoryInput; }>; -export type CreateTaxCategoryMutation = { - createTaxCategory: { id: string; name: string; isDefault: boolean }; -}; + +export type CreateTaxCategoryMutation = { createTaxCategory: { id: string, name: string, isDefault: boolean } }; export type UpdateTaxCategoryMutationVariables = Exact<{ - input: UpdateTaxCategoryInput; + input: UpdateTaxCategoryInput; }>; -export type UpdateTaxCategoryMutation = { - updateTaxCategory: { id: string; name: string; isDefault: boolean }; -}; + +export type UpdateTaxCategoryMutation = { updateTaxCategory: { id: string, name: string, isDefault: boolean } }; export type DeleteTaxCategoryMutationVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; -export type DeleteTaxCategoryMutation = { - deleteTaxCategory: { result: DeletionResult; message?: string | null }; -}; + +export type DeleteTaxCategoryMutation = { deleteTaxCategory: { result: DeletionResult, message?: string | null } }; export type GetTaxRateQueryVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; -export type GetTaxRateQuery = { - taxRate?: { - id: string; - name: string; - enabled: boolean; - value: number; - category: { id: string; name: string }; - zone: { id: string; name: string }; - customerGroup?: { id: string; name: string } | null; - } | null; -}; + +export type GetTaxRateQuery = { taxRate?: { id: string, name: string, enabled: boolean, value: number, category: { id: string, name: string }, zone: { id: string, name: string }, customerGroup?: { id: string, name: string } | null } | null }; export type CreateTaxRateMutationVariables = Exact<{ - input: CreateTaxRateInput; + input: CreateTaxRateInput; }>; -export type CreateTaxRateMutation = { - createTaxRate: { - id: string; - name: string; - enabled: boolean; - value: number; - category: { id: string; name: string }; - zone: { id: string; name: string }; - customerGroup?: { id: string; name: string } | null; - }; -}; + +export type CreateTaxRateMutation = { createTaxRate: { id: string, name: string, enabled: boolean, value: number, category: { id: string, name: string }, zone: { id: string, name: string }, customerGroup?: { id: string, name: string } | null } }; export type DeleteTaxRateMutationVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; -export type DeleteTaxRateMutation = { deleteTaxRate: { result: DeletionResult; message?: string | null } }; + +export type DeleteTaxRateMutation = { deleteTaxRate: { result: DeletionResult, message?: string | null } }; export type DeleteZoneMutationVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; -export type DeleteZoneMutation = { deleteZone: { result: DeletionResult; message?: string | null } }; -export type GetZonesQueryVariables = Exact<{ [key: string]: never }>; +export type DeleteZoneMutation = { deleteZone: { result: DeletionResult, message?: string | null } }; -export type GetZonesQuery = { zones: Array<{ id: string; name: string }> }; +export type GetZonesQueryVariables = Exact<{ [key: string]: never; }>; + + +export type GetZonesQuery = { zones: Array<{ id: string, name: string }> }; export type GetZoneQueryVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; -export type GetZoneQuery = { - zone?: { - id: string; - name: string; - members: Array<{ - id: string; - code: string; - name: string; - enabled: boolean; - translations: Array<{ id: string; languageCode: LanguageCode; name: string }>; - }>; - } | null; -}; -export type GetActiveChannelWithZoneMembersQueryVariables = Exact<{ [key: string]: never }>; +export type GetZoneQuery = { zone?: { id: string, name: string, members: Array<{ id: string, code: string, name: string, enabled: boolean, translations: Array<{ id: string, languageCode: LanguageCode, name: string }> }> } | null }; -export type GetActiveChannelWithZoneMembersQuery = { - activeChannel: { - id: string; - defaultShippingZone?: { id: string; members: Array<{ name: string }> } | null; - }; -}; +export type GetActiveChannelWithZoneMembersQueryVariables = Exact<{ [key: string]: never; }>; + + +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 30d1fd6898..aa63a48100 100644 --- a/packages/core/e2e/graphql/generated-e2e-shop-types.ts +++ b/packages/core/e2e/graphql/generated-e2e-shop-types.ts @@ -6,210 +6,200 @@ export type MakeOptional = Omit & { [SubKey in K]?: export type MakeMaybe = Omit & { [SubKey in K]: Maybe }; /** All built-in and custom scalars, mapped to their actual values */ export type Scalars = { - ID: string; - String: string; - Boolean: boolean; - Int: number; - Float: number; - /** 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']; - data?: Maybe; - description: Scalars['String']; - type: AdjustmentType; + adjustmentSource: Scalars['String']; + amount: Scalars['Int']; + data?: Maybe; + description: Scalars['String']; + type: AdjustmentType; }; export enum AdjustmentType { - DISTRIBUTED_ORDER_PROMOTION = 'DISTRIBUTED_ORDER_PROMOTION', - OTHER = 'OTHER', - PROMOTION = 'PROMOTION', + DISTRIBUTED_ORDER_PROMOTION = 'DISTRIBUTED_ORDER_PROMOTION', + OTHER = 'OTHER', + PROMOTION = 'PROMOTION' } /** Returned when attempting to set the Customer for an Order when already logged in. */ export type AlreadyLoggedInError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; }; -export type ApplyCouponCodeResult = - | CouponCodeExpiredError - | CouponCodeInvalidError - | CouponCodeLimitError - | Order; +export type ApplyCouponCodeResult = CouponCodeExpiredError | CouponCodeInvalidError | CouponCodeLimitError | Order; export type Asset = Node & { - createdAt: Scalars['DateTime']; - customFields?: Maybe; - fileSize: Scalars['Int']; - focalPoint?: Maybe; - height: Scalars['Int']; - id: Scalars['ID']; - mimeType: Scalars['String']; - name: Scalars['String']; - preview: Scalars['String']; - source: Scalars['String']; - tags: Array; - type: AssetType; - updatedAt: Scalars['DateTime']; - width: Scalars['Int']; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + fileSize: Scalars['Int']; + focalPoint?: Maybe; + height: Scalars['Int']; + id: Scalars['ID']; + mimeType: Scalars['String']; + name: Scalars['String']; + preview: Scalars['String']; + source: Scalars['String']; + tags: Array; + type: AssetType; + updatedAt: Scalars['DateTime']; + width: Scalars['Int']; }; export type AssetList = PaginatedList & { - items: Array; - totalItems: Scalars['Int']; + items: Array; + totalItems: Scalars['Int']; }; export enum AssetType { - BINARY = 'BINARY', - IMAGE = 'IMAGE', - VIDEO = 'VIDEO', + BINARY = 'BINARY', + IMAGE = 'IMAGE', + VIDEO = 'VIDEO' } export type AuthenticationInput = { - native?: InputMaybe; + native?: InputMaybe; }; export type AuthenticationMethod = Node & { - createdAt: Scalars['DateTime']; - id: Scalars['ID']; - strategy: Scalars['String']; - updatedAt: Scalars['DateTime']; + createdAt: Scalars['DateTime']; + id: Scalars['ID']; + strategy: Scalars['String']; + updatedAt: Scalars['DateTime']; }; export type AuthenticationResult = CurrentUser | InvalidCredentialsError | NotVerifiedError; export type BooleanCustomFieldConfig = CustomField & { - description?: Maybe>; - internal?: Maybe; - label?: Maybe>; - list: Scalars['Boolean']; - name: Scalars['String']; - nullable?: Maybe; - readonly?: Maybe; - type: Scalars['String']; - ui?: Maybe; + description?: Maybe>; + internal?: Maybe; + label?: Maybe>; + list: Scalars['Boolean']; + name: Scalars['String']; + nullable?: Maybe; + readonly?: Maybe; + type: Scalars['String']; + ui?: Maybe; }; /** Operators for filtering on a list of Boolean fields */ export type BooleanListOperators = { - inList: Scalars['Boolean']; + inList: Scalars['Boolean']; }; /** Operators for filtering on a Boolean field */ export type BooleanOperators = { - eq?: InputMaybe; - isNull?: InputMaybe; + eq?: InputMaybe; + isNull?: InputMaybe; }; export type Channel = Node & { - code: Scalars['String']; - createdAt: Scalars['DateTime']; - 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; }; /** @@ -217,142 +207,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; }; /** @@ -362,446 +352,440 @@ export type CreateCustomerInput = { * @docsCategory common */ export enum CurrencyCode { - /** United Arab Emirates dirham */ - AED = 'AED', - /** Afghan afghani */ - AFN = 'AFN', - /** Albanian lek */ - ALL = 'ALL', - /** Armenian dram */ - AMD = 'AMD', - /** Netherlands Antillean guilder */ - ANG = 'ANG', - /** Angolan kwanza */ - AOA = 'AOA', - /** Argentine peso */ - ARS = 'ARS', - /** Australian dollar */ - AUD = 'AUD', - /** Aruban florin */ - AWG = 'AWG', - /** Azerbaijani manat */ - AZN = 'AZN', - /** Bosnia and Herzegovina convertible mark */ - BAM = 'BAM', - /** Barbados dollar */ - BBD = 'BBD', - /** Bangladeshi taka */ - BDT = 'BDT', - /** Bulgarian lev */ - BGN = 'BGN', - /** Bahraini dinar */ - BHD = 'BHD', - /** Burundian franc */ - BIF = 'BIF', - /** Bermudian dollar */ - BMD = 'BMD', - /** Brunei dollar */ - BND = 'BND', - /** Boliviano */ - BOB = 'BOB', - /** Brazilian real */ - BRL = 'BRL', - /** Bahamian dollar */ - BSD = 'BSD', - /** Bhutanese ngultrum */ - BTN = 'BTN', - /** Botswana pula */ - BWP = 'BWP', - /** Belarusian ruble */ - BYN = 'BYN', - /** Belize dollar */ - BZD = 'BZD', - /** Canadian dollar */ - CAD = 'CAD', - /** Congolese franc */ - CDF = 'CDF', - /** Swiss franc */ - CHF = 'CHF', - /** Chilean peso */ - CLP = 'CLP', - /** Renminbi (Chinese) yuan */ - CNY = 'CNY', - /** Colombian peso */ - COP = 'COP', - /** Costa Rican colon */ - CRC = 'CRC', - /** Cuban convertible peso */ - CUC = 'CUC', - /** Cuban peso */ - CUP = 'CUP', - /** Cape Verde escudo */ - CVE = 'CVE', - /** Czech koruna */ - CZK = 'CZK', - /** Djiboutian franc */ - DJF = 'DJF', - /** Danish krone */ - DKK = 'DKK', - /** Dominican peso */ - DOP = 'DOP', - /** Algerian dinar */ - DZD = 'DZD', - /** Egyptian pound */ - EGP = 'EGP', - /** Eritrean nakfa */ - ERN = 'ERN', - /** Ethiopian birr */ - ETB = 'ETB', - /** Euro */ - EUR = 'EUR', - /** Fiji dollar */ - FJD = 'FJD', - /** Falkland Islands pound */ - FKP = 'FKP', - /** Pound sterling */ - GBP = 'GBP', - /** Georgian lari */ - GEL = 'GEL', - /** Ghanaian cedi */ - GHS = 'GHS', - /** Gibraltar pound */ - GIP = 'GIP', - /** Gambian dalasi */ - GMD = 'GMD', - /** Guinean franc */ - GNF = 'GNF', - /** Guatemalan quetzal */ - GTQ = 'GTQ', - /** Guyanese dollar */ - GYD = 'GYD', - /** Hong Kong dollar */ - HKD = 'HKD', - /** Honduran lempira */ - HNL = 'HNL', - /** Croatian kuna */ - HRK = 'HRK', - /** Haitian gourde */ - HTG = 'HTG', - /** Hungarian forint */ - HUF = 'HUF', - /** Indonesian rupiah */ - IDR = 'IDR', - /** Israeli new shekel */ - ILS = 'ILS', - /** Indian rupee */ - INR = 'INR', - /** Iraqi dinar */ - IQD = 'IQD', - /** Iranian rial */ - IRR = 'IRR', - /** Icelandic króna */ - ISK = 'ISK', - /** Jamaican dollar */ - JMD = 'JMD', - /** Jordanian dinar */ - JOD = 'JOD', - /** Japanese yen */ - JPY = 'JPY', - /** Kenyan shilling */ - KES = 'KES', - /** Kyrgyzstani som */ - KGS = 'KGS', - /** Cambodian riel */ - KHR = 'KHR', - /** Comoro franc */ - KMF = 'KMF', - /** North Korean won */ - KPW = 'KPW', - /** South Korean won */ - KRW = 'KRW', - /** Kuwaiti dinar */ - KWD = 'KWD', - /** Cayman Islands dollar */ - KYD = 'KYD', - /** Kazakhstani tenge */ - KZT = 'KZT', - /** Lao kip */ - LAK = 'LAK', - /** Lebanese pound */ - LBP = 'LBP', - /** Sri Lankan rupee */ - LKR = 'LKR', - /** Liberian dollar */ - LRD = 'LRD', - /** Lesotho loti */ - LSL = 'LSL', - /** Libyan dinar */ - LYD = 'LYD', - /** Moroccan dirham */ - MAD = 'MAD', - /** Moldovan leu */ - MDL = 'MDL', - /** Malagasy ariary */ - MGA = 'MGA', - /** Macedonian denar */ - MKD = 'MKD', - /** Myanmar kyat */ - MMK = 'MMK', - /** Mongolian tögrög */ - MNT = 'MNT', - /** Macanese pataca */ - MOP = 'MOP', - /** Mauritanian ouguiya */ - MRU = 'MRU', - /** Mauritian rupee */ - MUR = 'MUR', - /** Maldivian rufiyaa */ - MVR = 'MVR', - /** Malawian kwacha */ - MWK = 'MWK', - /** Mexican peso */ - MXN = 'MXN', - /** Malaysian ringgit */ - MYR = 'MYR', - /** Mozambican metical */ - MZN = 'MZN', - /** Namibian dollar */ - NAD = 'NAD', - /** Nigerian naira */ - NGN = 'NGN', - /** Nicaraguan córdoba */ - NIO = 'NIO', - /** Norwegian krone */ - NOK = 'NOK', - /** Nepalese rupee */ - NPR = 'NPR', - /** New Zealand dollar */ - NZD = 'NZD', - /** Omani rial */ - OMR = 'OMR', - /** Panamanian balboa */ - PAB = 'PAB', - /** Peruvian sol */ - PEN = 'PEN', - /** Papua New Guinean kina */ - PGK = 'PGK', - /** Philippine peso */ - PHP = 'PHP', - /** Pakistani rupee */ - PKR = 'PKR', - /** Polish złoty */ - PLN = 'PLN', - /** Paraguayan guaraní */ - PYG = 'PYG', - /** Qatari riyal */ - QAR = 'QAR', - /** Romanian leu */ - RON = 'RON', - /** Serbian dinar */ - RSD = 'RSD', - /** Russian ruble */ - RUB = 'RUB', - /** Rwandan franc */ - RWF = 'RWF', - /** Saudi riyal */ - SAR = 'SAR', - /** Solomon Islands dollar */ - SBD = 'SBD', - /** Seychelles rupee */ - SCR = 'SCR', - /** Sudanese pound */ - SDG = 'SDG', - /** Swedish krona/kronor */ - SEK = 'SEK', - /** Singapore dollar */ - SGD = 'SGD', - /** Saint Helena pound */ - SHP = 'SHP', - /** Sierra Leonean leone */ - SLL = 'SLL', - /** Somali shilling */ - SOS = 'SOS', - /** Surinamese dollar */ - SRD = 'SRD', - /** South Sudanese pound */ - SSP = 'SSP', - /** São Tomé and Príncipe dobra */ - STN = 'STN', - /** Salvadoran colón */ - SVC = 'SVC', - /** Syrian pound */ - SYP = 'SYP', - /** Swazi lilangeni */ - SZL = 'SZL', - /** Thai baht */ - THB = 'THB', - /** Tajikistani somoni */ - TJS = 'TJS', - /** Turkmenistan manat */ - TMT = 'TMT', - /** Tunisian dinar */ - TND = 'TND', - /** Tongan paʻanga */ - TOP = 'TOP', - /** Turkish lira */ - TRY = 'TRY', - /** Trinidad and Tobago dollar */ - TTD = 'TTD', - /** New Taiwan dollar */ - TWD = 'TWD', - /** Tanzanian shilling */ - TZS = 'TZS', - /** Ukrainian hryvnia */ - UAH = 'UAH', - /** Ugandan shilling */ - UGX = 'UGX', - /** United States dollar */ - USD = 'USD', - /** Uruguayan peso */ - UYU = 'UYU', - /** Uzbekistan som */ - UZS = 'UZS', - /** Venezuelan bolívar soberano */ - VES = 'VES', - /** Vietnamese đồng */ - VND = 'VND', - /** Vanuatu vatu */ - VUV = 'VUV', - /** Samoan tala */ - WST = 'WST', - /** CFA franc BEAC */ - XAF = 'XAF', - /** East Caribbean dollar */ - XCD = 'XCD', - /** CFA franc BCEAO */ - XOF = 'XOF', - /** CFP franc (franc Pacifique) */ - XPF = 'XPF', - /** Yemeni rial */ - YER = 'YER', - /** South African rand */ - ZAR = 'ZAR', - /** Zambian kwacha */ - ZMW = 'ZMW', - /** Zimbabwean dollar */ - ZWL = 'ZWL', + /** United Arab Emirates dirham */ + AED = 'AED', + /** Afghan afghani */ + AFN = 'AFN', + /** Albanian lek */ + ALL = 'ALL', + /** Armenian dram */ + AMD = 'AMD', + /** Netherlands Antillean guilder */ + ANG = 'ANG', + /** Angolan kwanza */ + AOA = 'AOA', + /** Argentine peso */ + ARS = 'ARS', + /** Australian dollar */ + AUD = 'AUD', + /** Aruban florin */ + AWG = 'AWG', + /** Azerbaijani manat */ + AZN = 'AZN', + /** Bosnia and Herzegovina convertible mark */ + BAM = 'BAM', + /** Barbados dollar */ + BBD = 'BBD', + /** Bangladeshi taka */ + BDT = 'BDT', + /** Bulgarian lev */ + BGN = 'BGN', + /** Bahraini dinar */ + BHD = 'BHD', + /** Burundian franc */ + BIF = 'BIF', + /** Bermudian dollar */ + BMD = 'BMD', + /** Brunei dollar */ + BND = 'BND', + /** Boliviano */ + BOB = 'BOB', + /** Brazilian real */ + BRL = 'BRL', + /** Bahamian dollar */ + BSD = 'BSD', + /** Bhutanese ngultrum */ + BTN = 'BTN', + /** Botswana pula */ + BWP = 'BWP', + /** Belarusian ruble */ + BYN = 'BYN', + /** Belize dollar */ + BZD = 'BZD', + /** Canadian dollar */ + CAD = 'CAD', + /** Congolese franc */ + CDF = 'CDF', + /** Swiss franc */ + CHF = 'CHF', + /** Chilean peso */ + CLP = 'CLP', + /** Renminbi (Chinese) yuan */ + CNY = 'CNY', + /** Colombian peso */ + COP = 'COP', + /** Costa Rican colon */ + CRC = 'CRC', + /** Cuban convertible peso */ + CUC = 'CUC', + /** Cuban peso */ + CUP = 'CUP', + /** Cape Verde escudo */ + CVE = 'CVE', + /** Czech koruna */ + CZK = 'CZK', + /** Djiboutian franc */ + DJF = 'DJF', + /** Danish krone */ + DKK = 'DKK', + /** Dominican peso */ + DOP = 'DOP', + /** Algerian dinar */ + DZD = 'DZD', + /** Egyptian pound */ + EGP = 'EGP', + /** Eritrean nakfa */ + ERN = 'ERN', + /** Ethiopian birr */ + ETB = 'ETB', + /** Euro */ + EUR = 'EUR', + /** Fiji dollar */ + FJD = 'FJD', + /** Falkland Islands pound */ + FKP = 'FKP', + /** Pound sterling */ + GBP = 'GBP', + /** Georgian lari */ + GEL = 'GEL', + /** Ghanaian cedi */ + GHS = 'GHS', + /** Gibraltar pound */ + GIP = 'GIP', + /** Gambian dalasi */ + GMD = 'GMD', + /** Guinean franc */ + GNF = 'GNF', + /** Guatemalan quetzal */ + GTQ = 'GTQ', + /** Guyanese dollar */ + GYD = 'GYD', + /** Hong Kong dollar */ + HKD = 'HKD', + /** Honduran lempira */ + HNL = 'HNL', + /** Croatian kuna */ + HRK = 'HRK', + /** Haitian gourde */ + HTG = 'HTG', + /** Hungarian forint */ + HUF = 'HUF', + /** Indonesian rupiah */ + IDR = 'IDR', + /** Israeli new shekel */ + ILS = 'ILS', + /** Indian rupee */ + INR = 'INR', + /** Iraqi dinar */ + IQD = 'IQD', + /** Iranian rial */ + IRR = 'IRR', + /** Icelandic króna */ + ISK = 'ISK', + /** Jamaican dollar */ + JMD = 'JMD', + /** Jordanian dinar */ + JOD = 'JOD', + /** Japanese yen */ + JPY = 'JPY', + /** Kenyan shilling */ + KES = 'KES', + /** Kyrgyzstani som */ + KGS = 'KGS', + /** Cambodian riel */ + KHR = 'KHR', + /** Comoro franc */ + KMF = 'KMF', + /** North Korean won */ + KPW = 'KPW', + /** South Korean won */ + KRW = 'KRW', + /** Kuwaiti dinar */ + KWD = 'KWD', + /** Cayman Islands dollar */ + KYD = 'KYD', + /** Kazakhstani tenge */ + KZT = 'KZT', + /** Lao kip */ + LAK = 'LAK', + /** Lebanese pound */ + LBP = 'LBP', + /** Sri Lankan rupee */ + LKR = 'LKR', + /** Liberian dollar */ + LRD = 'LRD', + /** Lesotho loti */ + LSL = 'LSL', + /** Libyan dinar */ + LYD = 'LYD', + /** Moroccan dirham */ + MAD = 'MAD', + /** Moldovan leu */ + MDL = 'MDL', + /** Malagasy ariary */ + MGA = 'MGA', + /** Macedonian denar */ + MKD = 'MKD', + /** Myanmar kyat */ + MMK = 'MMK', + /** Mongolian tögrög */ + MNT = 'MNT', + /** Macanese pataca */ + MOP = 'MOP', + /** Mauritanian ouguiya */ + MRU = 'MRU', + /** Mauritian rupee */ + MUR = 'MUR', + /** Maldivian rufiyaa */ + MVR = 'MVR', + /** Malawian kwacha */ + MWK = 'MWK', + /** Mexican peso */ + MXN = 'MXN', + /** Malaysian ringgit */ + MYR = 'MYR', + /** Mozambican metical */ + MZN = 'MZN', + /** Namibian dollar */ + NAD = 'NAD', + /** Nigerian naira */ + NGN = 'NGN', + /** Nicaraguan córdoba */ + NIO = 'NIO', + /** Norwegian krone */ + NOK = 'NOK', + /** Nepalese rupee */ + NPR = 'NPR', + /** New Zealand dollar */ + NZD = 'NZD', + /** Omani rial */ + OMR = 'OMR', + /** Panamanian balboa */ + PAB = 'PAB', + /** Peruvian sol */ + PEN = 'PEN', + /** Papua New Guinean kina */ + PGK = 'PGK', + /** Philippine peso */ + PHP = 'PHP', + /** Pakistani rupee */ + PKR = 'PKR', + /** Polish złoty */ + PLN = 'PLN', + /** Paraguayan guaraní */ + PYG = 'PYG', + /** Qatari riyal */ + QAR = 'QAR', + /** Romanian leu */ + RON = 'RON', + /** Serbian dinar */ + RSD = 'RSD', + /** Russian ruble */ + RUB = 'RUB', + /** Rwandan franc */ + RWF = 'RWF', + /** Saudi riyal */ + SAR = 'SAR', + /** Solomon Islands dollar */ + SBD = 'SBD', + /** Seychelles rupee */ + SCR = 'SCR', + /** Sudanese pound */ + SDG = 'SDG', + /** Swedish krona/kronor */ + SEK = 'SEK', + /** Singapore dollar */ + SGD = 'SGD', + /** Saint Helena pound */ + SHP = 'SHP', + /** Sierra Leonean leone */ + SLL = 'SLL', + /** Somali shilling */ + SOS = 'SOS', + /** Surinamese dollar */ + SRD = 'SRD', + /** South Sudanese pound */ + SSP = 'SSP', + /** São Tomé and Príncipe dobra */ + STN = 'STN', + /** Salvadoran colón */ + SVC = 'SVC', + /** Syrian pound */ + SYP = 'SYP', + /** Swazi lilangeni */ + SZL = 'SZL', + /** Thai baht */ + THB = 'THB', + /** Tajikistani somoni */ + TJS = 'TJS', + /** Turkmenistan manat */ + TMT = 'TMT', + /** Tunisian dinar */ + TND = 'TND', + /** Tongan paʻanga */ + TOP = 'TOP', + /** Turkish lira */ + TRY = 'TRY', + /** Trinidad and Tobago dollar */ + TTD = 'TTD', + /** New Taiwan dollar */ + TWD = 'TWD', + /** Tanzanian shilling */ + TZS = 'TZS', + /** Ukrainian hryvnia */ + UAH = 'UAH', + /** Ugandan shilling */ + UGX = 'UGX', + /** United States dollar */ + USD = 'USD', + /** Uruguayan peso */ + UYU = 'UYU', + /** Uzbekistan som */ + UZS = 'UZS', + /** Venezuelan bolívar soberano */ + VES = 'VES', + /** Vietnamese đồng */ + VND = 'VND', + /** Vanuatu vatu */ + VUV = 'VUV', + /** Samoan tala */ + WST = 'WST', + /** CFA franc BEAC */ + XAF = 'XAF', + /** East Caribbean dollar */ + XCD = 'XCD', + /** CFA franc BCEAO */ + XOF = 'XOF', + /** CFP franc (franc Pacifique) */ + XPF = 'XPF', + /** Yemeni rial */ + YER = 'YER', + /** South African rand */ + ZAR = 'ZAR', + /** Zambian kwacha */ + ZMW = 'ZMW', + /** Zimbabwean dollar */ + ZWL = 'ZWL' } export type CurrentUser = { - channels: Array; - id: Scalars['ID']; - identifier: Scalars['String']; + channels: Array; + id: Scalars['ID']; + identifier: Scalars['String']; }; export type CurrentUserChannel = { - code: Scalars['String']; - id: Scalars['ID']; - permissions: Array; - token: Scalars['String']; + code: Scalars['String']; + id: Scalars['ID']; + permissions: Array; + token: Scalars['String']; }; export type CustomField = { - description?: Maybe>; - internal?: Maybe; - label?: Maybe>; - list: Scalars['Boolean']; - name: Scalars['String']; - nullable?: Maybe; - readonly?: Maybe; - type: Scalars['String']; - ui?: Maybe; -}; - -export type CustomFieldConfig = - | BooleanCustomFieldConfig - | DateTimeCustomFieldConfig - | FloatCustomFieldConfig - | IntCustomFieldConfig - | LocaleStringCustomFieldConfig - | 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']; }; /** @@ -809,148 +793,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']; }; /** @@ -962,8 +946,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>; }; /** @@ -971,138 +955,138 @@ export type FacetValueFilterInput = { * by the search, and in what quantity. */ export type FacetValueResult = { - count: Scalars['Int']; - facetValue: FacetValue; + count: Scalars['Int']; + facetValue: FacetValue; }; export type FacetValueTranslation = { - createdAt: Scalars['DateTime']; - id: Scalars['ID']; - languageCode: LanguageCode; - name: Scalars['String']; - updatedAt: Scalars['DateTime']; + createdAt: Scalars['DateTime']; + id: Scalars['ID']; + languageCode: LanguageCode; + name: Scalars['String']; + updatedAt: Scalars['DateTime']; }; export type FloatCustomFieldConfig = CustomField & { - description?: Maybe>; - internal?: Maybe; - label?: Maybe>; - list: Scalars['Boolean']; - max?: Maybe; - min?: Maybe; - name: Scalars['String']; - nullable?: Maybe; - readonly?: Maybe; - step?: Maybe; - type: Scalars['String']; - ui?: Maybe; + description?: Maybe>; + internal?: Maybe; + label?: Maybe>; + list: Scalars['Boolean']; + max?: Maybe; + min?: Maybe; + name: Scalars['String']; + nullable?: Maybe; + readonly?: Maybe; + step?: Maybe; + type: Scalars['String']; + ui?: Maybe; }; export type Fulfillment = Node & { - createdAt: Scalars['DateTime']; - customFields?: Maybe; - id: Scalars['ID']; - lines: Array; - method: Scalars['String']; - state: Scalars['String']; - /** @deprecated Use the `lines` field instead */ - summary: Array; - trackingCode?: Maybe; - updatedAt: Scalars['DateTime']; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + id: Scalars['ID']; + lines: Array; + method: Scalars['String']; + state: Scalars['String']; + /** @deprecated Use the `lines` field instead */ + summary: Array; + trackingCode?: Maybe; + updatedAt: Scalars['DateTime']; }; export type FulfillmentLine = { - fulfillment: Fulfillment; - fulfillmentId: Scalars['ID']; - orderLine: OrderLine; - orderLineId: Scalars['ID']; - quantity: Scalars['Int']; + fulfillment: Fulfillment; + fulfillmentId: Scalars['ID']; + orderLine: OrderLine; + orderLineId: Scalars['ID']; + quantity: Scalars['Int']; }; export enum GlobalFlag { - FALSE = 'FALSE', - INHERIT = 'INHERIT', - TRUE = 'TRUE', + FALSE = 'FALSE', + INHERIT = 'INHERIT', + TRUE = 'TRUE' } 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>; }; /** @@ -1110,8 +1094,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']; }; /** @@ -1119,51 +1103,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']; }; /** @@ -1176,578 +1160,600 @@ 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. - * An Order can have multiple shipping methods, in which case you can pass an array of ids. In this case, - * you should configure a custom ShippingLineAssignmentStrategy in order to know which OrderLines each - * shipping method will apply to. - */ - setOrderShippingMethod: SetOrderShippingMethodResult; - /** Transitions an Order to a new state. Valid next states can be found by querying `nextOrderStates` */ - transitionOrderToState?: Maybe; - /** Update an existing Customer */ - updateCustomer: Customer; - /** Update an existing Address */ - updateCustomerAddress: Address; - /** - * Confirm the update of the emailAddress with the provided token, which has been generated by the - * `requestUpdateCustomerEmailAddress` mutation. - */ - updateCustomerEmailAddress: UpdateCustomerEmailAddressResult; - /** Update the password of the active Customer */ - updateCustomerPassword: UpdateCustomerPasswordResult; - /** - * Verify a Customer email address with the token sent to that address. Only applicable if `authOptions.requireVerification` is set to true. - * - * If the Customer was not registered with a password in the `registerCustomerAccount` mutation, the password _must_ be - * provided here. - */ - verifyCustomerAccount: VerifyCustomerAccountResult; + /** Adds an item to the order. If custom fields are defined on the OrderLine entity, a third argument 'customFields' will be available. */ + addItemToOrder: UpdateOrderItemsResult; + /** Add a Payment to the Order */ + addPaymentToOrder: AddPaymentToOrderResult; + /** Adjusts an OrderLine. If custom fields are defined on the OrderLine entity, a third argument 'customFields' of type `OrderLineCustomFieldsInput` will be available. */ + adjustOrderLine: UpdateOrderItemsResult; + /** Applies the given coupon code to the active Order */ + applyCouponCode: ApplyCouponCodeResult; + /** Authenticates the user using a named authentication strategy */ + authenticate: AuthenticationResult; + /** Create a new Customer Address */ + createCustomerAddress: Address; + /** Delete an existing Address */ + deleteCustomerAddress: Success; + /** Authenticates the user using the native authentication strategy. This mutation is an alias for `authenticate({ native: { ... }})` */ + login: NativeAuthenticationResult; + /** End the current authenticated session */ + logout: Success; + /** Regenerate and send a verification token for a new Customer registration. Only applicable if `authOptions.requireVerification` is set to true. */ + refreshCustomerVerification: RefreshCustomerVerificationResult; + /** + * Register a Customer account with the given credentials. There are three possible registration flows: + * + * _If `authOptions.requireVerification` is set to `true`:_ + * + * 1. **The Customer is registered _with_ a password**. A verificationToken will be created (and typically emailed to the Customer). That + * verificationToken would then be passed to the `verifyCustomerAccount` mutation _without_ a password. The Customer is then + * verified and authenticated in one step. + * 2. **The Customer is registered _without_ a password**. A verificationToken will be created (and typically emailed to the Customer). That + * verificationToken would then be passed to the `verifyCustomerAccount` mutation _with_ the chosen password of the Customer. The Customer is then + * verified and authenticated in one step. + * + * _If `authOptions.requireVerification` is set to `false`:_ + * + * 3. The Customer _must_ be registered _with_ a password. No further action is needed - the Customer is able to authenticate immediately. + */ + registerCustomerAccount: RegisterCustomerAccountResult; + /** Remove all OrderLine from the Order */ + removeAllOrderLines: RemoveOrderItemsResult; + /** Removes the given coupon code from the active Order */ + removeCouponCode?: Maybe; + /** Remove an OrderLine from the Order */ + removeOrderLine: RemoveOrderItemsResult; + /** Requests a password reset email to be sent */ + requestPasswordReset?: Maybe; + /** + * Request to update the emailAddress of the active Customer. If `authOptions.requireVerification` is enabled + * (as is the default), then the `identifierChangeToken` will be assigned to the current User and + * a IdentifierChangeRequestEvent will be raised. This can then be used e.g. by the EmailPlugin to email + * that verification token to the Customer, which is then used to verify the change of email address. + */ + requestUpdateCustomerEmailAddress: RequestUpdateCustomerEmailAddressResult; + /** Resets a Customer's password based on the provided token */ + resetPassword: ResetPasswordResult; + /** Set the Customer for the Order. Required only if the Customer is not currently logged in */ + setCustomerForOrder: SetCustomerForOrderResult; + /** Sets the billing address for this order */ + setOrderBillingAddress: ActiveOrderResult; + /** Allows any custom fields to be set for the active order */ + setOrderCustomFields: ActiveOrderResult; + /** Sets the shipping address for this order */ + setOrderShippingAddress: ActiveOrderResult; + /** + * Sets the shipping method by id, which can be obtained with the `eligibleShippingMethods` query. + * An Order can have multiple shipping methods, in which case you can pass an array of ids. In this case, + * you should configure a custom ShippingLineAssignmentStrategy in order to know which OrderLines each + * shipping method will apply to. + */ + setOrderShippingMethod: SetOrderShippingMethodResult; + /** Transitions an Order to a new state. Valid next states can be found by querying `nextOrderStates` */ + transitionOrderToState?: Maybe; + /** Update an existing Customer */ + updateCustomer: Customer; + /** Update an existing Address */ + updateCustomerAddress: Address; + /** + * Confirm the update of the emailAddress with the provided token, which has been generated by the + * `requestUpdateCustomerEmailAddress` mutation. + */ + updateCustomerEmailAddress: UpdateCustomerEmailAddressResult; + /** Update the password of the active Customer */ + updateCustomerPassword: UpdateCustomerPasswordResult; + /** + * Verify a Customer email address with the token sent to that address. Only applicable if `authOptions.requireVerification` is set to true. + * + * If the Customer was not registered with a password in the `registerCustomerAccount` mutation, the password _must_ be + * provided here. + */ + verifyCustomerAccount: VerifyCustomerAccountResult; }; + export type MutationAddItemToOrderArgs = { - productVariantId: Scalars['ID']; - quantity: Scalars['Int']; + productVariantId: Scalars['ID']; + quantity: Scalars['Int']; }; + export type MutationAddPaymentToOrderArgs = { - input: PaymentInput; + input: PaymentInput; }; + export type MutationAdjustOrderLineArgs = { - orderLineId: Scalars['ID']; - quantity: Scalars['Int']; + orderLineId: Scalars['ID']; + quantity: Scalars['Int']; }; + export type MutationApplyCouponCodeArgs = { - couponCode: Scalars['String']; + couponCode: Scalars['String']; }; + export type MutationAuthenticateArgs = { - input: AuthenticationInput; - rememberMe?: InputMaybe; + input: AuthenticationInput; + rememberMe?: InputMaybe; }; + export type MutationCreateCustomerAddressArgs = { - input: CreateAddressInput; + input: CreateAddressInput; }; + export type MutationDeleteCustomerAddressArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type MutationLoginArgs = { - password: Scalars['String']; - rememberMe?: InputMaybe; - username: Scalars['String']; + password: Scalars['String']; + rememberMe?: InputMaybe; + username: Scalars['String']; }; + export type MutationRefreshCustomerVerificationArgs = { - emailAddress: Scalars['String']; + emailAddress: Scalars['String']; }; + export type MutationRegisterCustomerAccountArgs = { - input: RegisterCustomerInput; + input: RegisterCustomerInput; }; + export type MutationRemoveCouponCodeArgs = { - couponCode: Scalars['String']; + couponCode: Scalars['String']; }; + export type MutationRemoveOrderLineArgs = { - orderLineId: Scalars['ID']; + orderLineId: Scalars['ID']; }; + export type MutationRequestPasswordResetArgs = { - emailAddress: Scalars['String']; + emailAddress: Scalars['String']; }; + export type MutationRequestUpdateCustomerEmailAddressArgs = { - newEmailAddress: Scalars['String']; - password: Scalars['String']; + newEmailAddress: Scalars['String']; + password: Scalars['String']; }; + export type MutationResetPasswordArgs = { - password: Scalars['String']; - token: Scalars['String']; + password: Scalars['String']; + token: Scalars['String']; }; + export type MutationSetCustomerForOrderArgs = { - input: CreateCustomerInput; + input: CreateCustomerInput; }; + export type MutationSetOrderBillingAddressArgs = { - input: CreateAddressInput; + input: CreateAddressInput; }; + export type MutationSetOrderCustomFieldsArgs = { - input: UpdateOrderInput; + input: UpdateOrderInput; }; + export type MutationSetOrderShippingAddressArgs = { - input: CreateAddressInput; + input: CreateAddressInput; }; + export type MutationSetOrderShippingMethodArgs = { - shippingMethodId: Array; + shippingMethodId: Array; }; + export type MutationTransitionOrderToStateArgs = { - state: Scalars['String']; + state: Scalars['String']; }; + export type MutationUpdateCustomerArgs = { - input: UpdateCustomerInput; + input: UpdateCustomerInput; }; + export type MutationUpdateCustomerAddressArgs = { - input: UpdateAddressInput; + input: UpdateAddressInput; }; + export type MutationUpdateCustomerEmailAddressArgs = { - token: Scalars['String']; + token: Scalars['String']; }; + export type MutationUpdateCustomerPasswordArgs = { - currentPassword: Scalars['String']; - newPassword: Scalars['String']; + currentPassword: Scalars['String']; + newPassword: Scalars['String']; }; + export type MutationVerifyCustomerAccountArgs = { - password?: InputMaybe; - token: Scalars['String']; + password?: InputMaybe; + token: Scalars['String']; }; export type NativeAuthInput = { - password: Scalars['String']; - username: Scalars['String']; + password: Scalars['String']; + username: Scalars['String']; }; /** Returned when attempting an operation that relies on the NativeAuthStrategy, if that strategy is not configured. */ export type NativeAuthStrategyError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; }; -export type NativeAuthenticationResult = - | CurrentUser - | InvalidCredentialsError - | NativeAuthStrategyError - | NotVerifiedError; +export type NativeAuthenticationResult = CurrentUser | InvalidCredentialsError | NativeAuthStrategyError | NotVerifiedError; /** Returned when attempting to set a negative OrderLine quantity. */ export type NegativeQuantityError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; }; /** @@ -1755,12 +1761,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']; }; /** @@ -1768,283 +1774,284 @@ export type Node = { * and an unverified user attempts to authenticate. */ export type NotVerifiedError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; }; /** Operators for filtering on a list of Number fields */ export type NumberListOperators = { - inList: Scalars['Float']; + inList: Scalars['Float']; }; /** Operators for filtering on a Int or Float field */ export type NumberOperators = { - between?: InputMaybe; - eq?: InputMaybe; - gt?: InputMaybe; - gte?: InputMaybe; - isNull?: InputMaybe; - lt?: InputMaybe; - lte?: InputMaybe; + between?: InputMaybe; + eq?: InputMaybe; + gt?: InputMaybe; + gte?: InputMaybe; + isNull?: InputMaybe; + lt?: InputMaybe; + lte?: InputMaybe; }; export type NumberRange = { - end: Scalars['Float']; - start: Scalars['Float']; + end: Scalars['Float']; + start: Scalars['Float']; }; export type Order = Node & { - /** An order is active as long as the payment process has not been completed */ - active: Scalars['Boolean']; - billingAddress?: Maybe; - /** A unique code for the Order */ - code: Scalars['String']; - /** An array of all coupon codes applied to the Order */ - couponCodes: Array; - createdAt: Scalars['DateTime']; - currencyCode: CurrencyCode; - customFields?: Maybe; - customer?: Maybe; - discounts: Array; - fulfillments?: Maybe>; - history: HistoryEntryList; - id: Scalars['ID']; - lines: Array; - /** - * The date & time that the Order was placed, i.e. the Customer - * completed the checkout and the Order is no longer "active" - */ - orderPlacedAt?: Maybe; - payments?: Maybe>; - /** Promotions applied to the order. Only gets populated after the payment process has completed. */ - promotions: Array; - shipping: Scalars['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; - fulfillmentLines?: Maybe>; - id: Scalars['ID']; - /** 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; - /** The quantity at the time the Order was placed */ - orderPlacedQuantity: Scalars['Int']; - productVariant: ProductVariant; - /** - * The actual line price, taking into account both item discounts _and_ prorated (proportionally-distributed) - * Order-level discounts. This value is the true economic value of the OrderLine, and is used in tax - * and refund calculations. - */ - proratedLinePrice: Scalars['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; + fulfillmentLines?: Maybe>; + id: Scalars['ID']; + /** 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; + /** The quantity at the time the Order was placed */ + orderPlacedQuantity: Scalars['Int']; + productVariant: ProductVariant; + /** + * The actual line price, taking into account both item discounts _and_ prorated (proportionally-distributed) + * Order-level discounts. This value is the true economic value of the OrderLine, and is used in tax + * and refund calculations. + */ + proratedLinePrice: Scalars['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']; }; /** @@ -2052,31 +2059,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']; }; /** @@ -2084,8 +2091,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']; }; /** @@ -2093,77 +2100,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']; }; /** @@ -2199,885 +2206,860 @@ 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']; - lines: Array; - metadata?: Maybe; - method?: Maybe; - 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']; + lines: Array; + metadata?: Maybe; + method?: Maybe; + paymentId: Scalars['ID']; + reason?: Maybe; + shipping: Scalars['Int']; + state: Scalars['String']; + total: Scalars['Int']; + transactionId?: Maybe; + updatedAt: Scalars['DateTime']; }; export type RefundLine = { - orderLine: OrderLine; - orderLineId: Scalars['ID']; - quantity: Scalars['Int']; - refund: Refund; - refundId: Scalars['ID']; + orderLine: OrderLine; + orderLineId: Scalars['ID']; + quantity: Scalars['Int']; + refund: Refund; + refundId: Scalars['ID']; }; -export type RegisterCustomerAccountResult = - | MissingPasswordError - | NativeAuthStrategyError - | PasswordValidationError - | Success; +export type RegisterCustomerAccountResult = MissingPasswordError | NativeAuthStrategyError | PasswordValidationError | Success; export type RegisterCustomerInput = { - emailAddress: Scalars['String']; - firstName?: InputMaybe; - lastName?: InputMaybe; - password?: InputMaybe; - phoneNumber?: InputMaybe; - title?: InputMaybe; + emailAddress: Scalars['String']; + firstName?: InputMaybe; + lastName?: InputMaybe; + password?: InputMaybe; + phoneNumber?: InputMaybe; + title?: InputMaybe; }; export type RelationCustomFieldConfig = CustomField & { - description?: Maybe>; - entity: Scalars['String']; - internal?: Maybe; - label?: Maybe>; - list: Scalars['Boolean']; - name: Scalars['String']; - nullable?: Maybe; - readonly?: Maybe; - scalarFields: Array; - type: Scalars['String']; - ui?: Maybe; + description?: Maybe>; + entity: Scalars['String']; + internal?: Maybe; + label?: Maybe>; + list: Scalars['Boolean']; + name: Scalars['String']; + nullable?: Maybe; + readonly?: Maybe; + scalarFields: Array; + type: Scalars['String']; + ui?: Maybe; }; export type RemoveOrderItemsResult = Order | OrderModificationError; export type RequestPasswordResetResult = NativeAuthStrategyError | Success; -export type RequestUpdateCustomerEmailAddressResult = - | EmailAddressConflictError - | InvalidCredentialsError - | NativeAuthStrategyError - | Success; +export type RequestUpdateCustomerEmailAddressResult = EmailAddressConflictError | InvalidCredentialsError | NativeAuthStrategyError | Success; -export type ResetPasswordResult = - | CurrentUser - | NativeAuthStrategyError - | NotVerifiedError - | PasswordResetTokenExpiredError - | PasswordResetTokenInvalidError - | PasswordValidationError; +export type ResetPasswordResult = CurrentUser | NativeAuthStrategyError | NotVerifiedError | PasswordResetTokenExpiredError | PasswordResetTokenInvalidError | PasswordValidationError; export type Role = Node & { - channels: Array; - code: Scalars['String']; - createdAt: Scalars['DateTime']; - description: Scalars['String']; - id: Scalars['ID']; - permissions: Array; - updatedAt: Scalars['DateTime']; + channels: Array; + code: Scalars['String']; + createdAt: Scalars['DateTime']; + description: Scalars['String']; + id: Scalars['ID']; + permissions: Array; + updatedAt: Scalars['DateTime']; }; export type RoleList = PaginatedList & { - items: Array; - totalItems: Scalars['Int']; + items: Array; + totalItems: Scalars['Int']; }; export type SearchInput = { - collectionId?: InputMaybe; - collectionSlug?: InputMaybe; - facetValueFilters?: InputMaybe>; - 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']; }; /** @@ -3085,8 +3067,8 @@ export type User = Node & { * expired according to the `verificationTokenDuration` setting in the AuthOptions. */ export type VerificationTokenExpiredError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; }; /** @@ -3094,1351 +3076,320 @@ export type VerificationTokenExpiredError = ErrorResult & { * invalid or does not match any expected tokens. */ export type VerificationTokenInvalidError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; }; -export type VerifyCustomerAccountResult = - | CurrentUser - | MissingPasswordError - | NativeAuthStrategyError - | PasswordAlreadySetError - | PasswordValidationError - | VerificationTokenExpiredError - | VerificationTokenInvalidError; +export type VerifyCustomerAccountResult = CurrentUser | MissingPasswordError | NativeAuthStrategyError | PasswordAlreadySetError | PasswordValidationError | VerificationTokenExpiredError | VerificationTokenInvalidError; export type Zone = Node & { - createdAt: Scalars['DateTime']; - customFields?: Maybe; - id: Scalars['ID']; - members: Array; - name: Scalars['String']; - updatedAt: Scalars['DateTime']; -}; - -export type TestOrderFragmentFragment = { - id: string; - code: string; - state: string; - active: boolean; - subTotal: number; - subTotalWithTax: number; - shipping: number; - shippingWithTax: number; - total: number; - totalWithTax: number; - couponCodes: Array; - discounts: Array<{ - adjustmentSource: string; - amount: number; - amountWithTax: number; - description: string; - type: AdjustmentType; - }>; - lines: Array<{ - id: string; - quantity: number; - linePrice: number; - linePriceWithTax: number; - unitPrice: number; - unitPriceWithTax: number; - unitPriceChangeSinceAdded: number; - unitPriceWithTaxChangeSinceAdded: number; - discountedUnitPriceWithTax: number; - proratedUnitPriceWithTax: number; - productVariant: { id: string }; - discounts: Array<{ - adjustmentSource: string; - amount: number; - amountWithTax: number; - description: string; - type: AdjustmentType; - }>; - }>; - shippingLines: Array<{ shippingMethod: { id: string; code: string; description: string } }>; - customer?: { id: string; user?: { id: string; identifier: string } | null } | null; - history: { items: Array<{ id: string; type: HistoryEntryType; data: any }> }; -}; - -export type UpdatedOrderFragment = { - id: string; - code: string; - state: string; - active: boolean; - total: number; - totalWithTax: number; - lines: Array<{ - id: string; - quantity: number; - productVariant: { id: string }; - discounts: Array<{ - adjustmentSource: string; - amount: number; - amountWithTax: number; - description: string; - type: AdjustmentType; - }>; - }>; - discounts: Array<{ - adjustmentSource: string; - amount: number; - amountWithTax: number; - description: string; - type: AdjustmentType; - }>; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + id: Scalars['ID']; + members: Array; + name: Scalars['String']; + updatedAt: Scalars['DateTime']; }; +export type TestOrderFragmentFragment = { id: string, code: string, state: string, active: boolean, subTotal: number, subTotalWithTax: number, shipping: number, shippingWithTax: number, total: number, totalWithTax: number, couponCodes: Array, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }>, lines: Array<{ id: string, quantity: number, linePrice: number, linePriceWithTax: number, unitPrice: number, unitPriceWithTax: number, unitPriceChangeSinceAdded: number, unitPriceWithTaxChangeSinceAdded: number, discountedUnitPriceWithTax: number, proratedUnitPriceWithTax: number, productVariant: { id: string }, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }> }>, shippingLines: Array<{ shippingMethod: { id: string, code: string, description: string } }>, customer?: { id: string, user?: { id: string, identifier: string } | null } | null, history: { items: Array<{ id: string, type: HistoryEntryType, data: any }> } }; + +export type UpdatedOrderFragment = { id: string, code: string, state: string, active: boolean, total: number, totalWithTax: number, lines: Array<{ id: string, quantity: number, linePrice: number, linePriceWithTax: number, productVariant: { id: string }, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }> }>, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }> }; + export type AddItemToOrderMutationVariables = Exact<{ - productVariantId: Scalars['ID']; - quantity: Scalars['Int']; + productVariantId: Scalars['ID']; + quantity: Scalars['Int']; }>; -export type AddItemToOrderMutation = { - addItemToOrder: - | { - errorCode: ErrorCode; - message: string; - quantityAvailable: number; - order: { - id: string; - code: string; - state: string; - active: boolean; - total: number; - totalWithTax: number; - lines: Array<{ - id: string; - quantity: number; - 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, linePrice: number, linePriceWithTax: number, productVariant: { id: string }, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }> }>, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }> } } | { errorCode: ErrorCode, message: string } | { id: string, code: string, state: string, active: boolean, total: number, totalWithTax: number, lines: Array<{ id: string, quantity: number, linePrice: number, linePriceWithTax: number, productVariant: { id: string }, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }> }>, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }> } | { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } }; export type SearchProductsShopQueryVariables = Exact<{ - input: SearchInput; + input: SearchInput; }>; -export type SearchProductsShopQuery = { - search: { - totalItems: number; - items: Array<{ - productId: string; - productName: string; - productVariantId: string; - productVariantName: string; - sku: string; - collectionIds: Array; - price: { min: number; max: number } | { value: number }; - }>; - }; -}; + +export type SearchProductsShopQuery = { search: { totalItems: number, items: Array<{ productId: string, productName: string, productVariantId: string, productVariantName: string, sku: string, collectionIds: Array, price: { min: number, max: number } | { value: number } }> } }; export type RegisterMutationVariables = Exact<{ - input: RegisterCustomerInput; + input: RegisterCustomerInput; }>; -export type RegisterMutation = { - registerCustomerAccount: - | { errorCode: ErrorCode; message: string } - | { errorCode: ErrorCode; message: string } - | { errorCode: ErrorCode; message: string; validationErrorMessage: string } - | { success: boolean }; -}; -export type CurrentUserShopFragment = { - id: string; - identifier: string; - channels: Array<{ code: string; token: string; permissions: Array }>; -}; +export type RegisterMutation = { registerCustomerAccount: { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string, validationErrorMessage: string } | { success: boolean } }; + +export type CurrentUserShopFragment = { id: string, identifier: string, channels: Array<{ code: string, token: string, permissions: Array }> }; export type VerifyMutationVariables = Exact<{ - password?: InputMaybe; - token: Scalars['String']; + password?: InputMaybe; + token: Scalars['String']; }>; -export type VerifyMutation = { - verifyCustomerAccount: - | { - id: string; - identifier: string; - channels: Array<{ code: string; token: string; permissions: Array }>; - } - | { errorCode: ErrorCode; message: string } - | { errorCode: ErrorCode; message: string } - | { errorCode: ErrorCode; message: string } - | { errorCode: ErrorCode; message: string; validationErrorMessage: string } - | { errorCode: ErrorCode; message: string } - | { errorCode: ErrorCode; message: string }; -}; + +export type VerifyMutation = { verifyCustomerAccount: { id: string, identifier: string, channels: Array<{ code: string, token: string, permissions: Array }> } | { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string, validationErrorMessage: string } | { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } }; export type RefreshTokenMutationVariables = Exact<{ - emailAddress: Scalars['String']; + emailAddress: Scalars['String']; }>; -export type RefreshTokenMutation = { - refreshCustomerVerification: { errorCode: ErrorCode; message: string } | { success: boolean }; -}; + +export type RefreshTokenMutation = { refreshCustomerVerification: { errorCode: ErrorCode, message: string } | { success: boolean } }; export type RequestPasswordResetMutationVariables = Exact<{ - identifier: Scalars['String']; + identifier: Scalars['String']; }>; -export type RequestPasswordResetMutation = { - requestPasswordReset?: { errorCode: ErrorCode; message: string } | { success: boolean } | null; -}; + +export type RequestPasswordResetMutation = { requestPasswordReset?: { errorCode: ErrorCode, message: string } | { success: boolean } | null }; export type ResetPasswordMutationVariables = Exact<{ - token: Scalars['String']; - password: Scalars['String']; + token: Scalars['String']; + password: Scalars['String']; }>; -export type ResetPasswordMutation = { - resetPassword: - | { - id: string; - identifier: string; - channels: Array<{ code: string; token: string; permissions: Array }>; - } - | { errorCode: ErrorCode; message: string } - | { errorCode: ErrorCode; message: string } - | { errorCode: ErrorCode; message: string } - | { errorCode: ErrorCode; message: string } - | { errorCode: ErrorCode; message: string; validationErrorMessage: string }; -}; + +export type ResetPasswordMutation = { resetPassword: { id: string, identifier: string, channels: Array<{ code: string, token: string, permissions: Array }> } | { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string, validationErrorMessage: string } }; export type RequestUpdateEmailAddressMutationVariables = Exact<{ - password: Scalars['String']; - newEmailAddress: Scalars['String']; + password: Scalars['String']; + newEmailAddress: Scalars['String']; }>; -export type RequestUpdateEmailAddressMutation = { - requestUpdateCustomerEmailAddress: - | { errorCode: ErrorCode; message: string } - | { errorCode: ErrorCode; message: string } - | { errorCode: ErrorCode; message: string } - | { success: boolean }; -}; + +export type RequestUpdateEmailAddressMutation = { requestUpdateCustomerEmailAddress: { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } | { success: boolean } }; export type UpdateEmailAddressMutationVariables = Exact<{ - token: Scalars['String']; + token: Scalars['String']; }>; -export type UpdateEmailAddressMutation = { - updateCustomerEmailAddress: - | { errorCode: ErrorCode; message: string } - | { errorCode: ErrorCode; message: string } - | { errorCode: ErrorCode; message: string } - | { success: boolean }; -}; -export type GetActiveCustomerQueryVariables = Exact<{ [key: string]: never }>; +export type UpdateEmailAddressMutation = { updateCustomerEmailAddress: { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } | { success: boolean } }; + +export type GetActiveCustomerQueryVariables = Exact<{ [key: string]: never; }>; -export type GetActiveCustomerQuery = { activeCustomer?: { id: string; emailAddress: string } | null }; + +export type GetActiveCustomerQuery = { activeCustomer?: { id: string, emailAddress: string } | null }; export type CreateAddressShopMutationVariables = Exact<{ - input: CreateAddressInput; + input: CreateAddressInput; }>; -export type CreateAddressShopMutation = { - createCustomerAddress: { id: string; streetLine1: string; country: { code: string } }; -}; + +export type CreateAddressShopMutation = { createCustomerAddress: { id: string, streetLine1: string, country: { code: string } } }; export type UpdateAddressShopMutationVariables = Exact<{ - input: UpdateAddressInput; + input: UpdateAddressInput; }>; -export type UpdateAddressShopMutation = { - updateCustomerAddress: { streetLine1: string; country: { code: string } }; -}; + +export type UpdateAddressShopMutation = { updateCustomerAddress: { streetLine1: string, country: { code: string } } }; export type DeleteAddressShopMutationVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; + export type DeleteAddressShopMutation = { deleteCustomerAddress: { success: boolean } }; export type UpdateCustomerMutationVariables = Exact<{ - input: UpdateCustomerInput; + input: UpdateCustomerInput; }>; -export type UpdateCustomerMutation = { updateCustomer: { id: string; firstName: string; lastName: string } }; + +export type UpdateCustomerMutation = { updateCustomer: { id: string, firstName: string, lastName: string } }; export type UpdatePasswordMutationVariables = Exact<{ - old: Scalars['String']; - new: Scalars['String']; + old: Scalars['String']; + new: Scalars['String']; }>; -export type UpdatePasswordMutation = { - updateCustomerPassword: - | { errorCode: ErrorCode; message: string } - | { errorCode: ErrorCode; message: string } - | { errorCode: ErrorCode; message: string } - | { success: boolean }; -}; - -export type GetActiveOrderQueryVariables = Exact<{ [key: string]: never }>; - -export type GetActiveOrderQuery = { - activeOrder?: { - id: string; - code: string; - state: string; - active: boolean; - subTotal: number; - subTotalWithTax: number; - shipping: number; - shippingWithTax: number; - total: number; - totalWithTax: number; - couponCodes: Array; - discounts: Array<{ - adjustmentSource: string; - amount: number; - amountWithTax: number; - description: string; - type: AdjustmentType; - }>; - lines: Array<{ - id: string; - quantity: number; - linePrice: number; - linePriceWithTax: number; - unitPrice: number; - unitPriceWithTax: number; - unitPriceChangeSinceAdded: number; - unitPriceWithTaxChangeSinceAdded: number; - discountedUnitPriceWithTax: number; - proratedUnitPriceWithTax: number; - productVariant: { id: string }; - discounts: Array<{ - adjustmentSource: string; - amount: number; - amountWithTax: number; - description: string; - type: AdjustmentType; - }>; - }>; - shippingLines: Array<{ shippingMethod: { id: string; code: string; description: string } }>; - customer?: { id: string; user?: { id: string; identifier: string } | null } | null; - history: { items: Array<{ id: string; type: HistoryEntryType; data: any }> }; - } | null; -}; - -export type GetActiveOrderWithPriceDataQueryVariables = Exact<{ [key: string]: never }>; - -export type GetActiveOrderWithPriceDataQuery = { - activeOrder?: { - id: string; - subTotal: number; - subTotalWithTax: number; - total: number; - totalWithTax: number; - lines: Array<{ - id: string; - unitPrice: number; - unitPriceWithTax: number; - taxRate: number; - linePrice: number; - lineTax: number; - linePriceWithTax: number; - taxLines: Array<{ taxRate: number; description: string }>; - }>; - taxSummary: Array<{ description: string; taxRate: number; taxBase: number; taxTotal: number }>; - } | null; -}; + +export type UpdatePasswordMutation = { updateCustomerPassword: { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } | { success: boolean } }; + +export type GetActiveOrderQueryVariables = Exact<{ [key: string]: never; }>; + + +export type GetActiveOrderQuery = { activeOrder?: { id: string, code: string, state: string, active: boolean, subTotal: number, subTotalWithTax: number, shipping: number, shippingWithTax: number, total: number, totalWithTax: number, couponCodes: Array, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }>, lines: Array<{ id: string, quantity: number, linePrice: number, linePriceWithTax: number, unitPrice: number, unitPriceWithTax: number, unitPriceChangeSinceAdded: number, unitPriceWithTaxChangeSinceAdded: number, discountedUnitPriceWithTax: number, proratedUnitPriceWithTax: number, productVariant: { id: string }, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }> }>, shippingLines: Array<{ shippingMethod: { id: string, code: string, description: string } }>, customer?: { id: string, user?: { id: string, identifier: string } | null } | null, history: { items: Array<{ id: string, type: HistoryEntryType, data: any }> } } | null }; + +export type GetActiveOrderWithPriceDataQueryVariables = Exact<{ [key: string]: never; }>; + + +export type GetActiveOrderWithPriceDataQuery = { activeOrder?: { id: string, subTotal: number, subTotalWithTax: number, total: number, totalWithTax: number, lines: Array<{ id: string, unitPrice: number, unitPriceWithTax: number, taxRate: number, linePrice: number, lineTax: number, linePriceWithTax: number, taxLines: Array<{ taxRate: number, description: string }> }>, taxSummary: Array<{ description: string, taxRate: number, taxBase: number, taxTotal: number }> } | null }; export type AdjustItemQuantityMutationVariables = Exact<{ - orderLineId: Scalars['ID']; - quantity: Scalars['Int']; + orderLineId: Scalars['ID']; + quantity: Scalars['Int']; }>; -export type AdjustItemQuantityMutation = { - adjustOrderLine: - | { errorCode: ErrorCode; message: string } - | { errorCode: ErrorCode; message: string } - | { - id: string; - code: string; - state: string; - active: boolean; - subTotal: number; - subTotalWithTax: number; - shipping: number; - shippingWithTax: number; - total: number; - totalWithTax: number; - couponCodes: Array; - discounts: Array<{ - adjustmentSource: string; - amount: number; - amountWithTax: number; - description: string; - type: AdjustmentType; - }>; - lines: Array<{ - id: string; - quantity: number; - linePrice: number; - linePriceWithTax: number; - unitPrice: number; - unitPriceWithTax: number; - unitPriceChangeSinceAdded: number; - unitPriceWithTaxChangeSinceAdded: number; - discountedUnitPriceWithTax: number; - proratedUnitPriceWithTax: number; - productVariant: { id: string }; - discounts: Array<{ - adjustmentSource: string; - amount: number; - amountWithTax: number; - description: string; - type: AdjustmentType; - }>; - }>; - shippingLines: Array<{ shippingMethod: { id: string; code: string; description: string } }>; - customer?: { id: string; user?: { id: string; identifier: string } | null } | null; - history: { items: Array<{ id: string; type: HistoryEntryType; data: any }> }; - } - | { errorCode: ErrorCode; message: string } - | { errorCode: ErrorCode; message: string }; -}; + +export type AdjustItemQuantityMutation = { adjustOrderLine: { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } | { id: string, code: string, state: string, active: boolean, subTotal: number, subTotalWithTax: number, shipping: number, shippingWithTax: number, total: number, totalWithTax: number, couponCodes: Array, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }>, lines: Array<{ id: string, quantity: number, linePrice: number, linePriceWithTax: number, unitPrice: number, unitPriceWithTax: number, unitPriceChangeSinceAdded: number, unitPriceWithTaxChangeSinceAdded: number, discountedUnitPriceWithTax: number, proratedUnitPriceWithTax: number, productVariant: { id: string }, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }> }>, shippingLines: Array<{ shippingMethod: { id: string, code: string, description: string } }>, customer?: { id: string, user?: { id: string, identifier: string } | null } | null, history: { items: Array<{ id: string, type: HistoryEntryType, data: any }> } } | { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } }; export type RemoveItemFromOrderMutationVariables = Exact<{ - orderLineId: Scalars['ID']; + orderLineId: Scalars['ID']; }>; -export type RemoveItemFromOrderMutation = { - removeOrderLine: - | { - id: string; - code: string; - state: string; - active: boolean; - subTotal: number; - subTotalWithTax: number; - shipping: number; - shippingWithTax: number; - total: number; - totalWithTax: number; - couponCodes: Array; - discounts: Array<{ - adjustmentSource: string; - amount: number; - amountWithTax: number; - description: string; - type: AdjustmentType; - }>; - lines: Array<{ - id: string; - quantity: number; - linePrice: number; - linePriceWithTax: number; - unitPrice: number; - unitPriceWithTax: number; - unitPriceChangeSinceAdded: number; - unitPriceWithTaxChangeSinceAdded: number; - discountedUnitPriceWithTax: number; - proratedUnitPriceWithTax: number; - productVariant: { id: string }; - discounts: Array<{ - adjustmentSource: string; - amount: number; - amountWithTax: number; - description: string; - type: AdjustmentType; - }>; - }>; - shippingLines: Array<{ shippingMethod: { id: string; code: string; description: string } }>; - customer?: { id: string; user?: { id: string; identifier: string } | null } | null; - history: { items: Array<{ id: string; type: HistoryEntryType; data: any }> }; - } - | { errorCode: ErrorCode; message: string }; -}; - -export type GetShippingMethodsQueryVariables = Exact<{ [key: string]: never }>; - -export type GetShippingMethodsQuery = { - eligibleShippingMethods: Array<{ - id: string; - code: string; - price: number; - name: string; - description: string; - }>; -}; + +export type RemoveItemFromOrderMutation = { removeOrderLine: { id: string, code: string, state: string, active: boolean, subTotal: number, subTotalWithTax: number, shipping: number, shippingWithTax: number, total: number, totalWithTax: number, couponCodes: Array, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }>, lines: Array<{ id: string, quantity: number, linePrice: number, linePriceWithTax: number, unitPrice: number, unitPriceWithTax: number, unitPriceChangeSinceAdded: number, unitPriceWithTaxChangeSinceAdded: number, discountedUnitPriceWithTax: number, proratedUnitPriceWithTax: number, productVariant: { id: string }, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }> }>, shippingLines: Array<{ shippingMethod: { id: string, code: string, description: string } }>, customer?: { id: string, user?: { id: string, identifier: string } | null } | null, history: { items: Array<{ id: string, type: HistoryEntryType, data: any }> } } | { errorCode: ErrorCode, message: string } }; + +export type GetShippingMethodsQueryVariables = Exact<{ [key: string]: never; }>; + + +export type GetShippingMethodsQuery = { eligibleShippingMethods: Array<{ id: string, code: string, price: number, name: string, description: string }> }; export type SetShippingMethodMutationVariables = Exact<{ - id: Array | Scalars['ID']; + id: Array | Scalars['ID']; }>; -export type SetShippingMethodMutation = { - setOrderShippingMethod: - | { errorCode: ErrorCode; message: string } - | { errorCode: ErrorCode; message: string } - | { - id: string; - code: string; - state: string; - active: boolean; - subTotal: number; - subTotalWithTax: number; - shipping: number; - shippingWithTax: number; - total: number; - totalWithTax: number; - couponCodes: Array; - discounts: Array<{ - adjustmentSource: string; - amount: number; - amountWithTax: number; - description: string; - type: AdjustmentType; - }>; - lines: Array<{ - id: string; - quantity: number; - linePrice: number; - linePriceWithTax: number; - unitPrice: number; - unitPriceWithTax: number; - unitPriceChangeSinceAdded: number; - unitPriceWithTaxChangeSinceAdded: number; - discountedUnitPriceWithTax: number; - proratedUnitPriceWithTax: number; - productVariant: { id: string }; - discounts: Array<{ - adjustmentSource: string; - amount: number; - amountWithTax: number; - description: string; - type: AdjustmentType; - }>; - }>; - shippingLines: Array<{ shippingMethod: { id: string; code: string; description: string } }>; - customer?: { id: string; user?: { id: string; identifier: string } | null } | null; - history: { items: Array<{ id: string; type: HistoryEntryType; data: any }> }; - } - | { errorCode: ErrorCode; message: string }; -}; - -export type ActiveOrderCustomerFragment = { - id: string; - customer?: { id: string; emailAddress: string; firstName: string; lastName: string } | null; - lines: Array<{ id: string }>; -}; + +export type SetShippingMethodMutation = { setOrderShippingMethod: { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } | { id: string, code: string, state: string, active: boolean, subTotal: number, subTotalWithTax: number, shipping: number, shippingWithTax: number, total: number, totalWithTax: number, couponCodes: Array, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }>, lines: Array<{ id: string, quantity: number, linePrice: number, linePriceWithTax: number, unitPrice: number, unitPriceWithTax: number, unitPriceChangeSinceAdded: number, unitPriceWithTaxChangeSinceAdded: number, discountedUnitPriceWithTax: number, proratedUnitPriceWithTax: number, productVariant: { id: string }, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }> }>, shippingLines: Array<{ shippingMethod: { id: string, code: string, description: string } }>, customer?: { id: string, user?: { id: string, identifier: string } | null } | null, history: { items: Array<{ id: string, type: HistoryEntryType, data: any }> } } | { errorCode: ErrorCode, message: string } }; + +export type ActiveOrderCustomerFragment = { id: string, customer?: { id: string, emailAddress: string, firstName: string, lastName: string } | null, lines: Array<{ id: string }> }; export type SetCustomerForOrderMutationVariables = Exact<{ - input: CreateCustomerInput; + input: CreateCustomerInput; }>; -export type SetCustomerForOrderMutation = { - setCustomerForOrder: - | { errorCode: ErrorCode; message: string } - | { errorCode: ErrorCode; message: string } - | { errorCode: ErrorCode; message: string } - | { - 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; - discountedUnitPriceWithTax: number; - proratedUnitPriceWithTax: number; - productVariant: { id: string }; - discounts: Array<{ - adjustmentSource: string; - amount: number; - amountWithTax: number; - description: string; - type: AdjustmentType; - }>; - }>; - shippingLines: Array<{ shippingMethod: { id: string; code: string; description: string } }>; - customer?: { id: string; user?: { id: string; identifier: string } | null } | null; - history: { items: Array<{ id: string; type: HistoryEntryType; data: any }> }; - } | null; -}; + +export type GetOrderByCodeQuery = { orderByCode?: { id: string, code: string, state: string, active: boolean, subTotal: number, subTotalWithTax: number, shipping: number, shippingWithTax: number, total: number, totalWithTax: number, couponCodes: Array, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }>, lines: Array<{ id: string, quantity: number, linePrice: number, linePriceWithTax: number, unitPrice: number, unitPriceWithTax: number, unitPriceChangeSinceAdded: number, unitPriceWithTaxChangeSinceAdded: number, discountedUnitPriceWithTax: number, proratedUnitPriceWithTax: number, productVariant: { id: string }, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }> }>, shippingLines: Array<{ shippingMethod: { id: string, code: string, description: string } }>, customer?: { id: string, user?: { id: string, identifier: string } | null } | null, history: { items: Array<{ id: string, type: HistoryEntryType, data: any }> } } | null }; export type GetOrderShopQueryVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; -export type GetOrderShopQuery = { - order?: { - id: string; - code: string; - state: string; - active: boolean; - subTotal: number; - subTotalWithTax: number; - shipping: number; - shippingWithTax: number; - total: number; - totalWithTax: number; - couponCodes: Array; - discounts: Array<{ - adjustmentSource: string; - amount: number; - amountWithTax: number; - description: string; - type: AdjustmentType; - }>; - lines: Array<{ - id: string; - quantity: number; - linePrice: number; - linePriceWithTax: number; - unitPrice: number; - unitPriceWithTax: number; - unitPriceChangeSinceAdded: number; - unitPriceWithTaxChangeSinceAdded: number; - discountedUnitPriceWithTax: number; - proratedUnitPriceWithTax: number; - productVariant: { id: string }; - discounts: Array<{ - adjustmentSource: string; - amount: number; - amountWithTax: number; - description: string; - type: AdjustmentType; - }>; - }>; - shippingLines: Array<{ shippingMethod: { id: string; code: string; description: string } }>; - customer?: { id: string; user?: { id: string; identifier: string } | null } | null; - history: { items: Array<{ id: string; type: HistoryEntryType; data: any }> }; - } | null; -}; + +export type GetOrderShopQuery = { order?: { id: string, code: string, state: string, active: boolean, subTotal: number, subTotalWithTax: number, shipping: number, shippingWithTax: number, total: number, totalWithTax: number, couponCodes: Array, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }>, lines: Array<{ id: string, quantity: number, linePrice: number, linePriceWithTax: number, unitPrice: number, unitPriceWithTax: number, unitPriceChangeSinceAdded: number, unitPriceWithTaxChangeSinceAdded: number, discountedUnitPriceWithTax: number, proratedUnitPriceWithTax: number, productVariant: { id: string }, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }> }>, shippingLines: Array<{ shippingMethod: { id: string, code: string, description: string } }>, customer?: { id: string, user?: { id: string, identifier: string } | null } | null, history: { items: Array<{ id: string, type: HistoryEntryType, data: any }> } } | null }; export type GetOrderPromotionsByCodeQueryVariables = Exact<{ - code: Scalars['String']; + code: Scalars['String']; }>; -export type GetOrderPromotionsByCodeQuery = { - orderByCode?: { - id: string; - code: string; - state: string; - active: boolean; - subTotal: number; - subTotalWithTax: number; - shipping: number; - shippingWithTax: number; - total: number; - totalWithTax: number; - couponCodes: Array; - promotions: Array<{ id: string; name: string }>; - discounts: Array<{ - adjustmentSource: string; - amount: number; - amountWithTax: number; - description: string; - type: AdjustmentType; - }>; - lines: Array<{ - id: string; - quantity: number; - linePrice: number; - linePriceWithTax: number; - unitPrice: number; - unitPriceWithTax: number; - unitPriceChangeSinceAdded: number; - unitPriceWithTaxChangeSinceAdded: number; - discountedUnitPriceWithTax: number; - proratedUnitPriceWithTax: number; - productVariant: { id: string }; - discounts: Array<{ - adjustmentSource: string; - amount: number; - amountWithTax: number; - description: string; - type: AdjustmentType; - }>; - }>; - shippingLines: Array<{ shippingMethod: { id: string; code: string; description: string } }>; - customer?: { id: string; user?: { id: string; identifier: string } | null } | null; - history: { items: Array<{ id: string; type: HistoryEntryType; data: any }> }; - } | null; -}; - -export type GetAvailableCountriesQueryVariables = Exact<{ [key: string]: never }>; - -export type GetAvailableCountriesQuery = { availableCountries: Array<{ id: string; code: string }> }; + +export type GetOrderPromotionsByCodeQuery = { orderByCode?: { id: string, code: string, state: string, active: boolean, subTotal: number, subTotalWithTax: number, shipping: number, shippingWithTax: number, total: number, totalWithTax: number, couponCodes: Array, promotions: Array<{ id: string, name: string }>, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }>, lines: Array<{ id: string, quantity: number, linePrice: number, linePriceWithTax: number, unitPrice: number, unitPriceWithTax: number, unitPriceChangeSinceAdded: number, unitPriceWithTaxChangeSinceAdded: number, discountedUnitPriceWithTax: number, proratedUnitPriceWithTax: number, productVariant: { id: string }, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }> }>, shippingLines: Array<{ shippingMethod: { id: string, code: string, description: string } }>, customer?: { id: string, user?: { id: string, identifier: string } | null } | null, history: { items: Array<{ id: string, type: HistoryEntryType, data: any }> } } | null }; + +export type GetAvailableCountriesQueryVariables = Exact<{ [key: string]: never; }>; + + +export type GetAvailableCountriesQuery = { availableCountries: Array<{ id: string, code: string }> }; export type TransitionToStateMutationVariables = Exact<{ - state: Scalars['String']; + state: Scalars['String']; }>; -export type TransitionToStateMutation = { - transitionOrderToState?: - | { - id: string; - code: string; - state: string; - active: boolean; - subTotal: number; - subTotalWithTax: number; - shipping: number; - shippingWithTax: number; - total: number; - totalWithTax: number; - couponCodes: Array; - discounts: Array<{ - adjustmentSource: string; - amount: number; - amountWithTax: number; - description: string; - type: AdjustmentType; - }>; - lines: Array<{ - id: string; - quantity: number; - linePrice: number; - linePriceWithTax: number; - unitPrice: number; - unitPriceWithTax: number; - unitPriceChangeSinceAdded: number; - unitPriceWithTaxChangeSinceAdded: number; - discountedUnitPriceWithTax: number; - proratedUnitPriceWithTax: number; - productVariant: { id: string }; - discounts: Array<{ - adjustmentSource: string; - amount: number; - amountWithTax: number; - description: string; - type: AdjustmentType; - }>; - }>; - shippingLines: Array<{ shippingMethod: { id: string; code: string; description: string } }>; - customer?: { id: string; user?: { id: string; identifier: string } | null } | null; - history: { items: Array<{ id: string; type: HistoryEntryType; data: any }> }; - } - | { - errorCode: ErrorCode; - message: string; - transitionError: string; - fromState: string; - toState: string; - } - | null; -}; + +export type TransitionToStateMutation = { transitionOrderToState?: { id: string, code: string, state: string, active: boolean, subTotal: number, subTotalWithTax: number, shipping: number, shippingWithTax: number, total: number, totalWithTax: number, couponCodes: Array, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }>, lines: Array<{ id: string, quantity: number, linePrice: number, linePriceWithTax: number, unitPrice: number, unitPriceWithTax: number, unitPriceChangeSinceAdded: number, unitPriceWithTaxChangeSinceAdded: number, discountedUnitPriceWithTax: number, proratedUnitPriceWithTax: number, productVariant: { id: string }, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }> }>, shippingLines: Array<{ shippingMethod: { id: string, code: string, description: string } }>, customer?: { id: string, user?: { id: string, identifier: string } | null } | null, history: { items: Array<{ id: string, type: HistoryEntryType, data: any }> } } | { errorCode: ErrorCode, message: string, transitionError: string, fromState: string, toState: string } | null }; export type SetShippingAddressMutationVariables = Exact<{ - input: CreateAddressInput; + input: CreateAddressInput; }>; -export type SetShippingAddressMutation = { - setOrderShippingAddress: - | { errorCode: ErrorCode; message: string } - | { - shippingAddress?: { - fullName?: string | null; - company?: string | null; - streetLine1?: string | null; - streetLine2?: string | null; - city?: string | null; - province?: string | null; - postalCode?: string | null; - country?: string | null; - phoneNumber?: string | null; - } | null; - }; -}; + +export type SetShippingAddressMutation = { setOrderShippingAddress: { errorCode: ErrorCode, message: string } | { shippingAddress?: { fullName?: string | null, company?: string | null, streetLine1?: string | null, streetLine2?: string | null, city?: string | null, province?: string | null, postalCode?: string | null, country?: string | null, phoneNumber?: string | null } | null } }; export type SetBillingAddressMutationVariables = Exact<{ - input: CreateAddressInput; + input: CreateAddressInput; }>; -export type SetBillingAddressMutation = { - setOrderBillingAddress: - | { errorCode: ErrorCode; message: string } - | { - billingAddress?: { - fullName?: string | null; - company?: string | null; - streetLine1?: string | null; - streetLine2?: string | null; - city?: string | null; - province?: string | null; - postalCode?: string | null; - country?: string | null; - phoneNumber?: string | null; - } | null; - }; -}; - -export type TestOrderWithPaymentsFragment = { - id: string; - code: string; - state: string; - active: boolean; - subTotal: number; - subTotalWithTax: number; - shipping: number; - shippingWithTax: number; - total: number; - totalWithTax: number; - couponCodes: Array; - payments?: Array<{ - id: string; - transactionId?: string | null; - method: string; - amount: number; - state: string; - metadata?: any | null; - }> | null; - discounts: Array<{ - adjustmentSource: string; - amount: number; - amountWithTax: number; - description: string; - type: AdjustmentType; - }>; - lines: Array<{ - id: string; - quantity: number; - linePrice: number; - linePriceWithTax: number; - unitPrice: number; - unitPriceWithTax: number; - unitPriceChangeSinceAdded: number; - unitPriceWithTaxChangeSinceAdded: number; - discountedUnitPriceWithTax: number; - proratedUnitPriceWithTax: number; - productVariant: { id: string }; - discounts: Array<{ - adjustmentSource: string; - amount: number; - amountWithTax: number; - description: string; - type: AdjustmentType; - }>; - }>; - shippingLines: Array<{ shippingMethod: { id: string; code: string; description: string } }>; - customer?: { id: string; user?: { id: string; identifier: string } | null } | null; - history: { items: Array<{ id: string; type: HistoryEntryType; data: any }> }; -}; - -export type GetActiveOrderWithPaymentsQueryVariables = Exact<{ [key: string]: never }>; - -export type GetActiveOrderWithPaymentsQuery = { - activeOrder?: { - id: string; - code: string; - state: string; - active: boolean; - subTotal: number; - subTotalWithTax: number; - shipping: number; - shippingWithTax: number; - total: number; - totalWithTax: number; - couponCodes: Array; - payments?: Array<{ - id: string; - transactionId?: string | null; - method: string; - amount: number; - state: string; - metadata?: any | null; - }> | null; - discounts: Array<{ - adjustmentSource: string; - amount: number; - amountWithTax: number; - description: string; - type: AdjustmentType; - }>; - lines: Array<{ - id: string; - quantity: number; - linePrice: number; - linePriceWithTax: number; - unitPrice: number; - unitPriceWithTax: number; - unitPriceChangeSinceAdded: number; - unitPriceWithTaxChangeSinceAdded: number; - discountedUnitPriceWithTax: number; - proratedUnitPriceWithTax: number; - productVariant: { id: string }; - discounts: Array<{ - adjustmentSource: string; - amount: number; - amountWithTax: number; - description: string; - type: AdjustmentType; - }>; - }>; - shippingLines: Array<{ shippingMethod: { id: string; code: string; description: string } }>; - customer?: { id: string; user?: { id: string; identifier: string } | null } | null; - history: { items: Array<{ id: string; type: HistoryEntryType; data: any }> }; - } | null; -}; + +export type SetBillingAddressMutation = { setOrderBillingAddress: { errorCode: ErrorCode, message: string } | { billingAddress?: { fullName?: string | null, company?: string | null, streetLine1?: string | null, streetLine2?: string | null, city?: string | null, province?: string | null, postalCode?: string | null, country?: string | null, phoneNumber?: string | null } | null } }; + +export type TestOrderWithPaymentsFragment = { id: string, code: string, state: string, active: boolean, subTotal: number, subTotalWithTax: number, shipping: number, shippingWithTax: number, total: number, totalWithTax: number, couponCodes: Array, payments?: Array<{ id: string, transactionId?: string | null, method: string, amount: number, state: string, metadata?: any | null }> | null, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }>, lines: Array<{ id: string, quantity: number, linePrice: number, linePriceWithTax: number, unitPrice: number, unitPriceWithTax: number, unitPriceChangeSinceAdded: number, unitPriceWithTaxChangeSinceAdded: number, discountedUnitPriceWithTax: number, proratedUnitPriceWithTax: number, productVariant: { id: string }, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }> }>, shippingLines: Array<{ shippingMethod: { id: string, code: string, description: string } }>, customer?: { id: string, user?: { id: string, identifier: string } | null } | null, history: { items: Array<{ id: string, type: HistoryEntryType, data: any }> } }; + +export type GetActiveOrderWithPaymentsQueryVariables = Exact<{ [key: string]: never; }>; + + +export type GetActiveOrderWithPaymentsQuery = { activeOrder?: { id: string, code: string, state: string, active: boolean, subTotal: number, subTotalWithTax: number, shipping: number, shippingWithTax: number, total: number, totalWithTax: number, couponCodes: Array, payments?: Array<{ id: string, transactionId?: string | null, method: string, amount: number, state: string, metadata?: any | null }> | null, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }>, lines: Array<{ id: string, quantity: number, linePrice: number, linePriceWithTax: number, unitPrice: number, unitPriceWithTax: number, unitPriceChangeSinceAdded: number, unitPriceWithTaxChangeSinceAdded: number, discountedUnitPriceWithTax: number, proratedUnitPriceWithTax: number, productVariant: { id: string }, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }> }>, shippingLines: Array<{ shippingMethod: { id: string, code: string, description: string } }>, customer?: { id: string, user?: { id: string, identifier: string } | null } | null, history: { items: Array<{ id: string, type: HistoryEntryType, data: any }> } } | null }; export type AddPaymentToOrderMutationVariables = Exact<{ - input: PaymentInput; + input: PaymentInput; }>; -export type AddPaymentToOrderMutation = { - addPaymentToOrder: - | { errorCode: ErrorCode; message: string; eligibilityCheckerMessage?: string | null } - | { errorCode: ErrorCode; message: string } - | { - id: string; - code: string; - state: string; - active: boolean; - subTotal: number; - subTotalWithTax: number; - shipping: number; - shippingWithTax: number; - total: number; - totalWithTax: number; - couponCodes: Array; - payments?: Array<{ - id: string; - transactionId?: string | null; - method: string; - amount: number; - state: string; - metadata?: any | null; - }> | null; - discounts: Array<{ - adjustmentSource: string; - amount: number; - amountWithTax: number; - description: string; - type: AdjustmentType; - }>; - lines: Array<{ - id: string; - quantity: number; - linePrice: number; - linePriceWithTax: number; - unitPrice: number; - unitPriceWithTax: number; - unitPriceChangeSinceAdded: number; - unitPriceWithTaxChangeSinceAdded: number; - discountedUnitPriceWithTax: number; - proratedUnitPriceWithTax: number; - productVariant: { id: string }; - discounts: Array<{ - adjustmentSource: string; - amount: number; - amountWithTax: number; - description: string; - type: AdjustmentType; - }>; - }>; - shippingLines: Array<{ shippingMethod: { id: string; code: string; description: string } }>; - customer?: { id: string; user?: { id: string; identifier: string } | null } | null; - history: { items: Array<{ id: string; type: HistoryEntryType; data: any }> }; - } - | { errorCode: ErrorCode; message: string } - | { errorCode: ErrorCode; message: string; transitionError: string } - | { errorCode: ErrorCode; message: string; paymentErrorMessage: string } - | { errorCode: ErrorCode; message: string; paymentErrorMessage: string }; -}; - -export type GetActiveOrderPaymentsQueryVariables = Exact<{ [key: string]: never }>; - -export type GetActiveOrderPaymentsQuery = { - activeOrder?: { - id: string; - payments?: Array<{ - id: string; - transactionId?: string | null; - method: string; - amount: number; - state: string; - errorMessage?: string | null; - metadata?: any | null; - }> | null; - } | null; -}; + +export type AddPaymentToOrderMutation = { addPaymentToOrder: { errorCode: ErrorCode, message: string, eligibilityCheckerMessage?: string | null } | { errorCode: ErrorCode, message: string } | { id: string, code: string, state: string, active: boolean, subTotal: number, subTotalWithTax: number, shipping: number, shippingWithTax: number, total: number, totalWithTax: number, couponCodes: Array, payments?: Array<{ id: string, transactionId?: string | null, method: string, amount: number, state: string, metadata?: any | null }> | null, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }>, lines: Array<{ id: string, quantity: number, linePrice: number, linePriceWithTax: number, unitPrice: number, unitPriceWithTax: number, unitPriceChangeSinceAdded: number, unitPriceWithTaxChangeSinceAdded: number, discountedUnitPriceWithTax: number, proratedUnitPriceWithTax: number, productVariant: { id: string }, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }> }>, shippingLines: Array<{ shippingMethod: { id: string, code: string, description: string } }>, customer?: { id: string, user?: { id: string, identifier: string } | null } | null, history: { items: Array<{ id: string, type: HistoryEntryType, data: any }> } } | { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string, transitionError: string } | { errorCode: ErrorCode, message: string, paymentErrorMessage: string } | { errorCode: ErrorCode, message: string, paymentErrorMessage: string } }; + +export type GetActiveOrderPaymentsQueryVariables = Exact<{ [key: string]: never; }>; + + +export type GetActiveOrderPaymentsQuery = { activeOrder?: { id: string, payments?: Array<{ id: string, transactionId?: string | null, method: string, amount: number, state: string, errorMessage?: string | null, metadata?: any | null }> | null } | null }; export type GetOrderByCodeWithPaymentsQueryVariables = Exact<{ - code: Scalars['String']; + code: Scalars['String']; }>; -export type GetOrderByCodeWithPaymentsQuery = { - orderByCode?: { - id: string; - code: string; - state: string; - active: boolean; - subTotal: number; - subTotalWithTax: number; - shipping: number; - shippingWithTax: number; - total: number; - totalWithTax: number; - couponCodes: Array; - payments?: Array<{ - id: string; - transactionId?: string | null; - method: string; - amount: number; - state: string; - metadata?: any | null; - }> | null; - discounts: Array<{ - adjustmentSource: string; - amount: number; - amountWithTax: number; - description: string; - type: AdjustmentType; - }>; - lines: Array<{ - id: string; - quantity: number; - linePrice: number; - linePriceWithTax: number; - unitPrice: number; - unitPriceWithTax: number; - unitPriceChangeSinceAdded: number; - unitPriceWithTaxChangeSinceAdded: number; - discountedUnitPriceWithTax: number; - proratedUnitPriceWithTax: number; - productVariant: { id: string }; - discounts: Array<{ - adjustmentSource: string; - amount: number; - amountWithTax: number; - description: string; - type: AdjustmentType; - }>; - }>; - shippingLines: Array<{ shippingMethod: { id: string; code: string; description: string } }>; - customer?: { id: string; user?: { id: string; identifier: string } | null } | null; - history: { items: Array<{ id: string; type: HistoryEntryType; data: any }> }; - } | null; -}; - -export type GetActiveCustomerOrderWithItemFulfillmentsQueryVariables = Exact<{ [key: string]: never }>; - -export type GetActiveCustomerOrderWithItemFulfillmentsQuery = { - activeCustomer?: { - orders: { - totalItems: number; - items: Array<{ - id: string; - code: string; - state: string; - lines: Array<{ id: string }>; - fulfillments?: Array<{ - id: string; - state: string; - method: string; - trackingCode?: string | null; - }> | null; - }>; - }; - } | null; -}; - -export type GetNextOrderStatesQueryVariables = Exact<{ [key: string]: never }>; + +export type GetOrderByCodeWithPaymentsQuery = { orderByCode?: { id: string, code: string, state: string, active: boolean, subTotal: number, subTotalWithTax: number, shipping: number, shippingWithTax: number, total: number, totalWithTax: number, couponCodes: Array, payments?: Array<{ id: string, transactionId?: string | null, method: string, amount: number, state: string, metadata?: any | null }> | null, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }>, lines: Array<{ id: string, quantity: number, linePrice: number, linePriceWithTax: number, unitPrice: number, unitPriceWithTax: number, unitPriceChangeSinceAdded: number, unitPriceWithTaxChangeSinceAdded: number, discountedUnitPriceWithTax: number, proratedUnitPriceWithTax: number, productVariant: { id: string }, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }> }>, shippingLines: Array<{ shippingMethod: { id: string, code: string, description: string } }>, customer?: { id: string, user?: { id: string, identifier: string } | null } | null, history: { items: Array<{ id: string, type: HistoryEntryType, data: any }> } } | null }; + +export type GetActiveCustomerOrderWithItemFulfillmentsQueryVariables = Exact<{ [key: string]: never; }>; + + +export type GetActiveCustomerOrderWithItemFulfillmentsQuery = { activeCustomer?: { orders: { totalItems: number, items: Array<{ id: string, code: string, state: string, lines: Array<{ id: string }>, fulfillments?: Array<{ id: string, state: string, method: string, trackingCode?: string | null }> | null }> } } | null }; + +export type GetNextOrderStatesQueryVariables = Exact<{ [key: string]: never; }>; + export type GetNextOrderStatesQuery = { nextOrderStates: Array }; -export type GetCustomerAddressesQueryVariables = Exact<{ [key: string]: never }>; +export type GetCustomerAddressesQueryVariables = Exact<{ [key: string]: never; }>; -export type GetCustomerAddressesQuery = { - activeOrder?: { - customer?: { addresses?: Array<{ id: string; streetLine1: string }> | null } | null; - } | null; -}; -export type GetCustomerOrdersQueryVariables = Exact<{ [key: string]: never }>; +export type GetCustomerAddressesQuery = { activeOrder?: { customer?: { addresses?: Array<{ id: string, streetLine1: string }> | null } | null } | null }; -export type GetCustomerOrdersQuery = { - activeOrder?: { customer?: { orders: { items: Array<{ id: string }> } } | null } | null; -}; +export type GetCustomerOrdersQueryVariables = Exact<{ [key: string]: never; }>; -export type GetActiveCustomerOrdersQueryVariables = Exact<{ [key: string]: never }>; -export type GetActiveCustomerOrdersQuery = { - activeCustomer?: { - id: string; - orders: { totalItems: number; items: Array<{ id: string; state: string }> }; - } | null; -}; +export type GetCustomerOrdersQuery = { activeOrder?: { customer?: { orders: { items: Array<{ id: string }> } } | null } | null }; + +export type GetActiveCustomerOrdersQueryVariables = Exact<{ [key: string]: never; }>; + + +export type GetActiveCustomerOrdersQuery = { activeCustomer?: { id: string, orders: { totalItems: number, items: Array<{ id: string, state: string }> } } | null }; export type ApplyCouponCodeMutationVariables = Exact<{ - couponCode: Scalars['String']; + couponCode: Scalars['String']; }>; -export type ApplyCouponCodeMutation = { - applyCouponCode: - | { errorCode: ErrorCode; message: string } - | { errorCode: ErrorCode; message: string } - | { errorCode: ErrorCode; message: string } - | { - id: string; - code: string; - state: string; - active: boolean; - subTotal: number; - subTotalWithTax: number; - shipping: number; - shippingWithTax: number; - total: number; - totalWithTax: number; - couponCodes: Array; - discounts: Array<{ - adjustmentSource: string; - amount: number; - amountWithTax: number; - description: string; - type: AdjustmentType; - }>; - lines: Array<{ - id: string; - quantity: number; - linePrice: number; - linePriceWithTax: number; - unitPrice: number; - unitPriceWithTax: number; - unitPriceChangeSinceAdded: number; - unitPriceWithTaxChangeSinceAdded: number; - discountedUnitPriceWithTax: number; - proratedUnitPriceWithTax: number; - productVariant: { id: string }; - discounts: Array<{ - adjustmentSource: string; - amount: number; - amountWithTax: number; - description: string; - type: AdjustmentType; - }>; - }>; - shippingLines: Array<{ shippingMethod: { id: string; code: string; description: string } }>; - customer?: { id: string; user?: { id: string; identifier: string } | null } | null; - history: { items: Array<{ id: string; type: HistoryEntryType; data: any }> }; - }; -}; + +export type ApplyCouponCodeMutation = { applyCouponCode: { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } | { errorCode: ErrorCode, message: string } | { id: string, code: string, state: string, active: boolean, subTotal: number, subTotalWithTax: number, shipping: number, shippingWithTax: number, total: number, totalWithTax: number, couponCodes: Array, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }>, lines: Array<{ id: string, quantity: number, linePrice: number, linePriceWithTax: number, unitPrice: number, unitPriceWithTax: number, unitPriceChangeSinceAdded: number, unitPriceWithTaxChangeSinceAdded: number, discountedUnitPriceWithTax: number, proratedUnitPriceWithTax: number, productVariant: { id: string }, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }> }>, shippingLines: Array<{ shippingMethod: { id: string, code: string, description: string } }>, customer?: { id: string, user?: { id: string, identifier: string } | null } | null, history: { items: Array<{ id: string, type: HistoryEntryType, data: any }> } } }; export type RemoveCouponCodeMutationVariables = Exact<{ - couponCode: Scalars['String']; + couponCode: Scalars['String']; }>; -export type RemoveCouponCodeMutation = { - removeCouponCode?: { - id: string; - code: string; - state: string; - active: boolean; - subTotal: number; - subTotalWithTax: number; - shipping: number; - shippingWithTax: number; - total: number; - totalWithTax: number; - couponCodes: Array; - discounts: Array<{ - adjustmentSource: string; - amount: number; - amountWithTax: number; - description: string; - type: AdjustmentType; - }>; - lines: Array<{ - id: string; - quantity: number; - linePrice: number; - linePriceWithTax: number; - unitPrice: number; - unitPriceWithTax: number; - unitPriceChangeSinceAdded: number; - unitPriceWithTaxChangeSinceAdded: number; - discountedUnitPriceWithTax: number; - proratedUnitPriceWithTax: number; - productVariant: { id: string }; - discounts: Array<{ - adjustmentSource: string; - amount: number; - amountWithTax: number; - description: string; - type: AdjustmentType; - }>; - }>; - shippingLines: Array<{ shippingMethod: { id: string; code: string; description: string } }>; - customer?: { id: string; user?: { id: string; identifier: string } | null } | null; - history: { items: Array<{ id: string; type: HistoryEntryType; data: any }> }; - } | null; -}; - -export type RemoveAllOrderLinesMutationVariables = Exact<{ [key: string]: never }>; - -export type RemoveAllOrderLinesMutation = { - removeAllOrderLines: - | { - id: string; - code: string; - state: string; - active: boolean; - subTotal: number; - subTotalWithTax: number; - shipping: number; - shippingWithTax: number; - total: number; - totalWithTax: number; - couponCodes: Array; - discounts: Array<{ - adjustmentSource: string; - amount: number; - amountWithTax: number; - description: string; - type: AdjustmentType; - }>; - lines: Array<{ - id: string; - quantity: number; - linePrice: number; - linePriceWithTax: number; - unitPrice: number; - unitPriceWithTax: number; - unitPriceChangeSinceAdded: number; - unitPriceWithTaxChangeSinceAdded: number; - discountedUnitPriceWithTax: number; - proratedUnitPriceWithTax: number; - productVariant: { id: string }; - discounts: Array<{ - adjustmentSource: string; - amount: number; - amountWithTax: number; - description: string; - type: AdjustmentType; - }>; - }>; - shippingLines: Array<{ shippingMethod: { id: string; code: string; description: string } }>; - customer?: { id: string; user?: { id: string; identifier: string } | null } | null; - history: { items: Array<{ id: string; type: HistoryEntryType; data: any }> }; - } - | { errorCode: ErrorCode; message: string }; -}; - -export type GetEligiblePaymentMethodsQueryVariables = Exact<{ [key: string]: never }>; - -export type GetEligiblePaymentMethodsQuery = { - eligiblePaymentMethods: Array<{ - id: string; - code: string; - eligibilityMessage?: string | null; - isEligible: boolean; - }>; -}; + +export type RemoveCouponCodeMutation = { removeCouponCode?: { id: string, code: string, state: string, active: boolean, subTotal: number, subTotalWithTax: number, shipping: number, shippingWithTax: number, total: number, totalWithTax: number, couponCodes: Array, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }>, lines: Array<{ id: string, quantity: number, linePrice: number, linePriceWithTax: number, unitPrice: number, unitPriceWithTax: number, unitPriceChangeSinceAdded: number, unitPriceWithTaxChangeSinceAdded: number, discountedUnitPriceWithTax: number, proratedUnitPriceWithTax: number, productVariant: { id: string }, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }> }>, shippingLines: Array<{ shippingMethod: { id: string, code: string, description: string } }>, customer?: { id: string, user?: { id: string, identifier: string } | null } | null, history: { items: Array<{ id: string, type: HistoryEntryType, data: any }> } } | null }; + +export type RemoveAllOrderLinesMutationVariables = Exact<{ [key: string]: never; }>; + + +export type RemoveAllOrderLinesMutation = { removeAllOrderLines: { id: string, code: string, state: string, active: boolean, subTotal: number, subTotalWithTax: number, shipping: number, shippingWithTax: number, total: number, totalWithTax: number, couponCodes: Array, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }>, lines: Array<{ id: string, quantity: number, linePrice: number, linePriceWithTax: number, unitPrice: number, unitPriceWithTax: number, unitPriceChangeSinceAdded: number, unitPriceWithTaxChangeSinceAdded: number, discountedUnitPriceWithTax: number, proratedUnitPriceWithTax: number, productVariant: { id: string }, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }> }>, shippingLines: Array<{ shippingMethod: { id: string, code: string, description: string } }>, customer?: { id: string, user?: { id: string, identifier: string } | null } | null, history: { items: Array<{ id: string, type: HistoryEntryType, data: any }> } } | { errorCode: ErrorCode, message: string } }; + +export type GetEligiblePaymentMethodsQueryVariables = Exact<{ [key: string]: never; }>; + + +export type GetEligiblePaymentMethodsQuery = { eligiblePaymentMethods: Array<{ id: string, code: string, eligibilityMessage?: string | null, isEligible: boolean }> }; export type GetProductStockLevelQueryVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; -export type GetProductStockLevelQuery = { - product?: { id: string; variants: Array<{ id: string; stockLevel: string }> } | null; -}; + +export type GetProductStockLevelQuery = { product?: { id: string, variants: Array<{ id: string, stockLevel: string }> } | null }; export type GetActiveCustomerWithOrdersProductSlugQueryVariables = Exact<{ - options?: InputMaybe; + options?: InputMaybe; }>; -export type GetActiveCustomerWithOrdersProductSlugQuery = { - activeCustomer?: { - orders: { items: Array<{ lines: Array<{ productVariant: { product: { slug: string } } }> }> }; - } | null; -}; + +export type GetActiveCustomerWithOrdersProductSlugQuery = { activeCustomer?: { orders: { items: Array<{ lines: Array<{ productVariant: { product: { slug: string } } }> }> } } | null }; export type GetActiveCustomerWithOrdersProductPriceQueryVariables = Exact<{ - options?: InputMaybe; + options?: InputMaybe; }>; -export type GetActiveCustomerWithOrdersProductPriceQuery = { - activeCustomer?: { - orders: { - items: Array<{ - lines: Array<{ - linePrice: number; - productVariant: { id: string; name: string; price: number }; - }>; - }>; - }; - } | null; -}; + +export type GetActiveCustomerWithOrdersProductPriceQuery = { activeCustomer?: { orders: { items: Array<{ lines: Array<{ linePrice: number, productVariant: { id: string, name: string, price: number } }> }> } } | null }; diff --git a/packages/core/e2e/graphql/shop-definitions.ts b/packages/core/e2e/graphql/shop-definitions.ts index a182d1a64a..2aae684858 100644 --- a/packages/core/e2e/graphql/shop-definitions.ts +++ b/packages/core/e2e/graphql/shop-definitions.ts @@ -80,6 +80,8 @@ export const UPDATED_ORDER_FRAGMENT = gql` productVariant { id } + linePrice + linePriceWithTax discounts { adjustmentSource amount diff --git a/packages/core/e2e/money-strategy.e2e-spec.ts b/packages/core/e2e/money-strategy.e2e-spec.ts new file mode 100644 index 0000000000..64ad2f94ff --- /dev/null +++ b/packages/core/e2e/money-strategy.e2e-spec.ts @@ -0,0 +1,135 @@ +import { CompatibilityMoneyStrategy, DefaultMoneyStrategy, mergeConfig } from '@vendure/core'; +import { createErrorResultGuard, createTestEnvironment, ErrorResultGuard } from '@vendure/testing'; +import path from 'path'; +import { ColumnOptions } from 'typeorm'; + +import { initialData } from '../../../e2e-common/e2e-initial-data'; +import { testConfig, TEST_SETUP_TIMEOUT_MS } from '../../../e2e-common/test-config'; +import { Logger, MoneyStrategy } from '../src/index'; + +import * as Codegen from './graphql/generated-e2e-admin-types'; +import { SortOrder } from './graphql/generated-e2e-admin-types'; +import * as CodegenShop from './graphql/generated-e2e-shop-types'; +import { AddItemToOrderMutation, AddItemToOrderMutationVariables } from './graphql/generated-e2e-shop-types'; +import { GET_PRODUCT_VARIANT_LIST } from './graphql/shared-definitions'; +import { ADD_ITEM_TO_ORDER } from './graphql/shop-definitions'; + +// tslint:disable:no-non-null-assertion + +const orderGuard: ErrorResultGuard = createErrorResultGuard( + input => !!input.total, +); + +class CustomMoneyStrategy implements MoneyStrategy { + readonly moneyColumnOptions: ColumnOptions = { + type: 'bigint', + transformer: { + to: (entityValue: number) => { + return entityValue; + }, + from: (databaseValue: string): number => { + if (databaseValue == null) { + return databaseValue; + } + const intVal = Number.parseInt(databaseValue, 10); + if (!Number.isSafeInteger(intVal)) { + Logger.warn(`Monetary value ${databaseValue} is not a safe integer!`); + } + if (Number.isNaN(intVal)) { + Logger.warn(`Monetary value ${databaseValue} is not a number!`); + } + return intVal; + }, + }, + }; + + round(value: number, quantity = 1): number { + return Math.round(value * quantity); + } +} + +describe('Custom MoneyStrategy', () => { + const { server, adminClient, shopClient } = createTestEnvironment( + mergeConfig(testConfig(), { + entityOptions: { + moneyStrategy: new CustomMoneyStrategy(), + }, + }), + ); + + let cheapVariantId: string; + let expensiveVariantId: string; + + beforeAll(async () => { + await server.init({ + initialData, + productsCsvPath: path.join(__dirname, 'fixtures/e2e-products-money-handling.csv'), + customerCount: 1, + }); + await adminClient.asSuperAdmin(); + }, TEST_SETUP_TIMEOUT_MS); + + afterAll(async () => { + await server.destroy(); + }); + + it('check initial prices', async () => { + const { productVariants } = await adminClient.query< + Codegen.GetProductVariantListQuery, + Codegen.GetProductVariantListQueryVariables + >(GET_PRODUCT_VARIANT_LIST, { + options: { + sort: { + price: SortOrder.ASC, + }, + }, + }); + expect(productVariants.items[0].price).toBe(31); + expect(productVariants.items[0].priceWithTax).toBe(37); + expect(productVariants.items[1].price).toBe(9_999_999_00); + expect(productVariants.items[1].priceWithTax).toBe(11_999_998_80); + + cheapVariantId = productVariants.items[0].id; + expensiveVariantId = productVariants.items[1].id; + }); + + // https://github.com/vendure-ecommerce/vendure/issues/838 + it('can handle totals over 21 million', async () => { + await shopClient.asAnonymousUser(); + const { addItemToOrder } = await shopClient.query< + AddItemToOrderMutation, + AddItemToOrderMutationVariables + >(ADD_ITEM_TO_ORDER, { + productVariantId: expensiveVariantId, + quantity: 2, + }); + orderGuard.assertSuccess(addItemToOrder); + + expect(addItemToOrder.lines[0].linePrice).toBe(1_999_999_800); + expect(addItemToOrder.lines[0].linePriceWithTax).toBe(2_399_999_760); + }); + + // https://github.com/vendure-ecommerce/vendure/issues/1835 + // 31 * 1.2 = 37.2 + // Math.round(37.2 * 10) =372 + it('tax calculation rounds at the unit level', async () => { + await shopClient.asAnonymousUser(); + const { addItemToOrder } = await shopClient.query< + AddItemToOrderMutation, + AddItemToOrderMutationVariables + >(ADD_ITEM_TO_ORDER, { + productVariantId: cheapVariantId, + quantity: 10, + }); + orderGuard.assertSuccess(addItemToOrder); + + expect(addItemToOrder.lines[0].linePrice).toBe(310); + expect(addItemToOrder.lines[0].linePriceWithTax).toBe(372); + }); +}); + +class CustomRoundingStrategy extends DefaultMoneyStrategy { + round(value: number): number { + return value; + } +} diff --git a/packages/core/e2e/order-modification.e2e-spec.ts b/packages/core/e2e/order-modification.e2e-spec.ts index 63cd9691d7..ed8d2db338 100644 --- a/packages/core/e2e/order-modification.e2e-spec.ts +++ b/packages/core/e2e/order-modification.e2e-spec.ts @@ -1647,7 +1647,6 @@ describe('Order modification', () => { orderGuard.assertSuccess(order); const originalTotalWithTax = order.totalWithTax; - const transitionOrderToState = await adminTransitionOrderToState(order.id, 'Modifying'); orderGuard.assertSuccess(transitionOrderToState); diff --git a/packages/core/e2e/order-promotion.e2e-spec.ts b/packages/core/e2e/order-promotion.e2e-spec.ts index ed393ee028..2e2ec6469b 100644 --- a/packages/core/e2e/order-promotion.e2e-spec.ts +++ b/packages/core/e2e/order-promotion.e2e-spec.ts @@ -1198,9 +1198,9 @@ describe('Promotions applied to Orders', () => { }); orderResultGuard.assertSuccess(setOrderShippingMethod); expect(setOrderShippingMethod.discounts).toEqual([]); - expect(setOrderShippingMethod.shipping).toBe(287); + expect(setOrderShippingMethod.shipping).toBe(288); expect(setOrderShippingMethod.shippingWithTax).toBe(345); - expect(setOrderShippingMethod.total).toBe(5287); + expect(setOrderShippingMethod.total).toBe(5288); expect(setOrderShippingMethod.totalWithTax).toBe(6345); const { applyCouponCode } = await shopClient.query< diff --git a/packages/core/e2e/product-channel.e2e-spec.ts b/packages/core/e2e/product-channel.e2e-spec.ts index fcf9f23230..7a8f4bec51 100644 --- a/packages/core/e2e/product-channel.e2e-spec.ts +++ b/packages/core/e2e/product-channel.e2e-spec.ts @@ -6,23 +6,12 @@ import { initialData } from '../../../e2e-common/e2e-initial-data'; import { testConfig, TEST_SETUP_TIMEOUT_MS } from '../../../e2e-common/test-config'; import { - AssignProductsToChannel, - AssignProductVariantsToChannel, - CreateAdministrator, - CreateChannel, - CreateProduct, - CreateProductVariants, - CreateRole, CurrencyCode, - GetProductWithVariants, LanguageCode, Permission, ProductVariantFragment, - RemoveProductsFromChannel, - RemoveProductVariantsFromChannel, - UpdateChannel, - UpdateProduct, } from './graphql/generated-e2e-admin-types'; +import * as Codegen from './graphql/generated-e2e-admin-types'; import { ASSIGN_PRODUCTVARIANT_TO_CHANNEL, ASSIGN_PRODUCT_TO_CHANNEL, @@ -312,9 +301,6 @@ describe('ChannelAware Products and ProductVariants', () => { id: product1.id, }); expect(product!.channels.map(c => c.id).sort()).toEqual(['T_3']); - expect(product!.variants.map(v => v.price)).toEqual([ - Math.round(product1.variants[0].price * PRICE_FACTOR), - ]); // Third Channel is configured to include taxes in price, so they should be the same. expect(product!.variants.map(v => v.priceWithTax)).toEqual([ Math.round(product1.variants[0].priceWithTax * PRICE_FACTOR), diff --git a/packages/core/src/api/common/id-codec.ts b/packages/core/src/api/common/id-codec.ts index ab1952a044..6f61feed94 100644 --- a/packages/core/src/api/common/id-codec.ts +++ b/packages/core/src/api/common/id-codec.ts @@ -1,6 +1,6 @@ import { ID } from '@vendure/common/lib/shared-types'; -import { EntityIdStrategy } from '../../config/entity-id-strategy/entity-id-strategy'; +import { EntityIdStrategy } from '../../config/entity/entity-id-strategy'; import { VendureEntity } from '../../entity/base/base.entity'; const ID_KEYS = ['id']; diff --git a/packages/core/src/api/config/generate-list-options.ts b/packages/core/src/api/config/generate-list-options.ts index 909d5ff6c4..49f94eea9a 100644 --- a/packages/core/src/api/config/generate-list-options.ts +++ b/packages/core/src/api/config/generate-list-options.ts @@ -118,7 +118,7 @@ function createSortParameter(schema: GraphQLSchema, targetType: GraphQLObjectTyp fields.push(...Object.values(existingInput.getFields())); } - const sortableTypes = ['ID', 'String', 'Int', 'Float', 'DateTime']; + const sortableTypes = ['ID', 'String', 'Int', 'Float', 'DateTime', 'Money']; return new GraphQLInputObjectType({ name: inputName, fields: fields @@ -191,6 +191,7 @@ function createFilterParameter(schema: GraphQLSchema, targetType: GraphQLObjectT return BooleanOperators; case 'Int': case 'Float': + case 'Money': return NumberOperators; case 'DateTime': return DateOperators; diff --git a/packages/core/src/api/config/generate-resolvers.ts b/packages/core/src/api/config/generate-resolvers.ts index 364eb630e7..c8d68d94fc 100644 --- a/packages/core/src/api/config/generate-resolvers.ts +++ b/packages/core/src/api/config/generate-resolvers.ts @@ -1,7 +1,7 @@ import { IFieldResolver, IResolvers } from '@graphql-tools/utils'; import { StockMovementType } from '@vendure/common/lib/generated-types'; -import { GraphQLSchema } from 'graphql'; -import { GraphQLDateTime, GraphQLJSON } from 'graphql-scalars'; +import { GraphQLFloat, GraphQLSchema } from 'graphql'; +import { GraphQLDateTime, GraphQLJSON, GraphQLSafeInt } from 'graphql-scalars'; import { GraphQLUpload } from 'graphql-upload'; import { REQUEST_CONTEXT_KEY } from '../../common/constants'; @@ -18,6 +18,8 @@ import { CustomFieldRelationResolverService } from '../common/custom-field-relat import { ApiType } from '../common/get-api-type'; import { RequestContext } from '../common/request-context'; +import { GraphQLMoney } from './money-scalar'; + /** * @description * Generates additional resolvers required for things like resolution of union types, @@ -82,6 +84,7 @@ export function generateResolvers( const commonResolvers = { JSON: GraphQLJSON, DateTime: GraphQLDateTime, + Money: GraphQLMoney, Node: dummyResolveType, PaginatedList: dummyResolveType, Upload: (GraphQLUpload as any) || dummyResolveType, diff --git a/packages/core/src/api/config/money-scalar.ts b/packages/core/src/api/config/money-scalar.ts new file mode 100644 index 0000000000..910d890265 --- /dev/null +++ b/packages/core/src/api/config/money-scalar.ts @@ -0,0 +1,68 @@ +import { GraphQLError, GraphQLScalarType, Kind, print } from 'graphql'; +import { inspect } from 'graphql/jsutils/inspect'; + +export function isObjectLike(value: unknown): value is { [key: string]: unknown } { + // tslint:disable-next-line:triple-equals + return typeof value == 'object' && value !== null; +} + +// Support serializing objects with custom valueOf() or toJSON() functions - +// a common way to represent a complex value which can be represented as +// a string (ex: MongoDB id objects). +function serializeObject(outputValue: unknown): unknown { + if (isObjectLike(outputValue)) { + if (typeof outputValue.valueOf === 'function') { + const valueOfResult = outputValue.valueOf(); + if (!isObjectLike(valueOfResult)) { + return valueOfResult; + } + } + if (typeof outputValue.toJSON === 'function') { + return outputValue.toJSON(); + } + } + return outputValue; +} + +/** + * @description + * The Money scalar is used to represent monetary values in the GraphQL API. It is based on the native `Float` scalar. + */ +export const GraphQLMoney = new GraphQLScalarType({ + name: 'Money', + description: + 'The `Money` scalar type represents monetary values and supports signed double-precision fractional values as specified by [IEEE 754](https://en.wikipedia.org/wiki/IEEE_floating_point).', + serialize(outputValue) { + const coercedValue = serializeObject(outputValue); + + if (typeof coercedValue === 'boolean') { + return coercedValue ? 1 : 0; + } + + let num = coercedValue; + if (typeof coercedValue === 'string' && coercedValue !== '') { + num = Number(coercedValue); + } + + if (typeof num !== 'number' || !Number.isFinite(num)) { + throw new GraphQLError(`Money cannot represent non numeric value: ${inspect(coercedValue)}`); + } + return num; + }, + + parseValue(inputValue) { + if (typeof inputValue !== 'number' || !Number.isFinite(inputValue)) { + throw new GraphQLError(`Money cannot represent non numeric value: ${inspect(inputValue)}`); + } + return inputValue; + }, + + parseLiteral(valueNode) { + if (valueNode.kind !== Kind.FLOAT && valueNode.kind !== Kind.INT) { + throw new GraphQLError(`Money cannot represent non numeric value: ${print(valueNode)}`, { + nodes: valueNode, + }); + } + return parseFloat(valueNode.value); + }, +}); diff --git a/packages/core/src/api/schema/admin-api/order-admin.type.graphql b/packages/core/src/api/schema/admin-api/order-admin.type.graphql index 7b5c4ce536..260aa091c5 100644 --- a/packages/core/src/api/schema/admin-api/order-admin.type.graphql +++ b/packages/core/src/api/schema/admin-api/order-admin.type.graphql @@ -27,7 +27,7 @@ type OrderModification implements Node { id: ID! createdAt: DateTime! updatedAt: DateTime! - priceChange: Int! + priceChange: Money! note: String! lines: [OrderModificationLine!]! surcharges: [Surcharge!] diff --git a/packages/core/src/api/schema/admin-api/order.api.graphql b/packages/core/src/api/schema/admin-api/order.api.graphql index 0ef2fe78f0..dca4bc079a 100644 --- a/packages/core/src/api/schema/admin-api/order.api.graphql +++ b/packages/core/src/api/schema/admin-api/order.api.graphql @@ -102,8 +102,8 @@ input CancelOrderInput { input RefundOrderInput { lines: [OrderLineInput!]! - shipping: Int! - adjustment: Int! + shipping: Money! + adjustment: Money! paymentId: ID! reason: String } @@ -184,7 +184,7 @@ input OrderLineInput { input SurchargeInput { description: String! sku: String - price: Int! + price: Money! priceIncludesTax: Boolean! taxRate: Float taxDescription: String diff --git a/packages/core/src/api/schema/admin-api/product.api.graphql b/packages/core/src/api/schema/admin-api/product.api.graphql index 882e4b7025..be10ff5eb6 100644 --- a/packages/core/src/api/schema/admin-api/product.api.graphql +++ b/packages/core/src/api/schema/admin-api/product.api.graphql @@ -121,7 +121,7 @@ input CreateProductVariantInput { translations: [ProductVariantTranslationInput!]! facetValueIds: [ID!] sku: String! - price: Int + price: Money taxCategoryId: ID optionIds: [ID!] featuredAssetId: ID @@ -140,7 +140,7 @@ input UpdateProductVariantInput { facetValueIds: [ID!] sku: String taxCategoryId: ID - price: Int + price: Money featuredAssetId: ID assetIds: [ID!] stockOnHand: Int diff --git a/packages/core/src/api/schema/admin-api/shipping-method.api.graphql b/packages/core/src/api/schema/admin-api/shipping-method.api.graphql index 9f679961e7..983e60213e 100644 --- a/packages/core/src/api/schema/admin-api/shipping-method.api.graphql +++ b/packages/core/src/api/schema/admin-api/shipping-method.api.graphql @@ -67,7 +67,7 @@ type TestShippingMethodResult { } type TestShippingMethodQuote { - price: Int! - priceWithTax: Int! + price: Money! + priceWithTax: Money! metadata: JSON } diff --git a/packages/core/src/api/schema/common/common-types.graphql b/packages/core/src/api/schema/common/common-types.graphql index 67d898421c..48dddfbe08 100644 --- a/packages/core/src/api/schema/common/common-types.graphql +++ b/packages/core/src/api/schema/common/common-types.graphql @@ -3,6 +3,9 @@ scalar JSON scalar DateTime scalar Upload +# Our custom scalars +scalar Money + interface PaginatedList { items: [Node!]! totalItems: Int! @@ -21,7 +24,7 @@ type Adjustment { adjustmentSource: String! type: AdjustmentType! description: String! - amount: Int! + amount: Money! data: JSON } @@ -233,8 +236,8 @@ type Success { type ShippingMethodQuote { id: ID! - price: Int! - priceWithTax: Int! + price: Money! + priceWithTax: Money! code: String! name: String! description: String! diff --git a/packages/core/src/api/schema/common/order.type.graphql b/packages/core/src/api/schema/common/order.type.graphql index 6c32597fbd..d62c62f3a6 100644 --- a/packages/core/src/api/schema/common/order.type.graphql +++ b/packages/core/src/api/schema/common/order.type.graphql @@ -44,21 +44,21 @@ type Order implements Node { To get a total of all OrderLines which does not account for prorated discounts, use the sum of `OrderLine.discountedLinePrice` values. """ - subTotal: Int! + subTotal: Money! "Same as subTotal, but inclusive of tax" - subTotalWithTax: Int! + subTotalWithTax: Money! currencyCode: CurrencyCode! shippingLines: [ShippingLine!]! - shipping: Int! - shippingWithTax: Int! + shipping: Money! + shippingWithTax: Money! """ Equal to subTotal plus shipping """ - total: Int! + total: Money! """ The final payable amount. Equal to subTotalWithTax plus shippingWithTax """ - totalWithTax: Int! + totalWithTax: Money! """ A summary of the taxes being applied to this Order """ @@ -76,9 +76,9 @@ type OrderTaxSummary { "The taxRate as a percentage" taxRate: Float! "The total net price or OrderItems to which this taxRate applies" - taxBase: Int! + taxBase: Money! "The total tax being applied to the Order at this taxRate" - taxTotal: Int! + taxTotal: Money! } type OrderAddress { @@ -102,10 +102,10 @@ type OrderList implements PaginatedList { type ShippingLine { id: ID! shippingMethod: ShippingMethod! - price: Int! - priceWithTax: Int! - discountedPrice: Int! - discountedPriceWithTax: Int! + price: Money! + priceWithTax: Money! + discountedPrice: Money! + discountedPriceWithTax: Money! discounts: [Discount!]! } @@ -113,8 +113,8 @@ type Discount { adjustmentSource: String! type: AdjustmentType! description: String! - amount: Int! - amountWithTax: Int! + amount: Money! + amountWithTax: Money! } type OrderItem implements Node { @@ -123,9 +123,9 @@ type OrderItem implements Node { updatedAt: DateTime! cancelled: Boolean! "The price of a single unit, excluding tax and discounts" - unitPrice: Int! + unitPrice: Money! "The price of a single unit, including tax but excluding discounts" - unitPriceWithTax: Int! + unitPriceWithTax: Money! """ The price of a single unit including discounts, excluding tax. @@ -134,18 +134,18 @@ type OrderItem implements Node { correct price to display to customers to avoid confusion about the internal handling of distributed Order-level discounts. """ - discountedUnitPrice: Int! + discountedUnitPrice: Money! "The price of a single unit including discounts and tax" - discountedUnitPriceWithTax: Int! + discountedUnitPriceWithTax: Money! """ The actual unit price, taking into account both item discounts _and_ prorated (proportionally-distributed) Order-level discounts. This value is the true economic value of the OrderItem, and is used in tax and refund calculations. """ - proratedUnitPrice: Int! + proratedUnitPrice: Money! "The proratedUnitPrice including tax" - proratedUnitPriceWithTax: Int! - unitTax: Int! + proratedUnitPriceWithTax: Money! + unitTax: Money! taxRate: Float! adjustments: [Adjustment!]! taxLines: [TaxLine!]! @@ -160,17 +160,17 @@ type OrderLine implements Node { productVariant: ProductVariant! featuredAsset: Asset "The price of a single unit, excluding tax and discounts" - unitPrice: Int! + unitPrice: Money! "The price of a single unit, including tax but excluding discounts" - unitPriceWithTax: Int! + unitPriceWithTax: Money! """ Non-zero if the unitPrice has changed since it was initially added to Order """ - unitPriceChangeSinceAdded: Int! + unitPriceChangeSinceAdded: Money! """ Non-zero if the unitPriceWithTax has changed since it was initially added to Order """ - unitPriceWithTaxChangeSinceAdded: Int! + unitPriceWithTaxChangeSinceAdded: Money! """ The price of a single unit including discounts, excluding tax. @@ -179,17 +179,17 @@ type OrderLine implements Node { correct price to display to customers to avoid confusion about the internal handling of distributed Order-level discounts. """ - discountedUnitPrice: Int! + discountedUnitPrice: Money! "The price of a single unit including discounts and tax" - discountedUnitPriceWithTax: Int! + discountedUnitPriceWithTax: Money! """ The actual unit price, taking into account both item discounts _and_ prorated (proportionally-distributed) Order-level discounts. This value is the true economic value of the OrderItem, and is used in tax and refund calculations. """ - proratedUnitPrice: Int! + proratedUnitPrice: Money! "The proratedUnitPrice including tax" - proratedUnitPriceWithTax: Int! + proratedUnitPriceWithTax: Money! quantity: Int! "The quantity at the time the Order was placed" orderPlacedQuantity: Int! @@ -197,25 +197,25 @@ type OrderLine implements Node { """ The total price of the line excluding tax and discounts. """ - linePrice: Int! + linePrice: Money! """ The total price of the line including tax but excluding discounts. """ - linePriceWithTax: Int! + linePriceWithTax: Money! "The price of the line including discounts, excluding tax" - discountedLinePrice: Int! + discountedLinePrice: Money! "The price of the line including discounts and tax" - discountedLinePriceWithTax: Int! + discountedLinePriceWithTax: Money! """ 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: Int! + proratedLinePrice: Money! "The proratedLinePrice including tax" - proratedLinePriceWithTax: Int! + proratedLinePriceWithTax: Money! "The total tax on this line" - lineTax: Int! + lineTax: Money! discounts: [Discount!]! taxLines: [TaxLine!]! order: Order! @@ -227,7 +227,7 @@ type Payment implements Node { createdAt: DateTime! updatedAt: DateTime! method: String! - amount: Int! + amount: Money! state: String! transactionId: String errorMessage: String @@ -247,10 +247,10 @@ type Refund implements Node { id: ID! createdAt: DateTime! updatedAt: DateTime! - items: Int! - shipping: Int! - adjustment: Int! - total: Int! + items: Money! + shipping: Money! + adjustment: Money! + total: Money! method: String state: String! transactionId: String @@ -286,7 +286,7 @@ type Surcharge implements Node { description: String! sku: String taxLines: [TaxLine!]! - price: Int! - priceWithTax: Int! + price: Money! + priceWithTax: Money! taxRate: Float! } diff --git a/packages/core/src/api/schema/common/product-search.type.graphql b/packages/core/src/api/schema/common/product-search.type.graphql index e0c348815e..1fc35c9f23 100644 --- a/packages/core/src/api/schema/common/product-search.type.graphql +++ b/packages/core/src/api/schema/common/product-search.type.graphql @@ -59,11 +59,11 @@ union SearchResultPrice = PriceRange | SinglePrice "The price value where the result has a single price" type SinglePrice { - value: Int! + value: Money! } "The price range where the result has more than one price" type PriceRange { - min: Int! - max: Int! + min: Money! + max: Money! } diff --git a/packages/core/src/api/schema/common/product.type.graphql b/packages/core/src/api/schema/common/product.type.graphql index 6bd4555f21..37247651b3 100644 --- a/packages/core/src/api/schema/common/product.type.graphql +++ b/packages/core/src/api/schema/common/product.type.graphql @@ -49,9 +49,9 @@ type ProductVariant implements Node { name: String! featuredAsset: Asset assets: [Asset!]! - price: Int! + price: Money! currencyCode: CurrencyCode! - priceWithTax: Int! + priceWithTax: Money! stockLevel: String! taxRateApplied: TaxRate! taxCategory: TaxCategory! diff --git a/packages/core/src/bootstrap.ts b/packages/core/src/bootstrap.ts index 6bf676eabd..7e0a523ba7 100644 --- a/packages/core/src/bootstrap.ts +++ b/packages/core/src/bootstrap.ts @@ -15,6 +15,7 @@ import { coreEntitiesMap } from './entity/entities'; import { registerCustomEntityFields } from './entity/register-custom-entity-fields'; import { runEntityMetadataModifiers } from './entity/run-entity-metadata-modifiers'; import { setEntityIdStrategy } from './entity/set-entity-id-strategy'; +import { setMoneyStrategy } from './entity/set-money-strategy'; import { validateCustomFieldsConfig } from './entity/validate-custom-fields-config'; import { getConfigurationFunction, getEntitiesFromPlugins } from './plugin/plugin-metadata'; import { getPluginStartupMessages } from './plugin/plugin-utils'; @@ -142,6 +143,8 @@ export async function preBootstrapConfig( let config = getConfig(); const entityIdStrategy = config.entityOptions.entityIdStrategy ?? config.entityIdStrategy; setEntityIdStrategy(entityIdStrategy, entities); + const moneyStrategy = config.entityOptions.moneyStrategy; + setMoneyStrategy(moneyStrategy, entities); const customFieldValidationResult = validateCustomFieldsConfig(config.customFields, entities); if (!customFieldValidationResult.valid) { process.exitCode = 1; diff --git a/packages/core/src/common/round-money.ts b/packages/core/src/common/round-money.ts new file mode 100644 index 0000000000..c07dd0727e --- /dev/null +++ b/packages/core/src/common/round-money.ts @@ -0,0 +1,11 @@ +import { getConfig } from '../config/config-helpers'; +import { MoneyStrategy } from '../config/entity/money-strategy'; + +let moneyStrategy: MoneyStrategy; + +export function roundMoney(value: number, quantity = 1): number { + if (!moneyStrategy) { + moneyStrategy = getConfig().entityOptions.moneyStrategy; + } + return moneyStrategy.round(value, quantity); +} diff --git a/packages/core/src/common/tax-utils.ts b/packages/core/src/common/tax-utils.ts index 1ad01866c2..94d2906491 100644 --- a/packages/core/src/common/tax-utils.ts +++ b/packages/core/src/common/tax-utils.ts @@ -2,7 +2,7 @@ * Returns the tax component of a given gross price. */ export function taxComponentOf(grossPrice: number, taxRatePc: number): number { - return Math.round(grossPrice - grossPrice / ((100 + taxRatePc) / 100)); + return grossPrice - grossPrice / ((100 + taxRatePc) / 100); } /** @@ -16,7 +16,7 @@ export function netPriceOf(grossPrice: number, taxRatePc: number): number { * Returns the tax applicable to the given net price. */ export function taxPayableOn(netPrice: number, taxRatePc: number): number { - return Math.round(netPrice * (taxRatePc / 100)); + return netPrice * (taxRatePc / 100); } /** diff --git a/packages/core/src/config/catalog/default-product-variant-price-calculation-strategy.spec.ts b/packages/core/src/config/catalog/default-product-variant-price-calculation-strategy.spec.ts index 135ac22c2f..ded6f6dd52 100644 --- a/packages/core/src/config/catalog/default-product-variant-price-calculation-strategy.spec.ts +++ b/packages/core/src/config/catalog/default-product-variant-price-calculation-strategy.spec.ts @@ -1,3 +1,4 @@ +import { roundMoney } from '../../common/round-money'; import { createRequestContext, MockTaxRateService, @@ -146,7 +147,7 @@ describe('DefaultProductVariantPriceCalculationStrategy', () => { }); expect(result).toEqual({ - price: taxRateDefaultStandard.netPriceOf(inputPrice), + price: roundMoney(taxRateDefaultStandard.netPriceOf(inputPrice)), priceIncludesTax: false, }); }); @@ -161,7 +162,7 @@ describe('DefaultProductVariantPriceCalculationStrategy', () => { }); expect(result).toEqual({ - price: taxRateDefaultReduced.netPriceOf(inputPrice), + price: roundMoney(taxRateDefaultReduced.netPriceOf(inputPrice)), priceIncludesTax: false, }); }); @@ -176,7 +177,7 @@ describe('DefaultProductVariantPriceCalculationStrategy', () => { }); expect(result).toEqual({ - price: taxRateDefaultStandard.netPriceOf(inputPrice), + price: roundMoney(taxRateDefaultStandard.netPriceOf(inputPrice)), priceIncludesTax: false, }); }); diff --git a/packages/core/src/config/catalog/default-product-variant-price-calculation-strategy.ts b/packages/core/src/config/catalog/default-product-variant-price-calculation-strategy.ts index 7caebe512f..8144e220ee 100644 --- a/packages/core/src/config/catalog/default-product-variant-price-calculation-strategy.ts +++ b/packages/core/src/config/catalog/default-product-variant-price-calculation-strategy.ts @@ -1,4 +1,5 @@ import { Injector } from '../../common/injector'; +import { roundMoney } from '../../common/round-money'; import { PriceCalculationResult } from '../../common/types/common-types'; import { idsAreEqual } from '../../common/utils'; import { TaxRateService } from '../../service/services/tax-rate.service'; @@ -36,7 +37,7 @@ export class DefaultProductVariantPriceCalculationStrategy implements ProductVar ctx.channel.defaultTaxZone, taxCategory, ); - price = taxRateForDefaultZone.netPriceOf(inputPrice); + price = roundMoney(taxRateForDefaultZone.netPriceOf(inputPrice)); } } diff --git a/packages/core/src/config/config.service.mock.ts b/packages/core/src/config/config.service.mock.ts index 76774d739a..e4e3008cf5 100644 --- a/packages/core/src/config/config.service.mock.ts +++ b/packages/core/src/config/config.service.mock.ts @@ -2,7 +2,7 @@ import { VendureEntity } from '../entity/base/base.entity'; import { MockClass } from '../testing/testing-types'; import { ConfigService } from './config.service'; -import { EntityIdStrategy, PrimaryKeyType } from './entity-id-strategy/entity-id-strategy'; +import { EntityIdStrategy, PrimaryKeyType } from './entity/entity-id-strategy'; export class MockConfigService implements MockClass { apiOptions = { diff --git a/packages/core/src/config/config.service.ts b/packages/core/src/config/config.service.ts index 5e1815e5d7..7cd168c743 100644 --- a/packages/core/src/config/config.service.ts +++ b/packages/core/src/config/config.service.ts @@ -4,7 +4,7 @@ import { ConnectionOptions } from 'typeorm'; import { getConfig } from './config-helpers'; import { CustomFields } from './custom-field/custom-field-types'; -import { EntityIdStrategy } from './entity-id-strategy/entity-id-strategy'; +import { EntityIdStrategy } from './entity/entity-id-strategy'; import { Logger, VendureLogger } from './logger/vendure-logger'; import { ApiOptions, diff --git a/packages/core/src/config/default-config.ts b/packages/core/src/config/default-config.ts index 6bab6aef7e..91aa0a4dc3 100644 --- a/packages/core/src/config/default-config.ts +++ b/packages/core/src/config/default-config.ts @@ -20,7 +20,8 @@ import { defaultCollectionFilters } from './catalog/default-collection-filters'; import { DefaultProductVariantPriceCalculationStrategy } from './catalog/default-product-variant-price-calculation-strategy'; import { DefaultStockDisplayStrategy } from './catalog/default-stock-display-strategy'; import { DefaultStockLocationStrategy } from './catalog/default-stock-location-strategy'; -import { AutoIncrementIdStrategy } from './entity-id-strategy/auto-increment-id-strategy'; +import { AutoIncrementIdStrategy } from './entity/auto-increment-id-strategy'; +import { DefaultMoneyStrategy } from './entity/default-money-strategy'; import { defaultFulfillmentProcess } from './fulfillment/default-fulfillment-process'; import { manualFulfillmentHandler } from './fulfillment/manual-fulfillment-handler'; import { DefaultLogger } from './logger/default-logger'; @@ -119,6 +120,7 @@ export const defaultConfig: RuntimeVendureConfig = { type: 'mysql', }, entityOptions: { + moneyStrategy: new DefaultMoneyStrategy(), channelCacheTtl: 30000, zoneCacheTtl: 30000, taxRateCacheTtl: 30000, diff --git a/packages/core/src/config/entity-id-strategy/auto-increment-id-strategy.ts b/packages/core/src/config/entity/auto-increment-id-strategy.ts similarity index 100% rename from packages/core/src/config/entity-id-strategy/auto-increment-id-strategy.ts rename to packages/core/src/config/entity/auto-increment-id-strategy.ts diff --git a/packages/core/src/config/entity-id-strategy/base64-id-strategy.ts b/packages/core/src/config/entity/base64-id-strategy.ts similarity index 100% rename from packages/core/src/config/entity-id-strategy/base64-id-strategy.ts rename to packages/core/src/config/entity/base64-id-strategy.ts diff --git a/packages/core/src/config/entity/bigint-money-strategy.ts b/packages/core/src/config/entity/bigint-money-strategy.ts new file mode 100644 index 0000000000..87877f7da5 --- /dev/null +++ b/packages/core/src/config/entity/bigint-money-strategy.ts @@ -0,0 +1,44 @@ +import { ColumnOptions } from 'typeorm'; + +import { Logger } from '../logger/vendure-logger'; + +import { MoneyStrategy } from './money-strategy'; + +/** + * @description + * A {@link MoneyStrategy} that stores monetary values as a `bigint` type in the database, which + * allows values up to ~9 quadrillion to be stored (limited by JavaScript's `MAX_SAFE_INTEGER` limit). + * + * This strategy also slightly differs in the way rounding is performed, with rounding being done _after_ + * multiplying the unit price, rather than before (as is the case with the {@link DefaultMoneyStrategy}. + * + * @docsCategory money + * @since 2.0.0 + */ +export class BigIntMoneyStrategy implements MoneyStrategy { + readonly moneyColumnOptions: ColumnOptions = { + type: 'bigint', + transformer: { + to: (entityValue: number) => { + return entityValue; + }, + from: (databaseValue: string): number => { + if (databaseValue == null) { + return databaseValue; + } + const intVal = Number.parseInt(databaseValue, 10); + if (!Number.isSafeInteger(intVal)) { + Logger.warn(`Monetary value ${databaseValue} is not a safe integer!`); + } + if (Number.isNaN(intVal)) { + Logger.warn(`Monetary value ${databaseValue} is not a number!`); + } + return intVal; + }, + }, + }; + + round(value: number, quantity = 1): number { + return Math.round(value * quantity); + } +} diff --git a/packages/core/src/config/entity/default-money-strategy.ts b/packages/core/src/config/entity/default-money-strategy.ts new file mode 100644 index 0000000000..cdddbf2cbf --- /dev/null +++ b/packages/core/src/config/entity/default-money-strategy.ts @@ -0,0 +1,23 @@ +import { ColumnOptions } from 'typeorm'; + +import { Logger } from '../logger/vendure-logger'; + +import { MoneyStrategy } from './money-strategy'; + +/** + * @description + * A {@link MoneyStrategy} that stores monetary values as a `int` type in the database. + * The storage configuration and rounding logic replicates the behaviour of Vendure pre-2.0. + * + * @docsCategory money + * @since 2.0.0 + */ +export class DefaultMoneyStrategy implements MoneyStrategy { + readonly moneyColumnOptions: ColumnOptions = { + type: 'int', + }; + + round(value: number, quantity = 1): number { + return Math.round(value) * quantity; + } +} diff --git a/packages/core/src/config/entity-id-strategy/entity-id-strategy.ts b/packages/core/src/config/entity/entity-id-strategy.ts similarity index 100% rename from packages/core/src/config/entity-id-strategy/entity-id-strategy.ts rename to packages/core/src/config/entity/entity-id-strategy.ts diff --git a/packages/core/src/config/entity/money-strategy.ts b/packages/core/src/config/entity/money-strategy.ts new file mode 100644 index 0000000000..746f51f7d2 --- /dev/null +++ b/packages/core/src/config/entity/money-strategy.ts @@ -0,0 +1,64 @@ +import { ColumnOptions } from 'typeorm'; + +import { InjectableStrategy } from '../../common/types/injectable-strategy'; + +/** + * @description + * The MoneyStrategy defines how monetary values are stored and manipulated. The MoneyStrategy + * is defined in {@link EntityOptions}: + * + * @example + * ```TypeScript + * const config: VendureConfig = { + * entityOptions: { + * moneyStrategy: new MyCustomMoneyStrategy(), + * } + * }; + * ``` + * + * ## Range + * + * The {@link DefaultMoneyStrategy} uses an `int` field in the database, which puts an + * effective limit of ~21.4 million on any stored value. For certain use cases + * (e.g. business sales with very high amounts, or currencies with very large + * denominations), this may cause issues. In this case, you can use the + * {@link BigIntMoneyStrategy} which will use the `bigint` type to store monetary values, + * giving an effective upper limit of over 9 quadrillion. + * + * ## Precision & rounding + * + * Both the `DefaultMoneyStrategy` and `BigIntMoneyStrategy` store monetary values as integers, representing + * the price in the minor units of the currency (i.e. _cents_ in USD or _pennies_ in GBP). + * + * In certain use-cases, it may be required that fractions of a cent or penny be supported. In this case, + * the solution would be to define a custom MoneyStrategy which uses a non-integer data type for storing + * the value in the database, and defines a `round()` implementation which allows decimal places to be kept. + * + * @docsCategory money + * @since 2.0.0 + */ +export interface MoneyStrategy extends InjectableStrategy { + /** + * @description + * Defines the TypeORM column used to store monetary values. + */ + readonly moneyColumnOptions: ColumnOptions; + + /** + * @description + * Defines the logic used to round monetary values. For instance, the default behavior + * in the {@link DefaultMoneyStrategy} is to round the value, then multiply. + * + * ```TypeScript + * return Math.round(value) * quantity; + * ``` + * + * However, it may be desirable to instead round only _after_ the unit amount has been + * multiplied. In this case you can define a custom strategy with logic like this: + * + * ```TypeScript + * return Math.round(value * quantity); + * ``` + */ + round(value: number, quantity?: number): number; +} diff --git a/packages/core/src/config/entity-id-strategy/uuid-id-strategy.ts b/packages/core/src/config/entity/uuid-id-strategy.ts similarity index 100% rename from packages/core/src/config/entity-id-strategy/uuid-id-strategy.ts rename to packages/core/src/config/entity/uuid-id-strategy.ts diff --git a/packages/core/src/config/index.ts b/packages/core/src/config/index.ts index 01563a1e36..e571264fa1 100644 --- a/packages/core/src/config/index.ts +++ b/packages/core/src/config/index.ts @@ -20,9 +20,12 @@ export * from './config.module'; export * from './config.service'; export * from './custom-field/custom-field-types'; export * from './default-config'; -export * from './entity-id-strategy/auto-increment-id-strategy'; -export * from './entity-id-strategy/entity-id-strategy'; -export * from './entity-id-strategy/uuid-id-strategy'; +export * from './entity/auto-increment-id-strategy'; +export * from './entity/default-money-strategy'; +export * from './entity/bigint-money-strategy'; +export * from './entity/entity-id-strategy'; +export * from './entity/money-strategy'; +export * from './entity/uuid-id-strategy'; export * from './entity-metadata/add-foreign-key-indices'; export * from './entity-metadata/entity-metadata-modifier'; export * from './fulfillment/default-fulfillment-process'; diff --git a/packages/core/src/config/vendure-config.ts b/packages/core/src/config/vendure-config.ts index e87bb2b8bc..8b313795e9 100644 --- a/packages/core/src/config/vendure-config.ts +++ b/packages/core/src/config/vendure-config.ts @@ -21,8 +21,9 @@ import { ProductVariantPriceCalculationStrategy } from './catalog/product-varian import { StockDisplayStrategy } from './catalog/stock-display-strategy'; import { StockLocationStrategy } from './catalog/stock-location-strategy'; import { CustomFields } from './custom-field/custom-field-types'; -import { EntityIdStrategy } from './entity-id-strategy/entity-id-strategy'; import { EntityMetadataModifier } from './entity-metadata/entity-metadata-modifier'; +import { EntityIdStrategy } from './entity/entity-id-strategy'; +import { MoneyStrategy } from './entity/money-strategy'; import { FulfillmentHandler } from './fulfillment/fulfillment-handler'; import { FulfillmentProcess } from './fulfillment/fulfillment-process'; import { JobQueueStrategy } from './job-queue/job-queue-strategy'; @@ -923,6 +924,14 @@ export interface EntityOptions { * @default AutoIncrementIdStrategy */ entityIdStrategy?: EntityIdStrategy; + /** + * @description + * Defines the strategy used to store and round monetary values. + * + * @since 2.0.0 + * @default DefaultMoneyStrategy + */ + moneyStrategy?: MoneyStrategy; /** * @description * Channels get cached in-memory as they are accessed very frequently. This diff --git a/packages/core/src/entity/money.decorator.ts b/packages/core/src/entity/money.decorator.ts new file mode 100644 index 0000000000..a754447a9e --- /dev/null +++ b/packages/core/src/entity/money.decorator.ts @@ -0,0 +1,51 @@ +import { Type } from '@vendure/common/lib/shared-types'; +import { Column } from 'typeorm'; +import { ColumnOptions } from 'typeorm/decorator/options/ColumnOptions'; + +import { Logger } from '../config/logger/vendure-logger'; + +interface MoneyColumnOptions { + default?: number; + /** Whether the field is nullable. Defaults to false */ + nullable?: boolean; +} + +interface MoneyColumnConfig { + name: string; + entity: any; + options?: MoneyColumnOptions; +} + +const moneyColumnRegistry = new Map(); + +/** + * @description + * Use this decorator for any entity field that is storing a monetary value. + * This allows the column type to be defined by the configured {@link MoneyStrategy}. + * + * @docsCategory money + * @since 2.0.0 + */ +export function Money(options?: MoneyColumnOptions) { + return (entity: any, propertyName: string) => { + const idColumns = moneyColumnRegistry.get(entity); + const entry = { name: propertyName, entity, options }; + if (idColumns) { + idColumns.push(entry); + } else { + moneyColumnRegistry.set(entity, [entry]); + } + }; +} + +/** + * @description + * Returns any columns on the entity which have been decorated with the {@link EntityId} + * decorator. + */ +export function getMoneyColumnsFor(entityType: Type): MoneyColumnConfig[] { + const match = Array.from(moneyColumnRegistry.entries()).find( + ([entity, columns]) => entity.constructor === entityType, + ); + return match ? match[1] : []; +} diff --git a/packages/core/src/entity/order-line/order-line.entity.ts b/packages/core/src/entity/order-line/order-line.entity.ts index ba75846570..0954e8d4aa 100644 --- a/packages/core/src/entity/order-line/order-line.entity.ts +++ b/packages/core/src/entity/order-line/order-line.entity.ts @@ -4,6 +4,7 @@ import { summate } from '@vendure/common/lib/shared-utils'; import { Column, Entity, Index, ManyToOne, OneToOne } from 'typeorm'; import { Calculated } from '../../common/calculated-decorator'; +import { roundMoney } from '../../common/round-money'; import { grossPriceOf, netPriceOf } from '../../common/tax-utils'; import { HasCustomFields } from '../../config/custom-field/custom-field-types'; import { Asset } from '../asset/asset.entity'; @@ -11,6 +12,7 @@ import { VendureEntity } from '../base/base.entity'; import { Channel } from '../channel/channel.entity'; import { CustomOrderLineFields } from '../custom-entity-fields'; import { EntityId } from '../entity-id.decorator'; +import { Money } from '../money.decorator'; import { Order } from '../order/order.entity'; import { ProductVariant } from '../product-variant/product-variant.entity'; import { ShippingLine } from '../shipping-line/shipping-line.entity'; @@ -91,7 +93,7 @@ export class OrderLine extends VendureEntity implements HasCustomFields { * `listPrice`, except when the ProductVariant price has changed in the meantime and a re-calculation of * the Order has been performed. */ - @Column({ nullable: true }) + @Money({ nullable: true }) initialListPrice: number; /** @@ -99,7 +101,7 @@ export class OrderLine extends VendureEntity implements HasCustomFields { * This is the price as listed by the ProductVariant (and possibly modified by the {@link OrderItemPriceCalculationStrategy}), * which, depending on the current Channel, may or may not include tax. */ - @Column() + @Money() listPrice: number; /** @@ -127,7 +129,7 @@ export class OrderLine extends VendureEntity implements HasCustomFields { */ @Calculated() get unitPrice(): number { - return this.listPriceIncludesTax ? netPriceOf(this.listPrice, this.taxRate) : this.listPrice; + return roundMoney(this._unitPrice()); } /** @@ -136,7 +138,7 @@ export class OrderLine extends VendureEntity implements HasCustomFields { */ @Calculated() get unitPriceWithTax(): number { - return this.listPriceIncludesTax ? this.listPrice : grossPriceOf(this.listPrice, this.taxRate); + return roundMoney(this._unitPriceWithTax()); } /** @@ -149,7 +151,7 @@ export class OrderLine extends VendureEntity implements HasCustomFields { const initialPrice = listPriceIncludesTax ? netPriceOf(initialListPrice, this.taxRate) : initialListPrice; - return this.unitPrice - initialPrice; + return roundMoney(this._unitPrice() - initialPrice); } /** @@ -162,7 +164,7 @@ export class OrderLine extends VendureEntity implements HasCustomFields { const initialPriceWithTax = listPriceIncludesTax ? initialListPrice : grossPriceOf(initialListPrice, this.taxRate); - return this.unitPriceWithTax - initialPriceWithTax; + return roundMoney(this._unitPriceWithTax() - initialPriceWithTax); } /** @@ -176,8 +178,7 @@ export class OrderLine extends VendureEntity implements HasCustomFields { */ @Calculated() get discountedUnitPrice(): number { - const result = this.listPrice + this.getAdjustmentsTotal(AdjustmentType.PROMOTION); - return this.listPriceIncludesTax ? netPriceOf(result, this.taxRate) : result; + return roundMoney(this._discountedUnitPrice()); } /** @@ -186,19 +187,18 @@ export class OrderLine extends VendureEntity implements HasCustomFields { */ @Calculated() get discountedUnitPriceWithTax(): number { - const result = this.listPrice + this.getAdjustmentsTotal(AdjustmentType.PROMOTION); - return this.listPriceIncludesTax ? result : grossPriceOf(result, this.taxRate); + return roundMoney(this._discountedUnitPriceWithTax()); } /** * @description * 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 a single unit in this OrderLine, and is used in tax + * Order-level discounts. This value is the true economic value of a single unit in this OrderLine, and is used in tax * and refund calculations. */ @Calculated() get proratedUnitPrice(): number { - return Math.round(this._proratedUnitPrice()); + return roundMoney(this._proratedUnitPrice()); } /** @@ -207,29 +207,7 @@ export class OrderLine extends VendureEntity implements HasCustomFields { */ @Calculated() get proratedUnitPriceWithTax(): number { - return Math.round(this._proratedUnitPriceWithTax()); - } - - /** - * @description - * Calculates the prorated unit price, excluding tax. This function performs no - * rounding, so before being exposed publicly via the GraphQL API, the returned value - * needs to be rounded to ensure it is an integer. - */ - private _proratedUnitPrice(): number { - const result = this.listPrice + this.getAdjustmentsTotal(); - return this.listPriceIncludesTax ? netPriceOf(result, this.taxRate) : result; - } - - /** - * @description - * Calculates the prorated unit price, including tax. This function performs no - * rounding, so before being exposed publicly via the GraphQL API, the returned value - * needs to be rounded to ensure it is an integer. - */ - private _proratedUnitPriceWithTax(): number { - const result = this.listPrice + this.getAdjustmentsTotal(); - return this.listPriceIncludesTax ? result : grossPriceOf(result, this.taxRate); + return roundMoney(this._proratedUnitPriceWithTax()); } @Calculated() @@ -242,20 +220,6 @@ export class OrderLine extends VendureEntity implements HasCustomFields { return this.proratedUnitPriceWithTax - this.proratedUnitPrice; } - /** - * @description - * The total of all price adjustments. Will typically be a negative number due to discounts. - */ - private getAdjustmentsTotal(type?: AdjustmentType): number { - if (!this.adjustments || this.quantity === 0) { - return 0; - } - return this.adjustments - .filter(adjustment => (type ? adjustment.type === type : true)) - .map(adjustment => adjustment.amount / Math.max(this.orderPlacedQuantity, this.quantity)) - .reduce((total, a) => total + a, 0); - } - @Calculated() get taxRate(): number { return summate(this.taxLines, 'taxRate'); @@ -267,7 +231,7 @@ export class OrderLine extends VendureEntity implements HasCustomFields { */ @Calculated() get linePrice(): number { - return this.unitPrice * this.quantity; + return roundMoney(this._unitPrice(), this.quantity); } /** @@ -276,7 +240,7 @@ export class OrderLine extends VendureEntity implements HasCustomFields { */ @Calculated() get linePriceWithTax(): number { - return this.unitPriceWithTax * this.quantity; + return roundMoney(this._unitPriceWithTax(), this.quantity); } /** @@ -285,7 +249,8 @@ export class OrderLine extends VendureEntity implements HasCustomFields { */ @Calculated() get discountedLinePrice(): number { - return this.discountedUnitPrice * this.quantity; + // return roundMoney(this.linePrice + this.getLineAdjustmentsTotal(false, AdjustmentType.PROMOTION)); + return roundMoney(this._discountedUnitPrice(), this.quantity); } /** @@ -294,7 +259,10 @@ export class OrderLine extends VendureEntity implements HasCustomFields { */ @Calculated() get discountedLinePriceWithTax(): number { - return this.discountedUnitPriceWithTax * this.quantity; + // return roundMoney( + // this.linePriceWithTax + this.getLineAdjustmentsTotal(true, AdjustmentType.PROMOTION), + // ); + return roundMoney(this._discountedUnitPriceWithTax(), this.quantity); } @Calculated() @@ -319,8 +287,8 @@ export class OrderLine extends VendureEntity implements HasCustomFields { } else { groupedDiscounts.set(adjustment.adjustmentSource, { ...(adjustment as Omit), - amount, - amountWithTax, + amount: roundMoney(amount), + amountWithTax: roundMoney(amountWithTax), }); } } @@ -333,7 +301,7 @@ export class OrderLine extends VendureEntity implements HasCustomFields { */ @Calculated() get lineTax(): number { - return this.unitTax * this.quantity; + return this.linePriceWithTax - this.linePrice; } /** @@ -344,7 +312,8 @@ export class OrderLine extends VendureEntity implements HasCustomFields { */ @Calculated() get proratedLinePrice(): number { - return this._proratedUnitPrice() * this.quantity; + // return roundMoney(this.linePrice + this.getLineAdjustmentsTotal(false)); + return roundMoney(this._proratedUnitPrice(), this.quantity); } /** @@ -353,12 +322,13 @@ export class OrderLine extends VendureEntity implements HasCustomFields { */ @Calculated() get proratedLinePriceWithTax(): number { - return this._proratedUnitPriceWithTax() * this.quantity; + // return roundMoney(this.linePriceWithTax + this.getLineAdjustmentsTotal(true)); + return roundMoney(this._proratedUnitPriceWithTax(), this.quantity); } @Calculated() get proratedLineTax(): number { - return this.proratedUnitTax * this.quantity; + return this.proratedLinePriceWithTax - this.proratedLinePrice; } addAdjustment(adjustment: Adjustment) { @@ -376,4 +346,83 @@ export class OrderLine extends VendureEntity implements HasCustomFields { this.adjustments = this.adjustments ? this.adjustments.filter(a => a.type !== type) : []; } } + + private _unitPrice(): number { + return this.listPriceIncludesTax ? netPriceOf(this.listPrice, this.taxRate) : this.listPrice; + } + + private _unitPriceWithTax(): number { + return this.listPriceIncludesTax ? this.listPrice : grossPriceOf(this.listPrice, this.taxRate); + } + + private _discountedUnitPrice(): number { + const result = this.listPrice + this.getUnitAdjustmentsTotal(AdjustmentType.PROMOTION); + return this.listPriceIncludesTax ? netPriceOf(result, this.taxRate) : result; + } + + private _discountedUnitPriceWithTax(): number { + const result = this.listPrice + this.getUnitAdjustmentsTotal(AdjustmentType.PROMOTION); + return this.listPriceIncludesTax ? result : grossPriceOf(result, this.taxRate); + } + + /** + * @description + * Calculates the prorated unit price, excluding tax. This function performs no + * rounding, so before being exposed publicly via the GraphQL API, the returned value + * needs to be rounded to ensure it is an integer. + */ + private _proratedUnitPrice(): number { + const result = this.listPrice + this.getUnitAdjustmentsTotal(); + return this.listPriceIncludesTax ? netPriceOf(result, this.taxRate) : result; + } + + /** + * @description + * Calculates the prorated unit price, including tax. This function performs no + * rounding, so before being exposed publicly via the GraphQL API, the returned value + * needs to be rounded to ensure it is an integer. + */ + private _proratedUnitPriceWithTax(): number { + const result = this.listPrice + this.getUnitAdjustmentsTotal(); + return this.listPriceIncludesTax ? result : grossPriceOf(result, this.taxRate); + } + + /** + * @description + * The total of all price adjustments. Will typically be a negative number due to discounts. + */ + private getUnitAdjustmentsTotal(type?: AdjustmentType): number { + if (!this.adjustments || this.quantity === 0) { + return 0; + } + return this.adjustments + .filter(adjustment => (type ? adjustment.type === type : true)) + .map(adjustment => adjustment.amount / Math.max(this.orderPlacedQuantity, this.quantity)) + .reduce((total, a) => total + a, 0); + } + + /** + * @description + * The total of all price adjustments. Will typically be a negative number due to discounts. + */ + private getLineAdjustmentsTotal(withTax: boolean, type?: AdjustmentType): number { + if (!this.adjustments || this.quantity === 0) { + return 0; + } + const sum = this.adjustments + .filter(adjustment => (type ? adjustment.type === type : true)) + .map(adjustment => adjustment.amount) + .reduce((total, a) => total + a, 0); + const adjustedForQuantityChanges = + sum * (this.quantity / Math.max(this.orderPlacedQuantity, this.quantity)); + if (withTax) { + return this.listPriceIncludesTax + ? adjustedForQuantityChanges + : grossPriceOf(adjustedForQuantityChanges, this.taxRate); + } else { + return this.listPriceIncludesTax + ? netPriceOf(adjustedForQuantityChanges, this.taxRate) + : adjustedForQuantityChanges; + } + } } diff --git a/packages/core/src/entity/order-modification/order-modification.entity.ts b/packages/core/src/entity/order-modification/order-modification.entity.ts index 95d5f7f4f3..681cb01a9e 100644 --- a/packages/core/src/entity/order-modification/order-modification.entity.ts +++ b/packages/core/src/entity/order-modification/order-modification.entity.ts @@ -4,6 +4,7 @@ import { Column, Entity, Index, JoinColumn, ManyToOne, OneToMany, OneToOne } fro import { Calculated } from '../../common/calculated-decorator'; import { VendureEntity } from '../base/base.entity'; +import { Money } from '../money.decorator'; import { OrderModificationLine } from '../order-line-reference/order-modification-line.entity'; import { Order } from '../order/order.entity'; import { Payment } from '../payment/payment.entity'; @@ -36,7 +37,7 @@ export class OrderModification extends VendureEntity { @OneToMany(type => Surcharge, surcharge => surcharge.orderModification) surcharges: Surcharge[]; - @Column() + @Money() priceChange: number; @OneToOne(type => Payment) diff --git a/packages/core/src/entity/order/order.entity.ts b/packages/core/src/entity/order/order.entity.ts index c8e6f89422..599ff7280d 100644 --- a/packages/core/src/entity/order/order.entity.ts +++ b/packages/core/src/entity/order/order.entity.ts @@ -21,6 +21,7 @@ import { CustomOrderFields } from '../custom-entity-fields'; import { Customer } from '../customer/customer.entity'; import { EntityId } from '../entity-id.decorator'; import { Fulfillment } from '../fulfillment/fulfillment.entity'; +import { Money } from '../money.decorator'; import { OrderLine } from '../order-line/order-line.entity'; import { OrderModification } from '../order-modification/order-modification.entity'; import { Payment } from '../payment/payment.entity'; @@ -155,14 +156,14 @@ export class Order extends VendureEntity implements ChannelAware, HasCustomField * To get a total of all OrderLines which does not account for prorated discounts, use the * sum of {@link OrderLine}'s `discountedLinePrice` values. */ - @Column() + @Money() subTotal: number; /** * @description * Same as subTotal, but inclusive of tax. */ - @Column() + @Money() subTotalWithTax: number; /** @@ -176,10 +177,10 @@ export class Order extends VendureEntity implements ChannelAware, HasCustomField * @description * The total of all the `shippingLines`. */ - @Column({ default: 0 }) + @Money({ default: 0 }) shipping: number; - @Column({ default: 0 }) + @Money({ default: 0 }) shippingWithTax: number; @Calculated({ relations: ['lines', 'shippingLines'] }) diff --git a/packages/core/src/entity/payment/payment.entity.ts b/packages/core/src/entity/payment/payment.entity.ts index 9ca2fdd159..f622d5d847 100644 --- a/packages/core/src/entity/payment/payment.entity.ts +++ b/packages/core/src/entity/payment/payment.entity.ts @@ -4,6 +4,7 @@ import { Column, Entity, Index, ManyToOne, OneToMany } from 'typeorm'; import { PaymentMetadata } from '../../common/types/common-types'; import { PaymentState } from '../../service/helpers/payment-state-machine/payment-state'; import { VendureEntity } from '../base/base.entity'; +import { Money } from '../money.decorator'; import { Order } from '../order/order.entity'; import { Refund } from '../refund/refund.entity'; @@ -22,7 +23,7 @@ export class Payment extends VendureEntity { @Column() method: string; - @Column() amount: number; + @Money() amount: number; @Column('varchar') state: PaymentState; diff --git a/packages/core/src/entity/product-variant/product-variant-price.entity.ts b/packages/core/src/entity/product-variant/product-variant-price.entity.ts index b1c3e8492c..6fb2d0d5ed 100644 --- a/packages/core/src/entity/product-variant/product-variant-price.entity.ts +++ b/packages/core/src/entity/product-variant/product-variant-price.entity.ts @@ -3,6 +3,7 @@ import { Column, Entity, Index, ManyToOne } from 'typeorm'; import { VendureEntity } from '../base/base.entity'; import { EntityId } from '../entity-id.decorator'; +import { Money } from '../money.decorator'; import { ProductVariant } from './product-variant.entity'; @@ -19,7 +20,7 @@ export class ProductVariantPrice extends VendureEntity { super(input); } - @Column() price: number; + @Money() price: number; @EntityId() channelId: ID; diff --git a/packages/core/src/entity/product-variant/product-variant.entity.ts b/packages/core/src/entity/product-variant/product-variant.entity.ts index b2db136777..1417a7084e 100644 --- a/packages/core/src/entity/product-variant/product-variant.entity.ts +++ b/packages/core/src/entity/product-variant/product-variant.entity.ts @@ -3,6 +3,7 @@ import { DeepPartial, ID } from '@vendure/common/lib/shared-types'; import { Column, Entity, Index, JoinTable, ManyToMany, ManyToOne, OneToMany } from 'typeorm'; import { Calculated } from '../../common/calculated-decorator'; +import { roundMoney } from '../../common/round-money'; import { ChannelAware, SoftDeletable } from '../../common/types/common-types'; import { LocaleString, Translatable, Translation } from '../../common/types/locale-types'; import { HasCustomFields } from '../../config/custom-field/custom-field-types'; @@ -75,7 +76,9 @@ export class ProductVariant if (this.listPrice == null) { return 0; } - return this.listPriceIncludesTax ? this.taxRateApplied.netPriceOf(this.listPrice) : this.listPrice; + return roundMoney( + this.listPriceIncludesTax ? this.taxRateApplied.netPriceOf(this.listPrice) : this.listPrice, + ); } @Calculated({ @@ -89,7 +92,9 @@ export class ProductVariant if (this.listPrice == null) { return 0; } - return this.listPriceIncludesTax ? this.listPrice : this.taxRateApplied.grossPriceOf(this.listPrice); + return roundMoney( + this.listPriceIncludesTax ? this.listPrice : this.taxRateApplied.grossPriceOf(this.listPrice), + ); } /** @@ -123,12 +128,6 @@ export class ProductVariant @EntityId({ nullable: true }) productId: ID; - // @Column({ default: 0 }) - // stockOnHand: number; - - // @Column({ default: 0 }) - // stockAllocated: number; - /** * @description * Specifies the value of stockOnHand at which the ProductVariant is considered diff --git a/packages/core/src/entity/promotion/promotion.entity.ts b/packages/core/src/entity/promotion/promotion.entity.ts index 99ebf3ca38..13b169bc15 100644 --- a/packages/core/src/entity/promotion/promotion.entity.ts +++ b/packages/core/src/entity/promotion/promotion.entity.ts @@ -3,6 +3,7 @@ import { DeepPartial } from '@vendure/common/lib/shared-types'; import { Column, Entity, JoinTable, ManyToMany } from 'typeorm'; import { RequestContext } from '../../api/common/request-context'; +import { roundMoney } from '../../common/round-money'; import { AdjustmentSource } from '../../common/types/adjustment-source'; import { ChannelAware, SoftDeletable } from '../../common/types/common-types'; import { getConfig } from '../../config/config-helpers'; @@ -132,19 +133,19 @@ export class Promotion extends AdjustmentSource implements ChannelAware, SoftDel if (promotionAction instanceof PromotionItemAction) { if (this.isOrderItemArg(args)) { const { orderLine } = args; - amount += Math.round( + amount += roundMoney( await promotionAction.execute(ctx, orderLine, action.args, state, this), ); } } else if (promotionAction instanceof PromotionOrderAction) { if (this.isOrderArg(args)) { const { order } = args; - amount += Math.round(await promotionAction.execute(ctx, order, action.args, state, this)); + amount += roundMoney(await promotionAction.execute(ctx, order, action.args, state, this)); } } else if (promotionAction instanceof PromotionShippingAction) { if (this.isShippingArg(args)) { const { shippingLine, order } = args; - amount += Math.round( + amount += roundMoney( await promotionAction.execute(ctx, shippingLine, order, action.args, state, this), ); } diff --git a/packages/core/src/entity/refund/refund.entity.ts b/packages/core/src/entity/refund/refund.entity.ts index 4d297df000..37a2ee9a89 100644 --- a/packages/core/src/entity/refund/refund.entity.ts +++ b/packages/core/src/entity/refund/refund.entity.ts @@ -5,6 +5,7 @@ import { PaymentMetadata } from '../../common/types/common-types'; import { RefundState } from '../../service/helpers/refund-state-machine/refund-state'; import { VendureEntity } from '../base/base.entity'; import { EntityId } from '../entity-id.decorator'; +import { Money } from '../money.decorator'; import { RefundLine } from '../order-line-reference/refund-line.entity'; import { Payment } from '../payment/payment.entity'; @@ -14,13 +15,13 @@ export class Refund extends VendureEntity { super(input); } - @Column() items: number; + @Money() items: number; - @Column() shipping: number; + @Money() shipping: number; - @Column() adjustment: number; + @Money() adjustment: number; - @Column() total: number; + @Money() total: number; @Column() method: string; diff --git a/packages/core/src/entity/set-entity-id-strategy.ts b/packages/core/src/entity/set-entity-id-strategy.ts index dd855ee9a1..62bcc7bfb0 100644 --- a/packages/core/src/entity/set-entity-id-strategy.ts +++ b/packages/core/src/entity/set-entity-id-strategy.ts @@ -1,7 +1,7 @@ import { Type } from '@vendure/common/lib/shared-types'; import { Column, PrimaryColumn, PrimaryGeneratedColumn } from 'typeorm'; -import { EntityIdStrategy } from '../config/entity-id-strategy/entity-id-strategy'; +import { EntityIdStrategy } from '../config/entity/entity-id-strategy'; import { getIdColumnsFor, getPrimaryGeneratedIdColumn } from './entity-id.decorator'; diff --git a/packages/core/src/entity/set-money-strategy.ts b/packages/core/src/entity/set-money-strategy.ts new file mode 100644 index 0000000000..605755afbd --- /dev/null +++ b/packages/core/src/entity/set-money-strategy.ts @@ -0,0 +1,19 @@ +import { Type } from '@vendure/common/lib/shared-types'; +import { Column } from 'typeorm'; + +import { MoneyStrategy } from '../config/entity/money-strategy'; + +import { getMoneyColumnsFor } from './money.decorator'; + +export function setMoneyStrategy(moneyStrategy: MoneyStrategy, entities: Array>) { + for (const EntityCtor of entities) { + const columnConfig = getMoneyColumnsFor(EntityCtor); + for (const { name, options, entity } of columnConfig) { + Column({ + ...moneyStrategy.moneyColumnOptions, + nullable: options?.nullable ?? false, + default: options?.default, + })(entity, name); + } + } +} diff --git a/packages/core/src/entity/shipping-line/shipping-line.entity.ts b/packages/core/src/entity/shipping-line/shipping-line.entity.ts index f4779dd644..a254cd2f6c 100644 --- a/packages/core/src/entity/shipping-line/shipping-line.entity.ts +++ b/packages/core/src/entity/shipping-line/shipping-line.entity.ts @@ -4,9 +4,11 @@ import { summate } from '@vendure/common/lib/shared-utils'; import { Column, Entity, Index, ManyToOne } from 'typeorm'; import { Calculated } from '../../common/calculated-decorator'; +import { roundMoney } from '../../common/round-money'; import { grossPriceOf, netPriceOf } from '../../common/tax-utils'; import { VendureEntity } from '../base/base.entity'; import { EntityId } from '../entity-id.decorator'; +import { Money } from '../money.decorator'; import { Order } from '../order/order.entity'; import { ShippingMethod } from '../shipping-method/shipping-method.entity'; @@ -28,7 +30,7 @@ export class ShippingLine extends VendureEntity { @ManyToOne(type => Order, order => order.shippingLines) order: Order; - @Column() + @Money() listPrice: number; @Column() @@ -47,19 +49,21 @@ export class ShippingLine extends VendureEntity { @Calculated() get priceWithTax(): number { - return this.listPriceIncludesTax ? this.listPrice : grossPriceOf(this.listPrice, this.taxRate); + return roundMoney( + this.listPriceIncludesTax ? this.listPrice : grossPriceOf(this.listPrice, this.taxRate), + ); } @Calculated() get discountedPrice(): number { const result = this.listPrice + this.getAdjustmentsTotal(); - return this.listPriceIncludesTax ? netPriceOf(result, this.taxRate) : result; + return roundMoney(this.listPriceIncludesTax ? netPriceOf(result, this.taxRate) : result); } @Calculated() get discountedPriceWithTax(): number { const result = this.listPrice + this.getAdjustmentsTotal(); - return this.listPriceIncludesTax ? result : grossPriceOf(result, this.taxRate); + return roundMoney(this.listPriceIncludesTax ? result : grossPriceOf(result, this.taxRate)); } @Calculated() @@ -71,12 +75,16 @@ export class ShippingLine extends VendureEntity { get discounts(): Discount[] { return ( this.adjustments?.map(adjustment => { - const amount = this.listPriceIncludesTax - ? netPriceOf(adjustment.amount, this.taxRate) - : adjustment.amount; - const amountWithTax = this.listPriceIncludesTax - ? adjustment.amount - : grossPriceOf(adjustment.amount, this.taxRate); + const amount = roundMoney( + this.listPriceIncludesTax + ? netPriceOf(adjustment.amount, this.taxRate) + : adjustment.amount, + ); + const amountWithTax = roundMoney( + this.listPriceIncludesTax + ? adjustment.amount + : grossPriceOf(adjustment.amount, this.taxRate), + ); return { ...(adjustment as Omit), amount, diff --git a/packages/core/src/entity/shipping-method/shipping-method.entity.ts b/packages/core/src/entity/shipping-method/shipping-method.entity.ts index b36598a333..646fada42e 100644 --- a/packages/core/src/entity/shipping-method/shipping-method.entity.ts +++ b/packages/core/src/entity/shipping-method/shipping-method.entity.ts @@ -3,6 +3,7 @@ import { DeepPartial } from '@vendure/common/lib/shared-types'; import { Column, Entity, JoinTable, ManyToMany, OneToMany } from 'typeorm'; import { RequestContext } from '../../api/common/request-context'; +import { roundMoney } from '../../common/round-money'; import { ChannelAware, SoftDeletable } from '../../common/types/common-types'; import { LocaleString, Translatable, Translation } from '../../common/types/locale-types'; import { getConfig } from '../../config/config-helpers'; @@ -32,7 +33,8 @@ import { ShippingMethodTranslation } from './shipping-method-translation.entity' @Entity() export class ShippingMethod extends VendureEntity - implements ChannelAware, SoftDeletable, HasCustomFields, Translatable { + implements ChannelAware, SoftDeletable, HasCustomFields, Translatable +{ private readonly allCheckers: { [code: string]: ShippingEligibilityChecker } = {}; private readonly allCalculators: { [code: string]: ShippingCalculator } = {}; @@ -77,7 +79,7 @@ export class ShippingMethod if (response) { const { price, priceIncludesTax, taxRate, metadata } = response; return { - price: Math.round(price), + price: roundMoney(price), priceIncludesTax, taxRate, metadata, diff --git a/packages/core/src/entity/surcharge/surcharge.entity.ts b/packages/core/src/entity/surcharge/surcharge.entity.ts index 87ea1fa37c..4e9ae3634d 100644 --- a/packages/core/src/entity/surcharge/surcharge.entity.ts +++ b/packages/core/src/entity/surcharge/surcharge.entity.ts @@ -6,6 +6,7 @@ import { Column, Entity, Index, ManyToOne } from 'typeorm'; import { Calculated } from '../../common/calculated-decorator'; import { grossPriceOf, netPriceOf } from '../../common/tax-utils'; import { VendureEntity } from '../base/base.entity'; +import { Money } from '../money.decorator'; import { OrderModification } from '../order-modification/order-modification.entity'; import { Order } from '../order/order.entity'; @@ -25,7 +26,7 @@ export class Surcharge extends VendureEntity { @Column() description: string; - @Column() + @Money() listPrice: number; @Column() diff --git a/packages/core/src/plugin/default-search-plugin/entities/search-index-item.entity.ts b/packages/core/src/plugin/default-search-plugin/entities/search-index-item.entity.ts index b0aa4eaa1a..ab84a2b993 100644 --- a/packages/core/src/plugin/default-search-plugin/entities/search-index-item.entity.ts +++ b/packages/core/src/plugin/default-search-plugin/entities/search-index-item.entity.ts @@ -3,6 +3,7 @@ import { ID } from '@vendure/common/lib/shared-types'; import { Column, Entity, Index, PrimaryColumn } from 'typeorm'; import { EntityId } from '../../../entity/entity-id.decorator'; +import { Money } from '../../../entity/money.decorator'; @Entity() export class SearchIndexItem { @@ -47,10 +48,10 @@ export class SearchIndexItem { @Column() sku: string; - @Column() + @Money() price: number; - @Column() + @Money() priceWithTax: number; @Column('simple-array') diff --git a/packages/core/src/service/helpers/order-calculator/order-calculator.spec.ts b/packages/core/src/service/helpers/order-calculator/order-calculator.spec.ts index f5c83599ed..69110ad053 100644 --- a/packages/core/src/service/helpers/order-calculator/order-calculator.spec.ts +++ b/packages/core/src/service/helpers/order-calculator/order-calculator.spec.ts @@ -1135,10 +1135,48 @@ describe('OrderCalculator', () => { fifteenPcOff$10Items, $5OffOrderPromo, ]); - - expect(order.subTotal).toBe(5082); - expect(order.subTotalWithTax).toBe(5719); - assertOrderTotalsAddUp(order); + // console.table([ + // { + // unitPrice: order.lines[0].unitPrice, + // linePrice: order.lines[0].linePrice, + // linePriceWithTax: order.lines[0].linePriceWithTax, + // discountedLinePrice: order.lines[0].discountedLinePrice, + // discountedLinePriceWithTax: order.lines[0].discountedLinePriceWithTax, + // proratedUnitPriceWithTax: order.lines[0].proratedUnitPriceWithTax, + // proratedLinePriceWithTax: order.lines[0].proratedLinePriceWithTax, + // }, + // { + // unitPrice: order.lines[1].unitPrice, + // linePrice: order.lines[1].linePrice, + // linePriceWithTax: order.lines[1].linePriceWithTax, + // discountedLinePrice: order.lines[1].discountedLinePrice, + // discountedLinePriceWithTax: order.lines[1].discountedLinePriceWithTax, + // proratedUnitPriceWithTax: order.lines[1].proratedUnitPriceWithTax, + // proratedLinePriceWithTax: order.lines[1].proratedLinePriceWithTax, + // }, + // { + // unitPrice: order.lines[2].unitPrice, + // linePrice: order.lines[2].linePrice, + // linePriceWithTax: order.lines[2].linePriceWithTax, + // discountedLinePrice: order.lines[2].discountedLinePrice, + // discountedLinePriceWithTax: order.lines[2].discountedLinePriceWithTax, + // proratedUnitPriceWithTax: order.lines[2].proratedUnitPriceWithTax, + // proratedLinePriceWithTax: order.lines[2].proratedLinePriceWithTax, + // }, + // ]); + + // Note: This combination produces slight discrepancies when using the rounding method + // of the DefaultMoneyStrategy - i.e. "round then multiply". When using a strategy + // of "multiply then round", we would expect the following: + // ``` + // expect(order.subTotal).toBe(5082); + // expect(order.subTotalWithTax).toBe(5719); + // assertOrderTotalsAddUp(order); + // ``` + // However, there is always a tradeoff when using integer precision with compounding + // fractional multiplication. + expect(order.subTotal).toBe(5079); + expect(order.subTotalWithTax).toBe(5722); }); }); }); diff --git a/packages/core/src/service/services/product-variant.service.ts b/packages/core/src/service/services/product-variant.service.ts index 1223f58446..dfcd26edc8 100644 --- a/packages/core/src/service/services/product-variant.service.ts +++ b/packages/core/src/service/services/product-variant.service.ts @@ -16,6 +16,7 @@ import { RequestContext } from '../../api/common/request-context'; import { RelationPaths } from '../../api/decorators/relations.decorator'; import { RequestContextCacheService } from '../../cache/request-context-cache.service'; import { ForbiddenError, UserInputError } from '../../common/error/errors'; +import { roundMoney } from '../../common/round-money'; import { ListQueryOptions } from '../../common/types/common-types'; import { Translated } from '../../common/types/locale-types'; import { idsAreEqual } from '../../common/utils'; @@ -649,7 +650,7 @@ export class ProductVariantService { await this.createOrUpdateProductVariantPrice( ctx, variant.id, - Math.round(price * priceFactor), + roundMoney(price * priceFactor), input.channelId, ); const assetIds = variant.assets?.map(a => a.assetId) || []; diff --git a/packages/dev-server/dev-config.ts b/packages/dev-server/dev-config.ts index d74cafbeda..aa907b2fcf 100644 --- a/packages/dev-server/dev-config.ts +++ b/packages/dev-server/dev-config.ts @@ -88,10 +88,10 @@ export const devConfig: VendureConfig = { changeEmailAddressUrl: 'http://localhost:4201/change-email-address', }, }), - AdminUiPlugin.init({ - route: 'admin', - port: 5001, - }), + // AdminUiPlugin.init({ + // route: 'admin', + // port: 5001, + // }), ], }; diff --git a/packages/elasticsearch-plugin/e2e/graphql/generated-e2e-elasticsearch-plugin-types.ts b/packages/elasticsearch-plugin/e2e/graphql/generated-e2e-elasticsearch-plugin-types.ts index 32176c2da8..66741d60ce 100644 --- a/packages/elasticsearch-plugin/e2e/graphql/generated-e2e-elasticsearch-plugin-types.ts +++ b/packages/elasticsearch-plugin/e2e/graphql/generated-e2e-elasticsearch-plugin-types.ts @@ -6,366 +6,347 @@ export type MakeOptional = Omit & { [SubKey in K]?: export type MakeMaybe = Omit & { [SubKey in K]: Maybe }; /** All built-in and custom scalars, mapped to their actual values */ export type Scalars = { - ID: string; - String: string; - Boolean: boolean; - Int: number; - Float: number; - /** 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 Adjustment = { - adjustmentSource: Scalars['String']; - amount: Scalars['Int']; - data?: Maybe; - description: Scalars['String']; - type: AdjustmentType; + adjustmentSource: Scalars['String']; + amount: Scalars['Int']; + data?: Maybe; + description: Scalars['String']; + type: AdjustmentType; }; export enum AdjustmentType { - DISTRIBUTED_ORDER_PROMOTION = 'DISTRIBUTED_ORDER_PROMOTION', - OTHER = 'OTHER', - PROMOTION = 'PROMOTION', + DISTRIBUTED_ORDER_PROMOTION = 'DISTRIBUTED_ORDER_PROMOTION', + OTHER = 'OTHER', + PROMOTION = 'PROMOTION' } export type Administrator = Node & { - createdAt: Scalars['DateTime']; - customFields?: Maybe; - emailAddress: Scalars['String']; - firstName: Scalars['String']; - id: Scalars['ID']; - lastName: Scalars['String']; - updatedAt: Scalars['DateTime']; - user: User; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + emailAddress: Scalars['String']; + firstName: Scalars['String']; + id: Scalars['ID']; + lastName: Scalars['String']; + updatedAt: Scalars['DateTime']; + user: User; }; export type AdministratorFilterParameter = { - createdAt?: InputMaybe; - emailAddress?: InputMaybe; - firstName?: InputMaybe; - id?: InputMaybe; - lastName?: InputMaybe; - updatedAt?: InputMaybe; + createdAt?: InputMaybe; + emailAddress?: InputMaybe; + firstName?: InputMaybe; + id?: InputMaybe; + lastName?: InputMaybe; + updatedAt?: InputMaybe; }; export type AdministratorList = PaginatedList & { - items: Array; - totalItems: Scalars['Int']; + items: Array; + totalItems: Scalars['Int']; }; export type AdministratorListOptions = { - /** Allows the results to be filtered */ - filter?: InputMaybe; - /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ - filterOperator?: InputMaybe; - /** Skips the first n results, for use in pagination */ - skip?: InputMaybe; - /** Specifies which properties to sort the results by */ - sort?: InputMaybe; - /** Takes n results, for use in pagination */ - take?: InputMaybe; + /** Allows the results to be filtered */ + filter?: InputMaybe; + /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ + filterOperator?: InputMaybe; + /** Skips the first n results, for use in pagination */ + skip?: InputMaybe; + /** Specifies which properties to sort the results by */ + sort?: InputMaybe; + /** Takes n results, for use in pagination */ + take?: InputMaybe; }; export type AdministratorPaymentInput = { - metadata?: InputMaybe; - paymentMethod?: InputMaybe; + metadata?: InputMaybe; + paymentMethod?: InputMaybe; }; export type AdministratorRefundInput = { - paymentId: Scalars['ID']; - reason?: InputMaybe; + paymentId: Scalars['ID']; + reason?: InputMaybe; }; export type AdministratorSortParameter = { - createdAt?: InputMaybe; - emailAddress?: InputMaybe; - firstName?: InputMaybe; - id?: InputMaybe; - lastName?: InputMaybe; - updatedAt?: InputMaybe; -}; - -export type Allocation = Node & - StockMovement & { - createdAt: Scalars['DateTime']; - id: Scalars['ID']; - orderLine: OrderLine; - productVariant: ProductVariant; - quantity: Scalars['Int']; - type: StockMovementType; - updatedAt: Scalars['DateTime']; - }; + createdAt?: InputMaybe; + emailAddress?: InputMaybe; + firstName?: InputMaybe; + id?: InputMaybe; + lastName?: InputMaybe; + updatedAt?: InputMaybe; +}; + +export type Allocation = Node & StockMovement & { + createdAt: Scalars['DateTime']; + id: Scalars['ID']; + orderLine: OrderLine; + productVariant: ProductVariant; + quantity: Scalars['Int']; + type: StockMovementType; + updatedAt: Scalars['DateTime']; +}; /** Returned if an attempting to refund an OrderItem which has already been refunded */ export type AlreadyRefundedError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; - refundId: Scalars['ID']; + errorCode: ErrorCode; + message: Scalars['String']; + refundId: Scalars['ID']; }; -export type ApplyCouponCodeResult = - | CouponCodeExpiredError - | CouponCodeInvalidError - | CouponCodeLimitError - | Order; +export type ApplyCouponCodeResult = CouponCodeExpiredError | CouponCodeInvalidError | CouponCodeLimitError | Order; export type Asset = Node & { - createdAt: Scalars['DateTime']; - customFields?: Maybe; - fileSize: Scalars['Int']; - focalPoint?: Maybe; - height: Scalars['Int']; - id: Scalars['ID']; - mimeType: Scalars['String']; - name: Scalars['String']; - preview: Scalars['String']; - source: Scalars['String']; - tags: Array; - type: AssetType; - updatedAt: Scalars['DateTime']; - width: Scalars['Int']; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + fileSize: Scalars['Int']; + focalPoint?: Maybe; + height: Scalars['Int']; + id: Scalars['ID']; + mimeType: Scalars['String']; + name: Scalars['String']; + preview: Scalars['String']; + source: Scalars['String']; + tags: Array; + type: AssetType; + updatedAt: Scalars['DateTime']; + width: Scalars['Int']; }; export type AssetFilterParameter = { - createdAt?: InputMaybe; - fileSize?: InputMaybe; - height?: InputMaybe; - id?: InputMaybe; - mimeType?: InputMaybe; - name?: InputMaybe; - preview?: InputMaybe; - source?: InputMaybe; - type?: InputMaybe; - updatedAt?: InputMaybe; - width?: InputMaybe; + createdAt?: InputMaybe; + fileSize?: InputMaybe; + height?: InputMaybe; + id?: InputMaybe; + mimeType?: InputMaybe; + name?: InputMaybe; + preview?: InputMaybe; + source?: InputMaybe; + type?: InputMaybe; + updatedAt?: InputMaybe; + width?: InputMaybe; }; export type AssetList = PaginatedList & { - items: Array; - totalItems: Scalars['Int']; + items: Array; + totalItems: Scalars['Int']; }; export type AssetListOptions = { - /** Allows the results to be filtered */ - filter?: InputMaybe; - /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ - filterOperator?: InputMaybe; - /** Skips the first n results, for use in pagination */ - skip?: InputMaybe; - /** Specifies which properties to sort the results by */ - sort?: InputMaybe; - tags?: InputMaybe>; - tagsOperator?: InputMaybe; - /** Takes n results, for use in pagination */ - take?: InputMaybe; + /** Allows the results to be filtered */ + filter?: InputMaybe; + /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ + filterOperator?: InputMaybe; + /** Skips the first n results, for use in pagination */ + skip?: InputMaybe; + /** Specifies which properties to sort the results by */ + sort?: InputMaybe; + tags?: InputMaybe>; + tagsOperator?: InputMaybe; + /** Takes n results, for use in pagination */ + take?: InputMaybe; }; export type AssetSortParameter = { - createdAt?: InputMaybe; - fileSize?: InputMaybe; - height?: InputMaybe; - id?: InputMaybe; - mimeType?: InputMaybe; - name?: InputMaybe; - preview?: InputMaybe; - source?: InputMaybe; - updatedAt?: InputMaybe; - width?: InputMaybe; + createdAt?: InputMaybe; + fileSize?: InputMaybe; + height?: InputMaybe; + id?: InputMaybe; + mimeType?: InputMaybe; + name?: InputMaybe; + preview?: InputMaybe; + source?: InputMaybe; + updatedAt?: InputMaybe; + width?: InputMaybe; }; export enum AssetType { - BINARY = 'BINARY', - IMAGE = 'IMAGE', - VIDEO = 'VIDEO', + BINARY = 'BINARY', + IMAGE = 'IMAGE', + VIDEO = 'VIDEO' } export type AssignAssetsToChannelInput = { - assetIds: Array; - channelId: Scalars['ID']; + assetIds: Array; + channelId: Scalars['ID']; }; export type AssignCollectionsToChannelInput = { - channelId: Scalars['ID']; - collectionIds: Array; + channelId: Scalars['ID']; + collectionIds: Array; }; export type AssignFacetsToChannelInput = { - channelId: Scalars['ID']; - facetIds: Array; + channelId: Scalars['ID']; + facetIds: Array; }; export type AssignProductVariantsToChannelInput = { - channelId: Scalars['ID']; - priceFactor?: InputMaybe; - productVariantIds: Array; + channelId: Scalars['ID']; + priceFactor?: InputMaybe; + productVariantIds: Array; }; export type AssignProductsToChannelInput = { - channelId: Scalars['ID']; - priceFactor?: InputMaybe; - productIds: Array; + channelId: Scalars['ID']; + priceFactor?: InputMaybe; + productIds: Array; }; export type AssignPromotionsToChannelInput = { - channelId: Scalars['ID']; - promotionIds: Array; + channelId: Scalars['ID']; + promotionIds: Array; }; export type AuthenticationInput = { - native?: InputMaybe; + native?: InputMaybe; }; export type AuthenticationMethod = Node & { - createdAt: Scalars['DateTime']; - id: Scalars['ID']; - strategy: Scalars['String']; - updatedAt: Scalars['DateTime']; + createdAt: Scalars['DateTime']; + id: Scalars['ID']; + strategy: Scalars['String']; + updatedAt: Scalars['DateTime']; }; export type AuthenticationResult = CurrentUser | InvalidCredentialsError; export type BooleanCustomFieldConfig = CustomField & { - description?: Maybe>; - internal?: Maybe; - label?: Maybe>; - list: Scalars['Boolean']; - name: Scalars['String']; - nullable?: Maybe; - readonly?: Maybe; - type: Scalars['String']; - ui?: Maybe; + description?: Maybe>; + internal?: Maybe; + label?: Maybe>; + list: Scalars['Boolean']; + name: Scalars['String']; + nullable?: Maybe; + readonly?: Maybe; + type: Scalars['String']; + ui?: Maybe; }; /** Operators for filtering on a list of Boolean fields */ export type BooleanListOperators = { - inList: Scalars['Boolean']; + inList: Scalars['Boolean']; }; /** Operators for filtering on a Boolean field */ export type BooleanOperators = { - eq?: InputMaybe; - isNull?: InputMaybe; + eq?: InputMaybe; + isNull?: InputMaybe; }; /** Returned if an attempting to cancel lines from an Order which is still active */ export type CancelActiveOrderError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; - orderState: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; + orderState: Scalars['String']; }; export type CancelOrderInput = { - /** Specify whether the shipping charges should also be cancelled. Defaults to false */ - cancelShipping?: InputMaybe; - /** Optionally specify which OrderLines to cancel. If not provided, all OrderLines will be cancelled */ - lines?: InputMaybe>; - /** The id of the order to be cancelled */ - orderId: Scalars['ID']; - reason?: InputMaybe; -}; - -export type CancelOrderResult = - | CancelActiveOrderError - | EmptyOrderLineSelectionError - | MultipleOrderError - | Order - | OrderStateTransitionError - | QuantityTooGreatError; + /** Specify whether the shipping charges should also be cancelled. Defaults to false */ + cancelShipping?: InputMaybe; + /** Optionally specify which OrderLines to cancel. If not provided, all OrderLines will be cancelled */ + lines?: InputMaybe>; + /** The id of the order to be cancelled */ + orderId: Scalars['ID']; + reason?: InputMaybe; +}; + +export type CancelOrderResult = CancelActiveOrderError | EmptyOrderLineSelectionError | MultipleOrderError | Order | OrderStateTransitionError | QuantityTooGreatError; /** Returned if the Payment cancellation fails */ export type CancelPaymentError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; - paymentErrorMessage: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; + paymentErrorMessage: Scalars['String']; }; export type CancelPaymentResult = CancelPaymentError | Payment | PaymentStateTransitionError; -export type Cancellation = Node & - StockMovement & { - createdAt: Scalars['DateTime']; - id: Scalars['ID']; - orderLine: OrderLine; - productVariant: ProductVariant; - quantity: Scalars['Int']; - type: StockMovementType; - updatedAt: Scalars['DateTime']; - }; +export type Cancellation = Node & StockMovement & { + createdAt: Scalars['DateTime']; + id: Scalars['ID']; + orderLine: OrderLine; + productVariant: ProductVariant; + quantity: Scalars['Int']; + type: StockMovementType; + updatedAt: Scalars['DateTime']; +}; export type Channel = Node & { - code: Scalars['String']; - createdAt: Scalars['DateTime']; - 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']; }; /** @@ -373,73 +354,74 @@ export type Channel = Node & { * of the GlobalSettings */ export type ChannelDefaultLanguageError = ErrorResult & { - channelCode: Scalars['String']; - errorCode: ErrorCode; - language: Scalars['String']; - message: Scalars['String']; + channelCode: Scalars['String']; + errorCode: ErrorCode; + language: Scalars['String']; + message: Scalars['String']; }; export type Collection = Node & { - assets: Array; - breadcrumbs: Array; - children?: Maybe>; - createdAt: Scalars['DateTime']; - customFields?: Maybe; - description: Scalars['String']; - featuredAsset?: Maybe; - filters: Array; - id: Scalars['ID']; - inheritFilters: Scalars['Boolean']; - isPrivate: Scalars['Boolean']; - languageCode?: Maybe; - name: Scalars['String']; - parent?: Maybe; - position: Scalars['Int']; - productVariants: ProductVariantList; - slug: Scalars['String']; - translations: Array; - updatedAt: Scalars['DateTime']; + assets: Array; + breadcrumbs: Array; + children?: Maybe>; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + description: Scalars['String']; + featuredAsset?: Maybe; + filters: Array; + id: Scalars['ID']; + inheritFilters: Scalars['Boolean']; + isPrivate: Scalars['Boolean']; + languageCode?: Maybe; + name: Scalars['String']; + parent?: Maybe; + position: Scalars['Int']; + productVariants: ProductVariantList; + slug: Scalars['String']; + translations: Array; + updatedAt: Scalars['DateTime']; }; + export type CollectionProductVariantsArgs = { - options?: InputMaybe; + options?: InputMaybe; }; export type CollectionBreadcrumb = { - id: Scalars['ID']; - name: Scalars['String']; - slug: Scalars['String']; + id: Scalars['ID']; + name: Scalars['String']; + slug: Scalars['String']; }; export type CollectionFilterParameter = { - createdAt?: InputMaybe; - description?: InputMaybe; - id?: InputMaybe; - inheritFilters?: InputMaybe; - isPrivate?: InputMaybe; - languageCode?: InputMaybe; - name?: InputMaybe; - position?: InputMaybe; - slug?: InputMaybe; - updatedAt?: InputMaybe; + createdAt?: InputMaybe; + description?: InputMaybe; + id?: InputMaybe; + inheritFilters?: InputMaybe; + isPrivate?: InputMaybe; + languageCode?: InputMaybe; + name?: InputMaybe; + position?: InputMaybe; + slug?: InputMaybe; + updatedAt?: InputMaybe; }; export type CollectionList = PaginatedList & { - items: Array; - totalItems: Scalars['Int']; + items: Array; + totalItems: Scalars['Int']; }; export type CollectionListOptions = { - /** Allows the results to be filtered */ - filter?: InputMaybe; - /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ - filterOperator?: InputMaybe; - /** Skips the first n results, for use in pagination */ - skip?: InputMaybe; - /** Specifies which properties to sort the results by */ - sort?: InputMaybe; - /** Takes n results, for use in pagination */ - take?: InputMaybe; + /** Allows the results to be filtered */ + filter?: InputMaybe; + /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ + filterOperator?: InputMaybe; + /** Skips the first n results, for use in pagination */ + skip?: InputMaybe; + /** Specifies which properties to sort the results by */ + sort?: InputMaybe; + /** Takes n results, for use in pagination */ + take?: InputMaybe; }; /** @@ -447,406 +429,406 @@ 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']; - stockLevels?: InputMaybe>; - stockOnHand?: InputMaybe; - taxCategoryId?: InputMaybe; - trackInventory?: InputMaybe; - translations: Array; - useGlobalOutOfStockThreshold?: InputMaybe; + assetIds?: InputMaybe>; + customFields?: InputMaybe; + facetValueIds?: InputMaybe>; + featuredAssetId?: InputMaybe; + optionIds?: InputMaybe>; + outOfStockThreshold?: InputMaybe; + price?: InputMaybe; + productId: Scalars['ID']; + sku: Scalars['String']; + stockLevels?: InputMaybe>; + stockOnHand?: InputMaybe; + taxCategoryId?: InputMaybe; + trackInventory?: InputMaybe; + translations: Array; + useGlobalOutOfStockThreshold?: InputMaybe; }; export type CreateProductVariantOptionInput = { - code: Scalars['String']; - optionGroupId: Scalars['ID']; - translations: Array; + code: Scalars['String']; + optionGroupId: Scalars['ID']; + translations: Array; }; export type CreatePromotionInput = { - actions: Array; - conditions: Array; - couponCode?: InputMaybe; - customFields?: InputMaybe; - enabled: Scalars['Boolean']; - endsAt?: InputMaybe; - 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 CreateSellerInput = { - customFields?: InputMaybe; - name: Scalars['String']; + customFields?: InputMaybe; + name: Scalars['String']; }; export type CreateShippingMethodInput = { - calculator: ConfigurableOperationInput; - checker: ConfigurableOperationInput; - code: Scalars['String']; - customFields?: InputMaybe; - fulfillmentHandler: Scalars['String']; - translations: Array; + calculator: ConfigurableOperationInput; + checker: ConfigurableOperationInput; + code: Scalars['String']; + customFields?: InputMaybe; + fulfillmentHandler: Scalars['String']; + translations: Array; }; export type CreateStockLocationInput = { - customFields?: InputMaybe; - description?: InputMaybe; - name: Scalars['String']; + customFields?: InputMaybe; + description?: InputMaybe; + name: Scalars['String']; }; export type CreateTagInput = { - value: Scalars['String']; + value: Scalars['String']; }; export type CreateTaxCategoryInput = { - customFields?: InputMaybe; - isDefault?: InputMaybe; - name: Scalars['String']; + customFields?: InputMaybe; + isDefault?: InputMaybe; + name: Scalars['String']; }; export type CreateTaxRateInput = { - categoryId: Scalars['ID']; - customFields?: InputMaybe; - customerGroupId?: InputMaybe; - enabled: Scalars['Boolean']; - name: Scalars['String']; - value: Scalars['Float']; - zoneId: Scalars['ID']; + categoryId: Scalars['ID']; + customFields?: InputMaybe; + customerGroupId?: InputMaybe; + enabled: Scalars['Boolean']; + name: Scalars['String']; + value: Scalars['Float']; + zoneId: Scalars['ID']; }; export type CreateZoneInput = { - customFields?: InputMaybe; - memberIds?: InputMaybe>; - name: Scalars['String']; + customFields?: InputMaybe; + memberIds?: InputMaybe>; + name: Scalars['String']; }; /** @@ -856,515 +838,510 @@ export type CreateZoneInput = { * @docsCategory common */ export enum CurrencyCode { - /** United Arab Emirates dirham */ - AED = 'AED', - /** Afghan afghani */ - AFN = 'AFN', - /** Albanian lek */ - ALL = 'ALL', - /** Armenian dram */ - AMD = 'AMD', - /** Netherlands Antillean guilder */ - ANG = 'ANG', - /** Angolan kwanza */ - AOA = 'AOA', - /** Argentine peso */ - ARS = 'ARS', - /** Australian dollar */ - AUD = 'AUD', - /** Aruban florin */ - AWG = 'AWG', - /** Azerbaijani manat */ - AZN = 'AZN', - /** Bosnia and Herzegovina convertible mark */ - BAM = 'BAM', - /** Barbados dollar */ - BBD = 'BBD', - /** Bangladeshi taka */ - BDT = 'BDT', - /** Bulgarian lev */ - BGN = 'BGN', - /** Bahraini dinar */ - BHD = 'BHD', - /** Burundian franc */ - BIF = 'BIF', - /** Bermudian dollar */ - BMD = 'BMD', - /** Brunei dollar */ - BND = 'BND', - /** Boliviano */ - BOB = 'BOB', - /** Brazilian real */ - BRL = 'BRL', - /** Bahamian dollar */ - BSD = 'BSD', - /** Bhutanese ngultrum */ - BTN = 'BTN', - /** Botswana pula */ - BWP = 'BWP', - /** Belarusian ruble */ - BYN = 'BYN', - /** Belize dollar */ - BZD = 'BZD', - /** Canadian dollar */ - CAD = 'CAD', - /** Congolese franc */ - CDF = 'CDF', - /** Swiss franc */ - CHF = 'CHF', - /** Chilean peso */ - CLP = 'CLP', - /** Renminbi (Chinese) yuan */ - CNY = 'CNY', - /** Colombian peso */ - COP = 'COP', - /** Costa Rican colon */ - CRC = 'CRC', - /** Cuban convertible peso */ - CUC = 'CUC', - /** Cuban peso */ - CUP = 'CUP', - /** Cape Verde escudo */ - CVE = 'CVE', - /** Czech koruna */ - CZK = 'CZK', - /** Djiboutian franc */ - DJF = 'DJF', - /** Danish krone */ - DKK = 'DKK', - /** Dominican peso */ - DOP = 'DOP', - /** Algerian dinar */ - DZD = 'DZD', - /** Egyptian pound */ - EGP = 'EGP', - /** Eritrean nakfa */ - ERN = 'ERN', - /** Ethiopian birr */ - ETB = 'ETB', - /** Euro */ - EUR = 'EUR', - /** Fiji dollar */ - FJD = 'FJD', - /** Falkland Islands pound */ - FKP = 'FKP', - /** Pound sterling */ - GBP = 'GBP', - /** Georgian lari */ - GEL = 'GEL', - /** Ghanaian cedi */ - GHS = 'GHS', - /** Gibraltar pound */ - GIP = 'GIP', - /** Gambian dalasi */ - GMD = 'GMD', - /** Guinean franc */ - GNF = 'GNF', - /** Guatemalan quetzal */ - GTQ = 'GTQ', - /** Guyanese dollar */ - GYD = 'GYD', - /** Hong Kong dollar */ - HKD = 'HKD', - /** Honduran lempira */ - HNL = 'HNL', - /** Croatian kuna */ - HRK = 'HRK', - /** Haitian gourde */ - HTG = 'HTG', - /** Hungarian forint */ - HUF = 'HUF', - /** Indonesian rupiah */ - IDR = 'IDR', - /** Israeli new shekel */ - ILS = 'ILS', - /** Indian rupee */ - INR = 'INR', - /** Iraqi dinar */ - IQD = 'IQD', - /** Iranian rial */ - IRR = 'IRR', - /** Icelandic króna */ - ISK = 'ISK', - /** Jamaican dollar */ - JMD = 'JMD', - /** Jordanian dinar */ - JOD = 'JOD', - /** Japanese yen */ - JPY = 'JPY', - /** Kenyan shilling */ - KES = 'KES', - /** Kyrgyzstani som */ - KGS = 'KGS', - /** Cambodian riel */ - KHR = 'KHR', - /** Comoro franc */ - KMF = 'KMF', - /** North Korean won */ - KPW = 'KPW', - /** South Korean won */ - KRW = 'KRW', - /** Kuwaiti dinar */ - KWD = 'KWD', - /** Cayman Islands dollar */ - KYD = 'KYD', - /** Kazakhstani tenge */ - KZT = 'KZT', - /** Lao kip */ - LAK = 'LAK', - /** Lebanese pound */ - LBP = 'LBP', - /** Sri Lankan rupee */ - LKR = 'LKR', - /** Liberian dollar */ - LRD = 'LRD', - /** Lesotho loti */ - LSL = 'LSL', - /** Libyan dinar */ - LYD = 'LYD', - /** Moroccan dirham */ - MAD = 'MAD', - /** Moldovan leu */ - MDL = 'MDL', - /** Malagasy ariary */ - MGA = 'MGA', - /** Macedonian denar */ - MKD = 'MKD', - /** Myanmar kyat */ - MMK = 'MMK', - /** Mongolian tögrög */ - MNT = 'MNT', - /** Macanese pataca */ - MOP = 'MOP', - /** Mauritanian ouguiya */ - MRU = 'MRU', - /** Mauritian rupee */ - MUR = 'MUR', - /** Maldivian rufiyaa */ - MVR = 'MVR', - /** Malawian kwacha */ - MWK = 'MWK', - /** Mexican peso */ - MXN = 'MXN', - /** Malaysian ringgit */ - MYR = 'MYR', - /** Mozambican metical */ - MZN = 'MZN', - /** Namibian dollar */ - NAD = 'NAD', - /** Nigerian naira */ - NGN = 'NGN', - /** Nicaraguan córdoba */ - NIO = 'NIO', - /** Norwegian krone */ - NOK = 'NOK', - /** Nepalese rupee */ - NPR = 'NPR', - /** New Zealand dollar */ - NZD = 'NZD', - /** Omani rial */ - OMR = 'OMR', - /** Panamanian balboa */ - PAB = 'PAB', - /** Peruvian sol */ - PEN = 'PEN', - /** Papua New Guinean kina */ - PGK = 'PGK', - /** Philippine peso */ - PHP = 'PHP', - /** Pakistani rupee */ - PKR = 'PKR', - /** Polish złoty */ - PLN = 'PLN', - /** Paraguayan guaraní */ - PYG = 'PYG', - /** Qatari riyal */ - QAR = 'QAR', - /** Romanian leu */ - RON = 'RON', - /** Serbian dinar */ - RSD = 'RSD', - /** Russian ruble */ - RUB = 'RUB', - /** Rwandan franc */ - RWF = 'RWF', - /** Saudi riyal */ - SAR = 'SAR', - /** Solomon Islands dollar */ - SBD = 'SBD', - /** Seychelles rupee */ - SCR = 'SCR', - /** Sudanese pound */ - SDG = 'SDG', - /** Swedish krona/kronor */ - SEK = 'SEK', - /** Singapore dollar */ - SGD = 'SGD', - /** Saint Helena pound */ - SHP = 'SHP', - /** Sierra Leonean leone */ - SLL = 'SLL', - /** Somali shilling */ - SOS = 'SOS', - /** Surinamese dollar */ - SRD = 'SRD', - /** South Sudanese pound */ - SSP = 'SSP', - /** São Tomé and Príncipe dobra */ - STN = 'STN', - /** Salvadoran colón */ - SVC = 'SVC', - /** Syrian pound */ - SYP = 'SYP', - /** Swazi lilangeni */ - SZL = 'SZL', - /** Thai baht */ - THB = 'THB', - /** Tajikistani somoni */ - TJS = 'TJS', - /** Turkmenistan manat */ - TMT = 'TMT', - /** Tunisian dinar */ - TND = 'TND', - /** Tongan paʻanga */ - TOP = 'TOP', - /** Turkish lira */ - TRY = 'TRY', - /** Trinidad and Tobago dollar */ - TTD = 'TTD', - /** New Taiwan dollar */ - TWD = 'TWD', - /** Tanzanian shilling */ - TZS = 'TZS', - /** Ukrainian hryvnia */ - UAH = 'UAH', - /** Ugandan shilling */ - UGX = 'UGX', - /** United States dollar */ - USD = 'USD', - /** Uruguayan peso */ - UYU = 'UYU', - /** Uzbekistan som */ - UZS = 'UZS', - /** Venezuelan bolívar soberano */ - VES = 'VES', - /** Vietnamese đồng */ - VND = 'VND', - /** Vanuatu vatu */ - VUV = 'VUV', - /** Samoan tala */ - WST = 'WST', - /** CFA franc BEAC */ - XAF = 'XAF', - /** East Caribbean dollar */ - XCD = 'XCD', - /** CFA franc BCEAO */ - XOF = 'XOF', - /** CFP franc (franc Pacifique) */ - XPF = 'XPF', - /** Yemeni rial */ - YER = 'YER', - /** South African rand */ - ZAR = 'ZAR', - /** Zambian kwacha */ - ZMW = 'ZMW', - /** Zimbabwean dollar */ - ZWL = 'ZWL', + /** United Arab Emirates dirham */ + AED = 'AED', + /** Afghan afghani */ + AFN = 'AFN', + /** Albanian lek */ + ALL = 'ALL', + /** Armenian dram */ + AMD = 'AMD', + /** Netherlands Antillean guilder */ + ANG = 'ANG', + /** Angolan kwanza */ + AOA = 'AOA', + /** Argentine peso */ + ARS = 'ARS', + /** Australian dollar */ + AUD = 'AUD', + /** Aruban florin */ + AWG = 'AWG', + /** Azerbaijani manat */ + AZN = 'AZN', + /** Bosnia and Herzegovina convertible mark */ + BAM = 'BAM', + /** Barbados dollar */ + BBD = 'BBD', + /** Bangladeshi taka */ + BDT = 'BDT', + /** Bulgarian lev */ + BGN = 'BGN', + /** Bahraini dinar */ + BHD = 'BHD', + /** Burundian franc */ + BIF = 'BIF', + /** Bermudian dollar */ + BMD = 'BMD', + /** Brunei dollar */ + BND = 'BND', + /** Boliviano */ + BOB = 'BOB', + /** Brazilian real */ + BRL = 'BRL', + /** Bahamian dollar */ + BSD = 'BSD', + /** Bhutanese ngultrum */ + BTN = 'BTN', + /** Botswana pula */ + BWP = 'BWP', + /** Belarusian ruble */ + BYN = 'BYN', + /** Belize dollar */ + BZD = 'BZD', + /** Canadian dollar */ + CAD = 'CAD', + /** Congolese franc */ + CDF = 'CDF', + /** Swiss franc */ + CHF = 'CHF', + /** Chilean peso */ + CLP = 'CLP', + /** Renminbi (Chinese) yuan */ + CNY = 'CNY', + /** Colombian peso */ + COP = 'COP', + /** Costa Rican colon */ + CRC = 'CRC', + /** Cuban convertible peso */ + CUC = 'CUC', + /** Cuban peso */ + CUP = 'CUP', + /** Cape Verde escudo */ + CVE = 'CVE', + /** Czech koruna */ + CZK = 'CZK', + /** Djiboutian franc */ + DJF = 'DJF', + /** Danish krone */ + DKK = 'DKK', + /** Dominican peso */ + DOP = 'DOP', + /** Algerian dinar */ + DZD = 'DZD', + /** Egyptian pound */ + EGP = 'EGP', + /** Eritrean nakfa */ + ERN = 'ERN', + /** Ethiopian birr */ + ETB = 'ETB', + /** Euro */ + EUR = 'EUR', + /** Fiji dollar */ + FJD = 'FJD', + /** Falkland Islands pound */ + FKP = 'FKP', + /** Pound sterling */ + GBP = 'GBP', + /** Georgian lari */ + GEL = 'GEL', + /** Ghanaian cedi */ + GHS = 'GHS', + /** Gibraltar pound */ + GIP = 'GIP', + /** Gambian dalasi */ + GMD = 'GMD', + /** Guinean franc */ + GNF = 'GNF', + /** Guatemalan quetzal */ + GTQ = 'GTQ', + /** Guyanese dollar */ + GYD = 'GYD', + /** Hong Kong dollar */ + HKD = 'HKD', + /** Honduran lempira */ + HNL = 'HNL', + /** Croatian kuna */ + HRK = 'HRK', + /** Haitian gourde */ + HTG = 'HTG', + /** Hungarian forint */ + HUF = 'HUF', + /** Indonesian rupiah */ + IDR = 'IDR', + /** Israeli new shekel */ + ILS = 'ILS', + /** Indian rupee */ + INR = 'INR', + /** Iraqi dinar */ + IQD = 'IQD', + /** Iranian rial */ + IRR = 'IRR', + /** Icelandic króna */ + ISK = 'ISK', + /** Jamaican dollar */ + JMD = 'JMD', + /** Jordanian dinar */ + JOD = 'JOD', + /** Japanese yen */ + JPY = 'JPY', + /** Kenyan shilling */ + KES = 'KES', + /** Kyrgyzstani som */ + KGS = 'KGS', + /** Cambodian riel */ + KHR = 'KHR', + /** Comoro franc */ + KMF = 'KMF', + /** North Korean won */ + KPW = 'KPW', + /** South Korean won */ + KRW = 'KRW', + /** Kuwaiti dinar */ + KWD = 'KWD', + /** Cayman Islands dollar */ + KYD = 'KYD', + /** Kazakhstani tenge */ + KZT = 'KZT', + /** Lao kip */ + LAK = 'LAK', + /** Lebanese pound */ + LBP = 'LBP', + /** Sri Lankan rupee */ + LKR = 'LKR', + /** Liberian dollar */ + LRD = 'LRD', + /** Lesotho loti */ + LSL = 'LSL', + /** Libyan dinar */ + LYD = 'LYD', + /** Moroccan dirham */ + MAD = 'MAD', + /** Moldovan leu */ + MDL = 'MDL', + /** Malagasy ariary */ + MGA = 'MGA', + /** Macedonian denar */ + MKD = 'MKD', + /** Myanmar kyat */ + MMK = 'MMK', + /** Mongolian tögrög */ + MNT = 'MNT', + /** Macanese pataca */ + MOP = 'MOP', + /** Mauritanian ouguiya */ + MRU = 'MRU', + /** Mauritian rupee */ + MUR = 'MUR', + /** Maldivian rufiyaa */ + MVR = 'MVR', + /** Malawian kwacha */ + MWK = 'MWK', + /** Mexican peso */ + MXN = 'MXN', + /** Malaysian ringgit */ + MYR = 'MYR', + /** Mozambican metical */ + MZN = 'MZN', + /** Namibian dollar */ + NAD = 'NAD', + /** Nigerian naira */ + NGN = 'NGN', + /** Nicaraguan córdoba */ + NIO = 'NIO', + /** Norwegian krone */ + NOK = 'NOK', + /** Nepalese rupee */ + NPR = 'NPR', + /** New Zealand dollar */ + NZD = 'NZD', + /** Omani rial */ + OMR = 'OMR', + /** Panamanian balboa */ + PAB = 'PAB', + /** Peruvian sol */ + PEN = 'PEN', + /** Papua New Guinean kina */ + PGK = 'PGK', + /** Philippine peso */ + PHP = 'PHP', + /** Pakistani rupee */ + PKR = 'PKR', + /** Polish złoty */ + PLN = 'PLN', + /** Paraguayan guaraní */ + PYG = 'PYG', + /** Qatari riyal */ + QAR = 'QAR', + /** Romanian leu */ + RON = 'RON', + /** Serbian dinar */ + RSD = 'RSD', + /** Russian ruble */ + RUB = 'RUB', + /** Rwandan franc */ + RWF = 'RWF', + /** Saudi riyal */ + SAR = 'SAR', + /** Solomon Islands dollar */ + SBD = 'SBD', + /** Seychelles rupee */ + SCR = 'SCR', + /** Sudanese pound */ + SDG = 'SDG', + /** Swedish krona/kronor */ + SEK = 'SEK', + /** Singapore dollar */ + SGD = 'SGD', + /** Saint Helena pound */ + SHP = 'SHP', + /** Sierra Leonean leone */ + SLL = 'SLL', + /** Somali shilling */ + SOS = 'SOS', + /** Surinamese dollar */ + SRD = 'SRD', + /** South Sudanese pound */ + SSP = 'SSP', + /** São Tomé and Príncipe dobra */ + STN = 'STN', + /** Salvadoran colón */ + SVC = 'SVC', + /** Syrian pound */ + SYP = 'SYP', + /** Swazi lilangeni */ + SZL = 'SZL', + /** Thai baht */ + THB = 'THB', + /** Tajikistani somoni */ + TJS = 'TJS', + /** Turkmenistan manat */ + TMT = 'TMT', + /** Tunisian dinar */ + TND = 'TND', + /** Tongan paʻanga */ + TOP = 'TOP', + /** Turkish lira */ + TRY = 'TRY', + /** Trinidad and Tobago dollar */ + TTD = 'TTD', + /** New Taiwan dollar */ + TWD = 'TWD', + /** Tanzanian shilling */ + TZS = 'TZS', + /** Ukrainian hryvnia */ + UAH = 'UAH', + /** Ugandan shilling */ + UGX = 'UGX', + /** United States dollar */ + USD = 'USD', + /** Uruguayan peso */ + UYU = 'UYU', + /** Uzbekistan som */ + UZS = 'UZS', + /** Venezuelan bolívar soberano */ + VES = 'VES', + /** Vietnamese đồng */ + VND = 'VND', + /** Vanuatu vatu */ + VUV = 'VUV', + /** Samoan tala */ + WST = 'WST', + /** CFA franc BEAC */ + XAF = 'XAF', + /** East Caribbean dollar */ + XCD = 'XCD', + /** CFA franc BCEAO */ + XOF = 'XOF', + /** CFP franc (franc Pacifique) */ + XPF = 'XPF', + /** Yemeni rial */ + YER = 'YER', + /** South African rand */ + ZAR = 'ZAR', + /** Zambian kwacha */ + ZMW = 'ZMW', + /** Zimbabwean dollar */ + ZWL = 'ZWL' } export type CurrentUser = { - channels: Array; - id: Scalars['ID']; - identifier: Scalars['String']; + channels: Array; + id: Scalars['ID']; + identifier: Scalars['String']; }; export type CurrentUserChannel = { - code: Scalars['String']; - id: Scalars['ID']; - permissions: Array; - token: Scalars['String']; + code: Scalars['String']; + id: Scalars['ID']; + permissions: Array; + token: Scalars['String']; }; export type CustomField = { - description?: Maybe>; - internal?: Maybe; - label?: Maybe>; - list: Scalars['Boolean']; - name: Scalars['String']; - nullable?: Maybe; - readonly?: Maybe; - type: Scalars['String']; - ui?: Maybe; -}; - -export type CustomFieldConfig = - | BooleanCustomFieldConfig - | DateTimeCustomFieldConfig - | FloatCustomFieldConfig - | IntCustomFieldConfig - | LocaleStringCustomFieldConfig - | 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; - StockLocation: 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; + StockLocation: Array; + TaxCategory: Array; + TaxRate: Array; + User: Array; + Zone: Array; }; export type Customer = Node & { - addresses?: Maybe>; - createdAt: Scalars['DateTime']; - customFields?: Maybe; - emailAddress: Scalars['String']; - firstName: Scalars['String']; - groups: Array; - history: HistoryEntryList; - id: Scalars['ID']; - lastName: Scalars['String']; - orders: OrderList; - phoneNumber?: Maybe; - title?: Maybe; - updatedAt: Scalars['DateTime']; - user?: Maybe; + addresses?: Maybe>; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + emailAddress: Scalars['String']; + firstName: Scalars['String']; + groups: Array; + history: HistoryEntryList; + id: Scalars['ID']; + lastName: Scalars['String']; + orders: OrderList; + phoneNumber?: Maybe; + title?: Maybe; + updatedAt: Scalars['DateTime']; + user?: Maybe; }; + export type CustomerHistoryArgs = { - options?: InputMaybe; + options?: InputMaybe; }; + export type CustomerOrdersArgs = { - options?: InputMaybe; + options?: InputMaybe; }; export type CustomerFilterParameter = { - createdAt?: InputMaybe; - emailAddress?: InputMaybe; - firstName?: InputMaybe; - id?: InputMaybe; - lastName?: InputMaybe; - phoneNumber?: InputMaybe; - postalCode?: InputMaybe; - title?: InputMaybe; - updatedAt?: InputMaybe; + createdAt?: InputMaybe; + emailAddress?: InputMaybe; + firstName?: InputMaybe; + id?: InputMaybe; + lastName?: InputMaybe; + phoneNumber?: InputMaybe; + postalCode?: InputMaybe; + title?: InputMaybe; + updatedAt?: InputMaybe; }; export type CustomerGroup = Node & { - createdAt: Scalars['DateTime']; - customFields?: Maybe; - customers: CustomerList; - id: Scalars['ID']; - name: Scalars['String']; - updatedAt: Scalars['DateTime']; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + customers: CustomerList; + id: Scalars['ID']; + name: Scalars['String']; + updatedAt: Scalars['DateTime']; }; + export type CustomerGroupCustomersArgs = { - options?: InputMaybe; + options?: InputMaybe; }; export type CustomerGroupFilterParameter = { - createdAt?: InputMaybe; - id?: InputMaybe; - name?: InputMaybe; - updatedAt?: InputMaybe; + createdAt?: InputMaybe; + id?: InputMaybe; + name?: InputMaybe; + updatedAt?: InputMaybe; }; export type CustomerGroupList = PaginatedList & { - items: Array; - totalItems: Scalars['Int']; + items: Array; + totalItems: Scalars['Int']; }; export type CustomerGroupListOptions = { - /** Allows the results to be filtered */ - filter?: InputMaybe; - /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ - filterOperator?: InputMaybe; - /** Skips the first n results, for use in pagination */ - skip?: InputMaybe; - /** Specifies which properties to sort the results by */ - sort?: InputMaybe; - /** Takes n results, for use in pagination */ - take?: InputMaybe; + /** Allows the results to be filtered */ + filter?: InputMaybe; + /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ + filterOperator?: InputMaybe; + /** Skips the first n results, for use in pagination */ + skip?: InputMaybe; + /** Specifies which properties to sort the results by */ + sort?: InputMaybe; + /** Takes n results, for use in pagination */ + take?: InputMaybe; }; export type CustomerGroupSortParameter = { - createdAt?: InputMaybe; - id?: InputMaybe; - name?: InputMaybe; - updatedAt?: InputMaybe; + createdAt?: InputMaybe; + id?: InputMaybe; + name?: InputMaybe; + updatedAt?: InputMaybe; }; export type CustomerList = PaginatedList & { - items: Array; - totalItems: Scalars['Int']; + items: Array; + totalItems: Scalars['Int']; }; export type CustomerListOptions = { - /** Allows the results to be filtered */ - filter?: InputMaybe; - /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ - filterOperator?: InputMaybe; - /** Skips the first n results, for use in pagination */ - skip?: InputMaybe; - /** Specifies which properties to sort the results by */ - sort?: InputMaybe; - /** Takes n results, for use in pagination */ - take?: InputMaybe; + /** Allows the results to be filtered */ + filter?: InputMaybe; + /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ + filterOperator?: InputMaybe; + /** Skips the first n results, for use in pagination */ + skip?: InputMaybe; + /** Specifies which properties to sort the results by */ + sort?: InputMaybe; + /** Takes n results, for use in pagination */ + take?: InputMaybe; }; export type CustomerSortParameter = { - createdAt?: InputMaybe; - emailAddress?: InputMaybe; - firstName?: InputMaybe; - id?: InputMaybe; - lastName?: InputMaybe; - phoneNumber?: InputMaybe; - title?: InputMaybe; - updatedAt?: InputMaybe; + createdAt?: InputMaybe; + emailAddress?: InputMaybe; + firstName?: InputMaybe; + id?: InputMaybe; + lastName?: InputMaybe; + phoneNumber?: InputMaybe; + title?: InputMaybe; + updatedAt?: InputMaybe; }; /** Operators for filtering on a list of Date fields */ export type DateListOperators = { - inList: Scalars['DateTime']; + inList: Scalars['DateTime']; }; /** Operators for filtering on a DateTime field */ export type DateOperators = { - after?: InputMaybe; - before?: InputMaybe; - between?: InputMaybe; - eq?: InputMaybe; - isNull?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; + between?: InputMaybe; + eq?: InputMaybe; + isNull?: InputMaybe; }; export type DateRange = { - end: Scalars['DateTime']; - start: Scalars['DateTime']; + end: Scalars['DateTime']; + start: Scalars['DateTime']; }; /** @@ -1372,201 +1349,201 @@ export type DateRange = { * See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/datetime-local#Additional_attributes */ export type DateTimeCustomFieldConfig = CustomField & { - description?: Maybe>; - internal?: Maybe; - label?: Maybe>; - list: Scalars['Boolean']; - max?: Maybe; - min?: Maybe; - name: Scalars['String']; - nullable?: Maybe; - readonly?: Maybe; - step?: Maybe; - type: Scalars['String']; - ui?: Maybe; + description?: Maybe>; + internal?: Maybe; + label?: Maybe>; + list: Scalars['Boolean']; + max?: Maybe; + min?: Maybe; + name: Scalars['String']; + nullable?: Maybe; + readonly?: Maybe; + step?: Maybe; + type: Scalars['String']; + ui?: Maybe; }; export type DeleteAssetInput = { - assetId: Scalars['ID']; - deleteFromAllChannels?: InputMaybe; - force?: InputMaybe; + assetId: Scalars['ID']; + deleteFromAllChannels?: InputMaybe; + force?: InputMaybe; }; export type DeleteAssetsInput = { - assetIds: Array; - deleteFromAllChannels?: InputMaybe; - force?: InputMaybe; + assetIds: Array; + deleteFromAllChannels?: InputMaybe; + force?: InputMaybe; }; export type DeleteStockLocationInput = { - id: Scalars['ID']; - transferToLocationId?: InputMaybe; + id: Scalars['ID']; + transferToLocationId?: InputMaybe; }; export type DeletionResponse = { - message?: Maybe; - result: DeletionResult; + message?: Maybe; + result: DeletionResult; }; export enum DeletionResult { - /** The entity was successfully deleted */ - DELETED = 'DELETED', - /** Deletion did not take place, reason given in message */ - NOT_DELETED = 'NOT_DELETED', + /** The entity was successfully deleted */ + DELETED = 'DELETED', + /** Deletion did not take place, reason given in message */ + NOT_DELETED = 'NOT_DELETED' } export type Discount = { - adjustmentSource: Scalars['String']; - amount: Scalars['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']; }; /** @@ -1578,35 +1555,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; }; /** @@ -1614,202 +1591,202 @@ export type FacetValueListOptions = { * by the search, and in what quantity. */ export type FacetValueResult = { - count: Scalars['Int']; - facetValue: FacetValue; + count: Scalars['Int']; + facetValue: FacetValue; }; export type FacetValueSortParameter = { - code?: InputMaybe; - createdAt?: InputMaybe; - id?: InputMaybe; - name?: InputMaybe; - updatedAt?: InputMaybe; + code?: InputMaybe; + createdAt?: InputMaybe; + id?: InputMaybe; + name?: InputMaybe; + updatedAt?: InputMaybe; }; export type FacetValueTranslation = { - createdAt: Scalars['DateTime']; - id: Scalars['ID']; - languageCode: LanguageCode; - name: Scalars['String']; - updatedAt: Scalars['DateTime']; + createdAt: Scalars['DateTime']; + id: Scalars['ID']; + languageCode: LanguageCode; + name: Scalars['String']; + updatedAt: Scalars['DateTime']; }; export type FacetValueTranslationInput = { - customFields?: InputMaybe; - id?: InputMaybe; - languageCode: LanguageCode; - name?: InputMaybe; + customFields?: InputMaybe; + id?: InputMaybe; + languageCode: LanguageCode; + name?: InputMaybe; }; export type FloatCustomFieldConfig = CustomField & { - description?: Maybe>; - internal?: Maybe; - label?: Maybe>; - list: Scalars['Boolean']; - max?: Maybe; - min?: Maybe; - name: Scalars['String']; - nullable?: Maybe; - readonly?: Maybe; - step?: Maybe; - type: Scalars['String']; - ui?: Maybe; + description?: Maybe>; + internal?: Maybe; + label?: Maybe>; + list: Scalars['Boolean']; + max?: Maybe; + min?: Maybe; + name: Scalars['String']; + nullable?: Maybe; + readonly?: Maybe; + step?: Maybe; + type: Scalars['String']; + ui?: Maybe; }; export type FulfillOrderInput = { - handler: ConfigurableOperationInput; - lines: Array; + handler: ConfigurableOperationInput; + lines: Array; }; export type Fulfillment = Node & { - createdAt: Scalars['DateTime']; - customFields?: Maybe; - id: Scalars['ID']; - lines: Array; - method: Scalars['String']; - nextStates: Array; - state: Scalars['String']; - /** @deprecated Use the `lines` field instead */ - summary: Array; - trackingCode?: Maybe; - updatedAt: Scalars['DateTime']; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + id: Scalars['ID']; + lines: Array; + method: Scalars['String']; + nextStates: Array; + state: Scalars['String']; + /** @deprecated Use the `lines` field instead */ + summary: Array; + trackingCode?: Maybe; + updatedAt: Scalars['DateTime']; }; export type FulfillmentLine = { - fulfillment: Fulfillment; - fulfillmentId: Scalars['ID']; - orderLine: OrderLine; - orderLineId: Scalars['ID']; - quantity: Scalars['Int']; + fulfillment: Fulfillment; + fulfillmentId: Scalars['ID']; + orderLine: OrderLine; + orderLineId: Scalars['ID']; + quantity: Scalars['Int']; }; /** Returned when there is an error in transitioning the Fulfillment state */ export type FulfillmentStateTransitionError = ErrorResult & { - errorCode: ErrorCode; - fromState: Scalars['String']; - message: Scalars['String']; - toState: Scalars['String']; - transitionError: Scalars['String']; + errorCode: ErrorCode; + fromState: Scalars['String']; + message: Scalars['String']; + toState: Scalars['String']; + transitionError: Scalars['String']; }; export enum GlobalFlag { - FALSE = 'FALSE', - INHERIT = 'INHERIT', - TRUE = 'TRUE', + FALSE = 'FALSE', + INHERIT = 'INHERIT', + TRUE = 'TRUE' } export type GlobalSettings = { - availableLanguages: Array; - createdAt: Scalars['DateTime']; - customFields?: Maybe; - id: Scalars['ID']; - outOfStockThreshold: Scalars['Int']; - serverConfig: ServerConfig; - trackInventory: Scalars['Boolean']; - updatedAt: Scalars['DateTime']; + availableLanguages: Array; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + id: Scalars['ID']; + outOfStockThreshold: Scalars['Int']; + serverConfig: ServerConfig; + trackInventory: Scalars['Boolean']; + updatedAt: Scalars['DateTime']; }; 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']; }; /** @@ -1817,116 +1794,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; }; /** @@ -1936,12 +1913,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' } /** @@ -1954,358 +1931,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; }; /** @@ -2313,905 +2290,1027 @@ 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; - createStockLocation: StockLocation; - /** Create a new Tag */ - createTag: Tag; - /** Create a new TaxCategory */ - createTaxCategory: TaxCategory; - /** Create a new TaxRate */ - createTaxRate: TaxRate; - /** Create a new Zone */ - createZone: Zone; - /** Delete an Administrator */ - deleteAdministrator: DeletionResponse; - /** Delete an Asset */ - deleteAsset: DeletionResponse; - /** Delete multiple Assets */ - deleteAssets: DeletionResponse; - /** Delete a Channel */ - deleteChannel: DeletionResponse; - /** Delete a Collection and all of its descendants */ - deleteCollection: DeletionResponse; - /** Delete multiple Collections and all of their descendants */ - deleteCollections: Array; - /** Delete a Country */ - deleteCountry: DeletionResponse; - /** Delete a Customer */ - deleteCustomer: DeletionResponse; - /** Update an existing Address */ - deleteCustomerAddress: Success; - /** Delete a CustomerGroup */ - deleteCustomerGroup: DeletionResponse; - deleteCustomerNote: DeletionResponse; - /** Deletes a draft Order */ - deleteDraftOrder: DeletionResponse; - /** Delete an existing Facet */ - deleteFacet: DeletionResponse; - /** Delete one or more FacetValues */ - deleteFacetValues: Array; - /** Delete multiple existing Facets */ - deleteFacets: Array; - deleteOrderNote: DeletionResponse; - /** Delete a PaymentMethod */ - deletePaymentMethod: DeletionResponse; - /** Delete a Product */ - deleteProduct: DeletionResponse; - /** Delete a ProductOption */ - deleteProductOption: DeletionResponse; - /** Delete a ProductVariant */ - deleteProductVariant: DeletionResponse; - /** Delete multiple ProductVariants */ - deleteProductVariants: Array; - /** Delete multiple Products */ - deleteProducts: Array; - deletePromotion: DeletionResponse; - /** Delete an existing Role */ - deleteRole: DeletionResponse; - /** Delete a Seller */ - deleteSeller: DeletionResponse; - /** Delete a ShippingMethod */ - deleteShippingMethod: DeletionResponse; - deleteStockLocation: DeletionResponse; - /** Delete an existing Tag */ - deleteTag: DeletionResponse; - /** Deletes a TaxCategory */ - deleteTaxCategory: DeletionResponse; - /** Delete a TaxRate */ - deleteTaxRate: DeletionResponse; - /** Delete a Zone */ - deleteZone: DeletionResponse; - flushBufferedJobs: Success; - importProducts?: Maybe; - /** Authenticates the user using the native authentication strategy. This mutation is an alias for `authenticate({ native: { ... }})` */ - login: NativeAuthenticationResult; - logout: Success; - /** - * Allows an Order to be modified after it has been completed by the Customer. The Order must first - * be in the `Modifying` state. - */ - modifyOrder: ModifyOrderResult; - /** Move a Collection to a different parent or index */ - moveCollection: Collection; - refundOrder: RefundOrderResult; - reindex: Job; - /** Removes Collections from the specified Channel */ - removeCollectionsFromChannel: Array; - /** Removes the given coupon code from the draft Order */ - removeCouponCodeFromDraftOrder?: Maybe; - /** Remove Customers from a CustomerGroup */ - removeCustomersFromGroup: CustomerGroup; - /** Remove an OrderLine from the draft Order */ - removeDraftOrderLine: RemoveOrderItemsResult; - /** Removes Facets from the specified Channel */ - removeFacetsFromChannel: Array; - /** Remove members from a Zone */ - removeMembersFromZone: Zone; - /** Remove an OptionGroup from a Product */ - removeOptionGroupFromProduct: RemoveOptionGroupFromProductResult; - /** Removes ProductVariants from the specified Channel */ - removeProductVariantsFromChannel: Array; - /** Removes all ProductVariants of Product from the specified Channel */ - removeProductsFromChannel: Array; - /** Removes Promotions from the specified Channel */ - removePromotionsFromChannel: Array; - /** Remove all settled jobs in the given queues older than the given date. Returns the number of jobs deleted. */ - removeSettledJobs: Scalars['Int']; - runPendingSearchIndexUpdates: Success; - setCustomerForDraftOrder: SetCustomerForDraftOrderResult; - /** Sets the billing address for a draft Order */ - setDraftOrderBillingAddress: Order; - /** Allows any custom fields to be set for the active order */ - setDraftOrderCustomFields: Order; - /** Sets the shipping address for a draft Order */ - setDraftOrderShippingAddress: Order; - /** Sets the shipping method by id, which can be obtained with the `eligibleShippingMethodsForDraftOrder` query */ - setDraftOrderShippingMethod: SetOrderShippingMethodResult; - setOrderCustomFields?: Maybe; - settlePayment: SettlePaymentResult; - settleRefund: SettleRefundResult; - transitionFulfillmentToState: TransitionFulfillmentToStateResult; - transitionOrderToState?: Maybe; - transitionPaymentToState: TransitionPaymentToStateResult; - /** Update the active (currently logged-in) Administrator */ - updateActiveAdministrator: Administrator; - /** Update an existing Administrator */ - updateAdministrator: Administrator; - /** Update an existing Asset */ - updateAsset: Asset; - /** Update an existing Channel */ - updateChannel: UpdateChannelResult; - /** Update an existing Collection */ - updateCollection: Collection; - /** Update an existing Country */ - updateCountry: Country; - /** Update an existing Customer */ - updateCustomer: UpdateCustomerResult; - /** Update an existing Address */ - updateCustomerAddress: Address; - /** Update an existing CustomerGroup */ - updateCustomerGroup: CustomerGroup; - updateCustomerNote: HistoryEntry; - /** Update an existing Facet */ - updateFacet: Facet; - /** Update one or more FacetValues */ - updateFacetValues: Array; - updateGlobalSettings: UpdateGlobalSettingsResult; - updateOrderNote: HistoryEntry; - /** Update an existing PaymentMethod */ - updatePaymentMethod: PaymentMethod; - /** Update an existing Product */ - updateProduct: Product; - /** Create a new ProductOption within a ProductOptionGroup */ - updateProductOption: ProductOption; - /** Update an existing ProductOptionGroup */ - updateProductOptionGroup: ProductOptionGroup; - /** Update existing ProductVariants */ - updateProductVariants: Array>; - /** Update multiple existing Products */ - updateProducts: Array; - updatePromotion: UpdatePromotionResult; - /** Update an existing Role */ - updateRole: Role; - /** Update an existing Seller */ - updateSeller: Seller; - /** Update an existing ShippingMethod */ - updateShippingMethod: ShippingMethod; - updateStockLocation: StockLocation; - /** Update an existing Tag */ - updateTag: Tag; - /** Update an existing TaxCategory */ - updateTaxCategory: TaxCategory; - /** Update an existing TaxRate */ - updateTaxRate: TaxRate; - /** Update an existing Zone */ - updateZone: Zone; + /** Add Customers to a CustomerGroup */ + addCustomersToGroup: CustomerGroup; + addFulfillmentToOrder: AddFulfillmentToOrderResult; + /** Adds an item to the draft Order. */ + addItemToDraftOrder: UpdateOrderItemsResult; + /** + * Used to manually create a new Payment against an Order. + * This can be used by an Administrator when an Order is in the ArrangingPayment state. + * + * It is also used when a completed Order + * has been modified (using `modifyOrder`) and the price has increased. The extra payment + * can then be manually arranged by the administrator, and the details used to create a new + * Payment. + */ + addManualPaymentToOrder: AddManualPaymentToOrderResult; + /** Add members to a Zone */ + addMembersToZone: Zone; + addNoteToCustomer: Customer; + addNoteToOrder: Order; + /** Add an OptionGroup to a Product */ + addOptionGroupToProduct: Product; + /** Adjusts a draft OrderLine. If custom fields are defined on the OrderLine entity, a third argument 'customFields' of type `OrderLineCustomFieldsInput` will be available. */ + adjustDraftOrderLine: UpdateOrderItemsResult; + /** Applies the given coupon code to the draft Order */ + applyCouponCodeToDraftOrder: ApplyCouponCodeResult; + /** Assign assets to channel */ + assignAssetsToChannel: Array; + /** Assigns Collections to the specified Channel */ + assignCollectionsToChannel: Array; + /** Assigns Facets to the specified Channel */ + assignFacetsToChannel: Array; + /** Assigns ProductVariants to the specified Channel */ + assignProductVariantsToChannel: Array; + /** Assigns all ProductVariants of Product to the specified Channel */ + assignProductsToChannel: Array; + /** Assigns Promotions to the specified Channel */ + assignPromotionsToChannel: Array; + /** Assign a Role to an Administrator */ + assignRoleToAdministrator: Administrator; + /** Authenticates the user using a named authentication strategy */ + authenticate: AuthenticationResult; + cancelJob: Job; + cancelOrder: CancelOrderResult; + cancelPayment: CancelPaymentResult; + /** Create a new Administrator */ + createAdministrator: Administrator; + /** Create a new Asset */ + createAssets: Array; + /** Create a new Channel */ + createChannel: CreateChannelResult; + /** Create a new Collection */ + createCollection: Collection; + /** Create a new Country */ + createCountry: Country; + /** Create a new Customer. If a password is provided, a new User will also be created an linked to the Customer. */ + createCustomer: CreateCustomerResult; + /** Create a new Address and associate it with the Customer specified by customerId */ + createCustomerAddress: Address; + /** Create a new CustomerGroup */ + createCustomerGroup: CustomerGroup; + /** Creates a draft Order */ + createDraftOrder: Order; + /** Create a new Facet */ + createFacet: Facet; + /** Create one or more FacetValues */ + createFacetValues: Array; + /** Create existing PaymentMethod */ + createPaymentMethod: PaymentMethod; + /** Create a new Product */ + createProduct: Product; + /** Create a new ProductOption within a ProductOptionGroup */ + createProductOption: ProductOption; + /** Create a new ProductOptionGroup */ + createProductOptionGroup: ProductOptionGroup; + /** Create a set of ProductVariants based on the OptionGroups assigned to the given Product */ + createProductVariants: Array>; + createPromotion: CreatePromotionResult; + /** Create a new Role */ + createRole: Role; + /** Create a new Seller */ + createSeller: Seller; + /** Create a new ShippingMethod */ + createShippingMethod: ShippingMethod; + createStockLocation: StockLocation; + /** Create a new Tag */ + createTag: Tag; + /** Create a new TaxCategory */ + createTaxCategory: TaxCategory; + /** Create a new TaxRate */ + createTaxRate: TaxRate; + /** Create a new Zone */ + createZone: Zone; + /** Delete an Administrator */ + deleteAdministrator: DeletionResponse; + /** Delete an Asset */ + deleteAsset: DeletionResponse; + /** Delete multiple Assets */ + deleteAssets: DeletionResponse; + /** Delete a Channel */ + deleteChannel: DeletionResponse; + /** Delete a Collection and all of its descendants */ + deleteCollection: DeletionResponse; + /** Delete multiple Collections and all of their descendants */ + deleteCollections: Array; + /** Delete a Country */ + deleteCountry: DeletionResponse; + /** Delete a Customer */ + deleteCustomer: DeletionResponse; + /** Update an existing Address */ + deleteCustomerAddress: Success; + /** Delete a CustomerGroup */ + deleteCustomerGroup: DeletionResponse; + deleteCustomerNote: DeletionResponse; + /** Deletes a draft Order */ + deleteDraftOrder: DeletionResponse; + /** Delete an existing Facet */ + deleteFacet: DeletionResponse; + /** Delete one or more FacetValues */ + deleteFacetValues: Array; + /** Delete multiple existing Facets */ + deleteFacets: Array; + deleteOrderNote: DeletionResponse; + /** Delete a PaymentMethod */ + deletePaymentMethod: DeletionResponse; + /** Delete a Product */ + deleteProduct: DeletionResponse; + /** Delete a ProductOption */ + deleteProductOption: DeletionResponse; + /** Delete a ProductVariant */ + deleteProductVariant: DeletionResponse; + /** Delete multiple ProductVariants */ + deleteProductVariants: Array; + /** Delete multiple Products */ + deleteProducts: Array; + deletePromotion: DeletionResponse; + /** Delete an existing Role */ + deleteRole: DeletionResponse; + /** Delete a Seller */ + deleteSeller: DeletionResponse; + /** Delete a ShippingMethod */ + deleteShippingMethod: DeletionResponse; + deleteStockLocation: DeletionResponse; + /** Delete an existing Tag */ + deleteTag: DeletionResponse; + /** Deletes a TaxCategory */ + deleteTaxCategory: DeletionResponse; + /** Delete a TaxRate */ + deleteTaxRate: DeletionResponse; + /** Delete a Zone */ + deleteZone: DeletionResponse; + flushBufferedJobs: Success; + importProducts?: Maybe; + /** Authenticates the user using the native authentication strategy. This mutation is an alias for `authenticate({ native: { ... }})` */ + login: NativeAuthenticationResult; + logout: Success; + /** + * Allows an Order to be modified after it has been completed by the Customer. The Order must first + * be in the `Modifying` state. + */ + modifyOrder: ModifyOrderResult; + /** Move a Collection to a different parent or index */ + moveCollection: Collection; + refundOrder: RefundOrderResult; + reindex: Job; + /** Removes Collections from the specified Channel */ + removeCollectionsFromChannel: Array; + /** Removes the given coupon code from the draft Order */ + removeCouponCodeFromDraftOrder?: Maybe; + /** Remove Customers from a CustomerGroup */ + removeCustomersFromGroup: CustomerGroup; + /** Remove an OrderLine from the draft Order */ + removeDraftOrderLine: RemoveOrderItemsResult; + /** Removes Facets from the specified Channel */ + removeFacetsFromChannel: Array; + /** Remove members from a Zone */ + removeMembersFromZone: Zone; + /** Remove an OptionGroup from a Product */ + removeOptionGroupFromProduct: RemoveOptionGroupFromProductResult; + /** Removes ProductVariants from the specified Channel */ + removeProductVariantsFromChannel: Array; + /** Removes all ProductVariants of Product from the specified Channel */ + removeProductsFromChannel: Array; + /** Removes Promotions from the specified Channel */ + removePromotionsFromChannel: Array; + /** Remove all settled jobs in the given queues older than the given date. Returns the number of jobs deleted. */ + removeSettledJobs: Scalars['Int']; + runPendingSearchIndexUpdates: Success; + setCustomerForDraftOrder: SetCustomerForDraftOrderResult; + /** Sets the billing address for a draft Order */ + setDraftOrderBillingAddress: Order; + /** Allows any custom fields to be set for the active order */ + setDraftOrderCustomFields: Order; + /** Sets the shipping address for a draft Order */ + setDraftOrderShippingAddress: Order; + /** Sets the shipping method by id, which can be obtained with the `eligibleShippingMethodsForDraftOrder` query */ + setDraftOrderShippingMethod: SetOrderShippingMethodResult; + setOrderCustomFields?: Maybe; + settlePayment: SettlePaymentResult; + settleRefund: SettleRefundResult; + transitionFulfillmentToState: TransitionFulfillmentToStateResult; + transitionOrderToState?: Maybe; + transitionPaymentToState: TransitionPaymentToStateResult; + /** Update the active (currently logged-in) Administrator */ + updateActiveAdministrator: Administrator; + /** Update an existing Administrator */ + updateAdministrator: Administrator; + /** Update an existing Asset */ + updateAsset: Asset; + /** Update an existing Channel */ + updateChannel: UpdateChannelResult; + /** Update an existing Collection */ + updateCollection: Collection; + /** Update an existing Country */ + updateCountry: Country; + /** Update an existing Customer */ + updateCustomer: UpdateCustomerResult; + /** Update an existing Address */ + updateCustomerAddress: Address; + /** Update an existing CustomerGroup */ + updateCustomerGroup: CustomerGroup; + updateCustomerNote: HistoryEntry; + /** Update an existing Facet */ + updateFacet: Facet; + /** Update one or more FacetValues */ + updateFacetValues: Array; + updateGlobalSettings: UpdateGlobalSettingsResult; + updateOrderNote: HistoryEntry; + /** Update an existing PaymentMethod */ + updatePaymentMethod: PaymentMethod; + /** Update an existing Product */ + updateProduct: Product; + /** Create a new ProductOption within a ProductOptionGroup */ + updateProductOption: ProductOption; + /** Update an existing ProductOptionGroup */ + updateProductOptionGroup: ProductOptionGroup; + /** Update existing ProductVariants */ + updateProductVariants: Array>; + /** Update multiple existing Products */ + updateProducts: Array; + updatePromotion: UpdatePromotionResult; + /** Update an existing Role */ + updateRole: Role; + /** Update an existing Seller */ + updateSeller: Seller; + /** Update an existing ShippingMethod */ + updateShippingMethod: ShippingMethod; + updateStockLocation: StockLocation; + /** Update an existing Tag */ + updateTag: Tag; + /** Update an existing TaxCategory */ + updateTaxCategory: TaxCategory; + /** Update an existing TaxRate */ + updateTaxRate: TaxRate; + /** Update an existing Zone */ + updateZone: Zone; }; + export type MutationAddCustomersToGroupArgs = { - customerGroupId: Scalars['ID']; - customerIds: Array; + customerGroupId: Scalars['ID']; + customerIds: Array; }; + export type MutationAddFulfillmentToOrderArgs = { - input: FulfillOrderInput; + input: FulfillOrderInput; }; + export type MutationAddItemToDraftOrderArgs = { - input: AddItemToDraftOrderInput; - orderId: Scalars['ID']; + input: AddItemToDraftOrderInput; + orderId: Scalars['ID']; }; + export type MutationAddManualPaymentToOrderArgs = { - input: ManualPaymentInput; + input: ManualPaymentInput; }; + export type MutationAddMembersToZoneArgs = { - memberIds: Array; - zoneId: Scalars['ID']; + memberIds: Array; + zoneId: Scalars['ID']; }; + export type MutationAddNoteToCustomerArgs = { - input: AddNoteToCustomerInput; + input: AddNoteToCustomerInput; }; + export type MutationAddNoteToOrderArgs = { - input: AddNoteToOrderInput; + input: AddNoteToOrderInput; }; + export type MutationAddOptionGroupToProductArgs = { - optionGroupId: Scalars['ID']; - productId: Scalars['ID']; + optionGroupId: Scalars['ID']; + productId: Scalars['ID']; }; + export type MutationAdjustDraftOrderLineArgs = { - input: AdjustDraftOrderLineInput; - orderId: Scalars['ID']; + input: AdjustDraftOrderLineInput; + orderId: Scalars['ID']; }; + export type MutationApplyCouponCodeToDraftOrderArgs = { - couponCode: Scalars['String']; - orderId: Scalars['ID']; + couponCode: Scalars['String']; + orderId: Scalars['ID']; }; + export type MutationAssignAssetsToChannelArgs = { - input: AssignAssetsToChannelInput; + input: AssignAssetsToChannelInput; }; + export type MutationAssignCollectionsToChannelArgs = { - input: AssignCollectionsToChannelInput; + input: AssignCollectionsToChannelInput; }; + export type MutationAssignFacetsToChannelArgs = { - input: AssignFacetsToChannelInput; + input: AssignFacetsToChannelInput; }; + export type MutationAssignProductVariantsToChannelArgs = { - input: AssignProductVariantsToChannelInput; + input: AssignProductVariantsToChannelInput; }; + export type MutationAssignProductsToChannelArgs = { - input: AssignProductsToChannelInput; + input: AssignProductsToChannelInput; }; + export type MutationAssignPromotionsToChannelArgs = { - input: AssignPromotionsToChannelInput; + input: AssignPromotionsToChannelInput; }; + export type MutationAssignRoleToAdministratorArgs = { - administratorId: Scalars['ID']; - roleId: Scalars['ID']; + administratorId: Scalars['ID']; + roleId: Scalars['ID']; }; + export type MutationAuthenticateArgs = { - input: AuthenticationInput; - rememberMe?: InputMaybe; + input: AuthenticationInput; + rememberMe?: InputMaybe; }; + export type MutationCancelJobArgs = { - jobId: Scalars['ID']; + jobId: Scalars['ID']; }; + export type MutationCancelOrderArgs = { - input: CancelOrderInput; + input: CancelOrderInput; }; + export type MutationCancelPaymentArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type MutationCreateAdministratorArgs = { - input: CreateAdministratorInput; + input: CreateAdministratorInput; }; + export type MutationCreateAssetsArgs = { - input: Array; + input: Array; }; + export type MutationCreateChannelArgs = { - input: CreateChannelInput; + input: CreateChannelInput; }; + export type MutationCreateCollectionArgs = { - input: CreateCollectionInput; + input: CreateCollectionInput; }; + export type MutationCreateCountryArgs = { - input: CreateCountryInput; + input: CreateCountryInput; }; + export type MutationCreateCustomerArgs = { - input: CreateCustomerInput; - password?: InputMaybe; + input: CreateCustomerInput; + password?: InputMaybe; }; + export type MutationCreateCustomerAddressArgs = { - customerId: Scalars['ID']; - input: CreateAddressInput; + customerId: Scalars['ID']; + input: CreateAddressInput; }; + export type MutationCreateCustomerGroupArgs = { - input: CreateCustomerGroupInput; + input: CreateCustomerGroupInput; }; + export type MutationCreateFacetArgs = { - input: CreateFacetInput; + input: CreateFacetInput; }; + export type MutationCreateFacetValuesArgs = { - input: Array; + input: Array; }; + export type MutationCreatePaymentMethodArgs = { - input: CreatePaymentMethodInput; + input: CreatePaymentMethodInput; }; + export type MutationCreateProductArgs = { - input: CreateProductInput; + input: CreateProductInput; }; + export type MutationCreateProductOptionArgs = { - input: CreateProductOptionInput; + input: CreateProductOptionInput; }; + export type MutationCreateProductOptionGroupArgs = { - input: CreateProductOptionGroupInput; + input: CreateProductOptionGroupInput; }; + export type MutationCreateProductVariantsArgs = { - input: Array; + input: Array; }; + export type MutationCreatePromotionArgs = { - input: CreatePromotionInput; + input: CreatePromotionInput; }; + export type MutationCreateRoleArgs = { - input: CreateRoleInput; + input: CreateRoleInput; }; + export type MutationCreateSellerArgs = { - input: CreateSellerInput; + input: CreateSellerInput; }; + export type MutationCreateShippingMethodArgs = { - input: CreateShippingMethodInput; + input: CreateShippingMethodInput; }; + export type MutationCreateStockLocationArgs = { - input: CreateStockLocationInput; + input: CreateStockLocationInput; }; + export type MutationCreateTagArgs = { - input: CreateTagInput; + input: CreateTagInput; }; + export type MutationCreateTaxCategoryArgs = { - input: CreateTaxCategoryInput; + input: CreateTaxCategoryInput; }; + export type MutationCreateTaxRateArgs = { - input: CreateTaxRateInput; + input: CreateTaxRateInput; }; + export type MutationCreateZoneArgs = { - input: CreateZoneInput; + input: CreateZoneInput; }; + export type MutationDeleteAdministratorArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type MutationDeleteAssetArgs = { - input: DeleteAssetInput; + input: DeleteAssetInput; }; + export type MutationDeleteAssetsArgs = { - input: DeleteAssetsInput; + input: DeleteAssetsInput; }; + export type MutationDeleteChannelArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type MutationDeleteCollectionArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type MutationDeleteCollectionsArgs = { - ids: Array; + ids: Array; }; + export type MutationDeleteCountryArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type MutationDeleteCustomerArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type MutationDeleteCustomerAddressArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type MutationDeleteCustomerGroupArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type MutationDeleteCustomerNoteArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type MutationDeleteDraftOrderArgs = { - orderId: Scalars['ID']; + orderId: Scalars['ID']; }; + export type MutationDeleteFacetArgs = { - force?: InputMaybe; - id: Scalars['ID']; + force?: InputMaybe; + id: Scalars['ID']; }; + export type MutationDeleteFacetValuesArgs = { - force?: InputMaybe; - ids: Array; + force?: InputMaybe; + ids: Array; }; + export type MutationDeleteFacetsArgs = { - force?: InputMaybe; - ids: Array; + force?: InputMaybe; + ids: Array; }; + export type MutationDeleteOrderNoteArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type MutationDeletePaymentMethodArgs = { - force?: InputMaybe; - id: Scalars['ID']; + force?: InputMaybe; + id: Scalars['ID']; }; + export type MutationDeleteProductArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type MutationDeleteProductOptionArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type MutationDeleteProductVariantArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type MutationDeleteProductVariantsArgs = { - ids: Array; + ids: Array; }; + export type MutationDeleteProductsArgs = { - ids: Array; + ids: Array; }; + export type MutationDeletePromotionArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type MutationDeleteRoleArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type MutationDeleteSellerArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type MutationDeleteShippingMethodArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type MutationDeleteStockLocationArgs = { - input: DeleteStockLocationInput; + input: DeleteStockLocationInput; }; + export type MutationDeleteTagArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type MutationDeleteTaxCategoryArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type MutationDeleteTaxRateArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type MutationDeleteZoneArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type MutationFlushBufferedJobsArgs = { - bufferIds?: InputMaybe>; + bufferIds?: InputMaybe>; }; + export type MutationImportProductsArgs = { - csvFile: Scalars['Upload']; + csvFile: Scalars['Upload']; }; + export type MutationLoginArgs = { - password: Scalars['String']; - rememberMe?: InputMaybe; - username: Scalars['String']; + password: Scalars['String']; + rememberMe?: InputMaybe; + username: Scalars['String']; }; + export type MutationModifyOrderArgs = { - input: ModifyOrderInput; + input: ModifyOrderInput; }; + export type MutationMoveCollectionArgs = { - input: MoveCollectionInput; + input: MoveCollectionInput; }; + export type MutationRefundOrderArgs = { - input: RefundOrderInput; + input: RefundOrderInput; }; + export type MutationRemoveCollectionsFromChannelArgs = { - input: RemoveCollectionsFromChannelInput; + input: RemoveCollectionsFromChannelInput; }; + export type MutationRemoveCouponCodeFromDraftOrderArgs = { - couponCode: Scalars['String']; - orderId: Scalars['ID']; + couponCode: Scalars['String']; + orderId: Scalars['ID']; }; + export type MutationRemoveCustomersFromGroupArgs = { - customerGroupId: Scalars['ID']; - customerIds: Array; + customerGroupId: Scalars['ID']; + customerIds: Array; }; + export type MutationRemoveDraftOrderLineArgs = { - orderId: Scalars['ID']; - orderLineId: Scalars['ID']; + orderId: Scalars['ID']; + orderLineId: Scalars['ID']; }; + export type MutationRemoveFacetsFromChannelArgs = { - input: RemoveFacetsFromChannelInput; + input: RemoveFacetsFromChannelInput; }; + export type MutationRemoveMembersFromZoneArgs = { - memberIds: Array; - zoneId: Scalars['ID']; + memberIds: Array; + zoneId: Scalars['ID']; }; + export type MutationRemoveOptionGroupFromProductArgs = { - optionGroupId: Scalars['ID']; - productId: Scalars['ID']; + optionGroupId: Scalars['ID']; + productId: Scalars['ID']; }; + export type MutationRemoveProductVariantsFromChannelArgs = { - input: RemoveProductVariantsFromChannelInput; + input: RemoveProductVariantsFromChannelInput; }; + export type MutationRemoveProductsFromChannelArgs = { - input: RemoveProductsFromChannelInput; + input: RemoveProductsFromChannelInput; }; + export type MutationRemovePromotionsFromChannelArgs = { - input: RemovePromotionsFromChannelInput; + input: RemovePromotionsFromChannelInput; }; + export type MutationRemoveSettledJobsArgs = { - olderThan?: InputMaybe; - queueNames?: InputMaybe>; + olderThan?: InputMaybe; + queueNames?: InputMaybe>; }; + export type MutationSetCustomerForDraftOrderArgs = { - customerId?: InputMaybe; - input?: InputMaybe; - orderId: Scalars['ID']; + customerId?: InputMaybe; + input?: InputMaybe; + orderId: Scalars['ID']; }; + export type MutationSetDraftOrderBillingAddressArgs = { - input: CreateAddressInput; - orderId: Scalars['ID']; + input: CreateAddressInput; + orderId: Scalars['ID']; }; + export type MutationSetDraftOrderCustomFieldsArgs = { - input: UpdateOrderInput; - orderId: Scalars['ID']; + input: UpdateOrderInput; + orderId: Scalars['ID']; }; + export type MutationSetDraftOrderShippingAddressArgs = { - input: CreateAddressInput; - orderId: Scalars['ID']; + input: CreateAddressInput; + orderId: Scalars['ID']; }; + export type MutationSetDraftOrderShippingMethodArgs = { - orderId: Scalars['ID']; - shippingMethodId: Scalars['ID']; + orderId: Scalars['ID']; + shippingMethodId: Scalars['ID']; }; + export type MutationSetOrderCustomFieldsArgs = { - input: UpdateOrderInput; + input: UpdateOrderInput; }; + export type MutationSettlePaymentArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type MutationSettleRefundArgs = { - input: SettleRefundInput; + input: SettleRefundInput; }; + export type MutationTransitionFulfillmentToStateArgs = { - id: Scalars['ID']; - state: Scalars['String']; + id: Scalars['ID']; + state: Scalars['String']; }; + export type MutationTransitionOrderToStateArgs = { - id: Scalars['ID']; - state: Scalars['String']; + id: Scalars['ID']; + state: Scalars['String']; }; + export type MutationTransitionPaymentToStateArgs = { - id: Scalars['ID']; - state: Scalars['String']; + id: Scalars['ID']; + state: Scalars['String']; }; + export type MutationUpdateActiveAdministratorArgs = { - input: UpdateActiveAdministratorInput; + input: UpdateActiveAdministratorInput; }; + export type MutationUpdateAdministratorArgs = { - input: UpdateAdministratorInput; + input: UpdateAdministratorInput; }; + export type MutationUpdateAssetArgs = { - input: UpdateAssetInput; + input: UpdateAssetInput; }; + export type MutationUpdateChannelArgs = { - input: UpdateChannelInput; + input: UpdateChannelInput; }; + export type MutationUpdateCollectionArgs = { - input: UpdateCollectionInput; + input: UpdateCollectionInput; }; + export type MutationUpdateCountryArgs = { - input: UpdateCountryInput; + input: UpdateCountryInput; }; + export type MutationUpdateCustomerArgs = { - input: UpdateCustomerInput; + input: UpdateCustomerInput; }; + export type MutationUpdateCustomerAddressArgs = { - input: UpdateAddressInput; + input: UpdateAddressInput; }; + export type MutationUpdateCustomerGroupArgs = { - input: UpdateCustomerGroupInput; + input: UpdateCustomerGroupInput; }; + export type MutationUpdateCustomerNoteArgs = { - input: UpdateCustomerNoteInput; + input: UpdateCustomerNoteInput; }; + export type MutationUpdateFacetArgs = { - input: UpdateFacetInput; + input: UpdateFacetInput; }; + export type MutationUpdateFacetValuesArgs = { - input: Array; + input: Array; }; + export type MutationUpdateGlobalSettingsArgs = { - input: UpdateGlobalSettingsInput; + input: UpdateGlobalSettingsInput; }; + export type MutationUpdateOrderNoteArgs = { - input: UpdateOrderNoteInput; + input: UpdateOrderNoteInput; }; + export type MutationUpdatePaymentMethodArgs = { - input: UpdatePaymentMethodInput; + input: UpdatePaymentMethodInput; }; + export type MutationUpdateProductArgs = { - input: UpdateProductInput; + input: UpdateProductInput; }; + export type MutationUpdateProductOptionArgs = { - input: UpdateProductOptionInput; + input: UpdateProductOptionInput; }; + export type MutationUpdateProductOptionGroupArgs = { - input: UpdateProductOptionGroupInput; + input: UpdateProductOptionGroupInput; }; + export type MutationUpdateProductVariantsArgs = { - input: Array; + input: Array; }; + export type MutationUpdateProductsArgs = { - input: Array; + input: Array; }; + export type MutationUpdatePromotionArgs = { - input: UpdatePromotionInput; + input: UpdatePromotionInput; }; + export type MutationUpdateRoleArgs = { - input: UpdateRoleInput; + input: UpdateRoleInput; }; + export type MutationUpdateSellerArgs = { - input: UpdateSellerInput; + input: UpdateSellerInput; }; + export type MutationUpdateShippingMethodArgs = { - input: UpdateShippingMethodInput; + input: UpdateShippingMethodInput; }; + export type MutationUpdateStockLocationArgs = { - input: UpdateStockLocationInput; + input: UpdateStockLocationInput; }; + export type MutationUpdateTagArgs = { - input: UpdateTagInput; + input: UpdateTagInput; }; + export type MutationUpdateTaxCategoryArgs = { - input: UpdateTaxCategoryInput; + input: UpdateTaxCategoryInput; }; + export type MutationUpdateTaxRateArgs = { - input: UpdateTaxRateInput; + input: UpdateTaxRateInput; }; + export type MutationUpdateZoneArgs = { - input: UpdateZoneInput; + input: UpdateZoneInput; }; export type NativeAuthInput = { - password: Scalars['String']; - username: Scalars['String']; + password: Scalars['String']; + username: Scalars['String']; }; /** Returned when attempting an operation that relies on the NativeAuthStrategy, if that strategy is not configured. */ export type NativeAuthStrategyError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; }; export type NativeAuthenticationResult = CurrentUser | InvalidCredentialsError | NativeAuthStrategyError; /** Returned when attempting to set a negative OrderLine quantity. */ export type NegativeQuantityError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; }; /** @@ -3219,342 +3318,343 @@ export type NegativeQuantityError = ErrorResult & { * current session. */ export type NoActiveOrderError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; }; /** Returned when a call to modifyOrder fails to specify any changes */ export type NoChangesSpecifiedError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; }; export type Node = { - id: Scalars['ID']; + id: Scalars['ID']; }; /** Returned if an attempting to refund an Order but neither items nor shipping refund was specified */ export type NothingToRefundError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; }; /** Operators for filtering on a list of Number fields */ export type NumberListOperators = { - inList: Scalars['Float']; + inList: Scalars['Float']; }; /** Operators for filtering on a Int or Float field */ export type NumberOperators = { - between?: InputMaybe; - eq?: InputMaybe; - gt?: InputMaybe; - gte?: InputMaybe; - isNull?: InputMaybe; - lt?: InputMaybe; - lte?: InputMaybe; + between?: InputMaybe; + eq?: InputMaybe; + gt?: InputMaybe; + gte?: InputMaybe; + isNull?: InputMaybe; + lt?: InputMaybe; + lte?: InputMaybe; }; export type NumberRange = { - end: Scalars['Float']; - start: Scalars['Float']; + end: Scalars['Float']; + start: Scalars['Float']; }; export type Order = Node & { - /** An order is active as long as the payment process has not been completed */ - active: Scalars['Boolean']; - aggregateOrder?: Maybe; - aggregateOrderId?: Maybe; - billingAddress?: Maybe; - channels: Array; - /** A unique code for the Order */ - code: Scalars['String']; - /** An array of all coupon codes applied to the Order */ - couponCodes: Array; - createdAt: Scalars['DateTime']; - currencyCode: CurrencyCode; - customFields?: Maybe; - customer?: Maybe; - discounts: Array; - fulfillments?: Maybe>; - history: HistoryEntryList; - id: Scalars['ID']; - lines: Array; - modifications: Array; - nextStates: Array; - /** - * The date & time that the Order was placed, i.e. the Customer - * completed the checkout and the Order is no longer "active" - */ - orderPlacedAt?: Maybe; - payments?: Maybe>; - /** Promotions applied to the order. Only gets populated after the payment process has completed. */ - promotions: Array; - sellerOrders?: Maybe>; - shipping: Scalars['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; - fulfillmentLines?: Maybe>; - id: Scalars['ID']; - /** 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; - /** The quantity at the time the Order was placed */ - orderPlacedQuantity: Scalars['Int']; - productVariant: ProductVariant; - /** - * The actual line price, taking into account both item discounts _and_ prorated (proportionally-distributed) - * Order-level discounts. This value is the true economic value of the OrderLine, and is used in tax - * and refund calculations. - */ - proratedLinePrice: Scalars['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; + fulfillmentLines?: Maybe>; + id: Scalars['ID']; + /** 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; + /** The quantity at the time the Order was placed */ + orderPlacedQuantity: Scalars['Int']; + productVariant: ProductVariant; + /** + * The actual line price, taking into account both item discounts _and_ prorated (proportionally-distributed) + * Order-level discounts. This value is the true economic value of the OrderLine, and is used in tax + * and refund calculations. + */ + proratedLinePrice: Scalars['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']; - lines: Array; - note: Scalars['String']; - payment?: Maybe; - priceChange: Scalars['Int']; - refund?: Maybe; - surcharges?: Maybe>; - updatedAt: Scalars['DateTime']; + createdAt: Scalars['DateTime']; + id: Scalars['ID']; + isSettled: Scalars['Boolean']; + lines: Array; + note: Scalars['String']; + payment?: Maybe; + priceChange: Scalars['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']; }; export type OrderModificationLine = { - modification: OrderModification; - modificationId: Scalars['ID']; - orderLine: OrderLine; - orderLineId: Scalars['ID']; - quantity: Scalars['Int']; + modification: OrderModification; + modificationId: Scalars['ID']; + orderLine: OrderLine; + orderLineId: Scalars['ID']; + quantity: Scalars['Int']; }; /** Returned when attempting to modify the contents of an Order that is not in the `Modifying` state. */ export type OrderModificationStateError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; }; export type OrderProcessState = { - name: Scalars['String']; - to: Array; + name: Scalars['String']; + to: Array; }; export type OrderSortParameter = { - aggregateOrderId?: InputMaybe; - code?: InputMaybe; - createdAt?: InputMaybe; - customerLastName?: InputMaybe; - id?: InputMaybe; - orderPlacedAt?: InputMaybe; - shipping?: InputMaybe; - shippingWithTax?: InputMaybe; - state?: InputMaybe; - subTotal?: InputMaybe; - subTotalWithTax?: InputMaybe; - total?: InputMaybe; - totalQuantity?: InputMaybe; - totalWithTax?: InputMaybe; - transactionId?: InputMaybe; - updatedAt?: InputMaybe; + aggregateOrderId?: InputMaybe; + code?: InputMaybe; + createdAt?: InputMaybe; + customerLastName?: InputMaybe; + id?: InputMaybe; + orderPlacedAt?: InputMaybe; + shipping?: InputMaybe; + shippingWithTax?: InputMaybe; + state?: InputMaybe; + subTotal?: InputMaybe; + subTotalWithTax?: InputMaybe; + total?: InputMaybe; + totalQuantity?: InputMaybe; + totalWithTax?: InputMaybe; + transactionId?: InputMaybe; + updatedAt?: InputMaybe; }; /** Returned if there is an error in transitioning the Order state */ export type OrderStateTransitionError = ErrorResult & { - errorCode: ErrorCode; - fromState: Scalars['String']; - message: Scalars['String']; - toState: Scalars['String']; - transitionError: Scalars['String']; + errorCode: ErrorCode; + fromState: Scalars['String']; + message: Scalars['String']; + toState: Scalars['String']; + transitionError: Scalars['String']; }; /** @@ -3562,80 +3662,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; }; /** @@ -3643,42 +3743,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']; }; /** @@ -3714,855 +3814,899 @@ 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']; - /** @deprecated use stockLevels */ - stockAllocated: Scalars['Int']; - stockLevel: Scalars['String']; - stockLevels: Array; - stockMovements: StockMovementList; - /** @deprecated use stockLevels */ - stockOnHand: Scalars['Int']; - taxCategory: TaxCategory; - taxRateApplied: TaxRate; - trackInventory: GlobalFlag; - translations: Array; - updatedAt: Scalars['DateTime']; - useGlobalOutOfStockThreshold: Scalars['Boolean']; + assets: Array; + channels: Array; + createdAt: Scalars['DateTime']; + currencyCode: CurrencyCode; + customFields?: Maybe; + enabled: Scalars['Boolean']; + facetValues: Array; + featuredAsset?: Maybe; + id: Scalars['ID']; + languageCode: LanguageCode; + name: Scalars['String']; + options: Array; + outOfStockThreshold: Scalars['Int']; + price: Scalars['Int']; + priceWithTax: Scalars['Int']; + product: Product; + productId: Scalars['ID']; + sku: Scalars['String']; + /** @deprecated use stockLevels */ + stockAllocated: Scalars['Int']; + stockLevel: Scalars['String']; + stockLevels: Array; + stockMovements: StockMovementList; + /** @deprecated use stockLevels */ + stockOnHand: Scalars['Int']; + taxCategory: TaxCategory; + taxRateApplied: TaxRate; + trackInventory: GlobalFlag; + translations: Array; + updatedAt: Scalars['DateTime']; + useGlobalOutOfStockThreshold: Scalars['Boolean']; }; + export type ProductVariantStockMovementsArgs = { - options?: InputMaybe; + options?: InputMaybe; }; export type ProductVariantFilterParameter = { - createdAt?: InputMaybe; - currencyCode?: InputMaybe; - enabled?: InputMaybe; - id?: InputMaybe; - languageCode?: InputMaybe; - name?: InputMaybe; - outOfStockThreshold?: InputMaybe; - price?: InputMaybe; - priceWithTax?: InputMaybe; - productId?: InputMaybe; - sku?: InputMaybe; - stockAllocated?: InputMaybe; - stockLevel?: InputMaybe; - stockOnHand?: InputMaybe; - trackInventory?: InputMaybe; - updatedAt?: InputMaybe; - useGlobalOutOfStockThreshold?: InputMaybe; + createdAt?: InputMaybe; + currencyCode?: InputMaybe; + enabled?: InputMaybe; + id?: InputMaybe; + languageCode?: InputMaybe; + name?: InputMaybe; + outOfStockThreshold?: InputMaybe; + price?: InputMaybe; + priceWithTax?: InputMaybe; + productId?: InputMaybe; + sku?: InputMaybe; + stockAllocated?: InputMaybe; + stockLevel?: InputMaybe; + stockOnHand?: InputMaybe; + trackInventory?: InputMaybe; + updatedAt?: InputMaybe; + useGlobalOutOfStockThreshold?: InputMaybe; }; export type ProductVariantList = PaginatedList & { - items: Array; - totalItems: Scalars['Int']; + items: Array; + totalItems: Scalars['Int']; }; export type ProductVariantListOptions = { - /** Allows the results to be filtered */ - filter?: InputMaybe; - /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ - filterOperator?: InputMaybe; - /** Skips the first n results, for use in pagination */ - skip?: InputMaybe; - /** Specifies which properties to sort the results by */ - sort?: InputMaybe; - /** Takes n results, for use in pagination */ - take?: InputMaybe; + /** Allows the results to be filtered */ + filter?: InputMaybe; + /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ + filterOperator?: InputMaybe; + /** Skips the first n results, for use in pagination */ + skip?: InputMaybe; + /** Specifies which properties to sort the results by */ + sort?: InputMaybe; + /** Takes n results, for use in pagination */ + take?: InputMaybe; }; export type ProductVariantSortParameter = { - createdAt?: InputMaybe; - id?: InputMaybe; - name?: InputMaybe; - outOfStockThreshold?: InputMaybe; - price?: InputMaybe; - priceWithTax?: InputMaybe; - productId?: InputMaybe; - sku?: InputMaybe; - stockAllocated?: InputMaybe; - stockLevel?: InputMaybe; - stockOnHand?: InputMaybe; - updatedAt?: InputMaybe; + createdAt?: InputMaybe; + id?: InputMaybe; + name?: InputMaybe; + outOfStockThreshold?: InputMaybe; + price?: InputMaybe; + priceWithTax?: InputMaybe; + productId?: InputMaybe; + sku?: InputMaybe; + stockAllocated?: InputMaybe; + stockLevel?: InputMaybe; + stockOnHand?: InputMaybe; + updatedAt?: InputMaybe; }; export type ProductVariantTranslation = { - createdAt: Scalars['DateTime']; - id: Scalars['ID']; - languageCode: LanguageCode; - name: Scalars['String']; - updatedAt: Scalars['DateTime']; + createdAt: Scalars['DateTime']; + id: Scalars['ID']; + languageCode: LanguageCode; + name: Scalars['String']; + updatedAt: Scalars['DateTime']; }; export type ProductVariantTranslationInput = { - customFields?: InputMaybe; - id?: InputMaybe; - languageCode: LanguageCode; - name?: InputMaybe; + customFields?: InputMaybe; + id?: InputMaybe; + languageCode: LanguageCode; + name?: InputMaybe; }; export type Promotion = Node & { - actions: Array; - conditions: Array; - couponCode?: Maybe; - createdAt: Scalars['DateTime']; - customFields?: Maybe; - 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; - stockLocation?: Maybe; - stockLocations: StockLocationList; - tag: Tag; - tags: TagList; - taxCategories: Array; - taxCategory?: Maybe; - taxRate?: Maybe; - taxRates: TaxRateList; - testEligibleShippingMethods: Array; - testShippingMethod: TestShippingMethodResult; - zone?: Maybe; - zones: Array; + activeAdministrator?: Maybe; + activeChannel: Channel; + administrator?: Maybe; + administrators: AdministratorList; + /** Get a single Asset by id */ + asset?: Maybe; + /** Get a list of Assets */ + assets: AssetList; + channel?: Maybe; + channels: Array; + /** Get a Collection either by id or slug. If neither id nor slug is specified, an error will result. */ + collection?: Maybe; + collectionFilters: Array; + collections: CollectionList; + countries: CountryList; + country?: Maybe; + customer?: Maybe; + customerGroup?: Maybe; + customerGroups: CustomerGroupList; + customers: CustomerList; + /** Returns a list of eligible shipping methods for the draft Order */ + eligibleShippingMethodsForDraftOrder: Array; + facet?: Maybe; + facetValues: FacetValueList; + facets: FacetList; + fulfillmentHandlers: Array; + globalSettings: GlobalSettings; + job?: Maybe; + jobBufferSize: Array; + jobQueues: Array; + jobs: JobList; + jobsById: Array; + me?: Maybe; + order?: Maybe; + orders: OrderList; + paymentMethod?: Maybe; + paymentMethodEligibilityCheckers: Array; + paymentMethodHandlers: Array; + paymentMethods: PaymentMethodList; + pendingSearchIndexUpdates: Scalars['Int']; + /** Used for real-time previews of the contents of a Collection */ + previewCollectionVariants: ProductVariantList; + /** Get a Product either by id or slug. If neither id nor slug is specified, an error will result. */ + product?: Maybe; + productOptionGroup?: Maybe; + productOptionGroups: Array; + /** Get a ProductVariant by id */ + productVariant?: Maybe; + /** List ProductVariants either all or for the specific product. */ + productVariants: ProductVariantList; + /** List Products */ + products: ProductList; + promotion?: Maybe; + promotionActions: Array; + promotionConditions: Array; + promotions: PromotionList; + role?: Maybe; + roles: RoleList; + search: SearchResponse; + seller?: Maybe; + sellers: SellerList; + shippingCalculators: Array; + shippingEligibilityCheckers: Array; + shippingMethod?: Maybe; + shippingMethods: ShippingMethodList; + stockLocation?: Maybe; + stockLocations: StockLocationList; + tag: Tag; + tags: TagList; + taxCategories: Array; + taxCategory?: Maybe; + taxRate?: Maybe; + taxRates: TaxRateList; + testEligibleShippingMethods: Array; + testShippingMethod: TestShippingMethodResult; + zone?: Maybe; + zones: Array; }; + export type QueryAdministratorArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type QueryAdministratorsArgs = { - options?: InputMaybe; + options?: InputMaybe; }; + export type QueryAssetArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type QueryAssetsArgs = { - options?: InputMaybe; + options?: InputMaybe; }; + export type QueryChannelArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type QueryCollectionArgs = { - id?: InputMaybe; - slug?: InputMaybe; + id?: InputMaybe; + slug?: InputMaybe; }; + export type QueryCollectionsArgs = { - options?: InputMaybe; + options?: InputMaybe; }; + export type QueryCountriesArgs = { - options?: InputMaybe; + options?: InputMaybe; }; + export type QueryCountryArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type QueryCustomerArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type QueryCustomerGroupArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type QueryCustomerGroupsArgs = { - options?: InputMaybe; + options?: InputMaybe; }; + export type QueryCustomersArgs = { - options?: InputMaybe; + options?: InputMaybe; }; + export type QueryEligibleShippingMethodsForDraftOrderArgs = { - orderId: Scalars['ID']; + orderId: Scalars['ID']; }; + export type QueryFacetArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type QueryFacetValuesArgs = { - options?: InputMaybe; + options?: InputMaybe; }; + export type QueryFacetsArgs = { - options?: InputMaybe; + options?: InputMaybe; }; + export type QueryJobArgs = { - jobId: Scalars['ID']; + jobId: Scalars['ID']; }; + export type QueryJobBufferSizeArgs = { - bufferIds?: InputMaybe>; + bufferIds?: InputMaybe>; }; + export type QueryJobsArgs = { - options?: InputMaybe; + options?: InputMaybe; }; + export type QueryJobsByIdArgs = { - jobIds: Array; + jobIds: Array; }; + export type QueryOrderArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type QueryOrdersArgs = { - options?: InputMaybe; + options?: InputMaybe; }; + export type QueryPaymentMethodArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type QueryPaymentMethodsArgs = { - options?: InputMaybe; + options?: InputMaybe; }; + export type QueryPreviewCollectionVariantsArgs = { - input: PreviewCollectionVariantsInput; - options?: InputMaybe; + input: PreviewCollectionVariantsInput; + options?: InputMaybe; }; + export type QueryProductArgs = { - id?: InputMaybe; - slug?: InputMaybe; + id?: InputMaybe; + slug?: InputMaybe; }; + export type QueryProductOptionGroupArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type QueryProductOptionGroupsArgs = { - filterTerm?: InputMaybe; + filterTerm?: InputMaybe; }; + export type QueryProductVariantArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type QueryProductVariantsArgs = { - options?: InputMaybe; - productId?: InputMaybe; + options?: InputMaybe; + productId?: InputMaybe; }; + export type QueryProductsArgs = { - options?: InputMaybe; + options?: InputMaybe; }; + export type QueryPromotionArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type QueryPromotionsArgs = { - options?: InputMaybe; + options?: InputMaybe; }; + export type QueryRoleArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type QueryRolesArgs = { - options?: InputMaybe; + options?: InputMaybe; }; + export type QuerySearchArgs = { - input: SearchInput; + input: SearchInput; }; + export type QuerySellerArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type QuerySellersArgs = { - options?: InputMaybe; + options?: InputMaybe; }; + export type QueryShippingMethodArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type QueryShippingMethodsArgs = { - options?: InputMaybe; + options?: InputMaybe; }; + export type QueryStockLocationArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type QueryStockLocationsArgs = { - options?: InputMaybe; + options?: InputMaybe; }; + export type QueryTagArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type QueryTagsArgs = { - options?: InputMaybe; + options?: InputMaybe; }; + export type QueryTaxCategoryArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type QueryTaxRateArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type QueryTaxRatesArgs = { - options?: InputMaybe; + options?: InputMaybe; }; + export type QueryTestEligibleShippingMethodsArgs = { - input: TestEligibleShippingMethodsInput; + input: TestEligibleShippingMethodsInput; }; + export type QueryTestShippingMethodArgs = { - input: TestShippingMethodInput; + input: TestShippingMethodInput; }; + export type QueryZoneArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; export type Refund = Node & { - adjustment: Scalars['Int']; - createdAt: Scalars['DateTime']; - id: Scalars['ID']; - items: Scalars['Int']; - lines: Array; - metadata?: Maybe; - method?: Maybe; - 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']; + lines: Array; + metadata?: Maybe; + method?: Maybe; + paymentId: Scalars['ID']; + reason?: Maybe; + shipping: Scalars['Int']; + state: Scalars['String']; + total: Scalars['Int']; + transactionId?: Maybe; + updatedAt: Scalars['DateTime']; }; export type RefundLine = { - orderLine: OrderLine; - orderLineId: Scalars['ID']; - quantity: Scalars['Int']; - refund: Refund; - refundId: Scalars['ID']; + orderLine: OrderLine; + orderLineId: Scalars['ID']; + quantity: Scalars['Int']; + refund: Refund; + refundId: Scalars['ID']; }; export type RefundOrderInput = { - adjustment: Scalars['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']; }; /** @@ -4570,55 +4714,54 @@ 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; @@ -4626,627 +4769,616 @@ 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 SellerFilterParameter = { - createdAt?: InputMaybe; - id?: InputMaybe; - name?: InputMaybe; - updatedAt?: InputMaybe; + createdAt?: InputMaybe; + id?: InputMaybe; + name?: InputMaybe; + updatedAt?: InputMaybe; }; export type SellerList = PaginatedList & { - items: Array; - totalItems: Scalars['Int']; + items: Array; + totalItems: Scalars['Int']; }; export type SellerListOptions = { - /** Allows the results to be filtered */ - filter?: InputMaybe; - /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ - filterOperator?: InputMaybe; - /** Skips the first n results, for use in pagination */ - skip?: InputMaybe; - /** Specifies which properties to sort the results by */ - sort?: InputMaybe; - /** Takes n results, for use in pagination */ - take?: InputMaybe; + /** Allows the results to be filtered */ + filter?: InputMaybe; + /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ + filterOperator?: InputMaybe; + /** Skips the first n results, for use in pagination */ + skip?: InputMaybe; + /** Specifies which properties to sort the results by */ + sort?: InputMaybe; + /** Takes n results, for use in pagination */ + take?: InputMaybe; }; export type SellerSortParameter = { - createdAt?: InputMaybe; - id?: InputMaybe; - name?: InputMaybe; - updatedAt?: InputMaybe; + createdAt?: InputMaybe; + id?: InputMaybe; + name?: InputMaybe; + updatedAt?: InputMaybe; }; export type ServerConfig = { - customFieldConfig: CustomFields; - orderProcess: Array; - permissions: Array; - permittedAssetTypes: Array; + customFieldConfig: CustomFields; + orderProcess: Array; + permissions: Array; + permittedAssetTypes: Array; }; export type SetCustomerForDraftOrderResult = EmailAddressConflictError | Order; -export type SetOrderShippingMethodResult = - | IneligibleShippingMethodError - | NoActiveOrderError - | Order - | OrderModificationError; +export type SetOrderShippingMethodResult = IneligibleShippingMethodError | NoActiveOrderError | Order | OrderModificationError; /** Returned if the Payment settlement fails */ export type SettlePaymentError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; - paymentErrorMessage: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; + paymentErrorMessage: Scalars['String']; }; -export type SettlePaymentResult = - | OrderStateTransitionError - | Payment - | PaymentStateTransitionError - | SettlePaymentError; +export type SettlePaymentResult = OrderStateTransitionError | Payment | PaymentStateTransitionError | SettlePaymentError; export type SettleRefundInput = { - id: Scalars['ID']; - transactionId: Scalars['String']; + id: Scalars['ID']; + transactionId: Scalars['String']; }; export type SettleRefundResult = Refund | RefundStateTransitionError; export type ShippingLine = { - discountedPrice: Scalars['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 StockLevel = Node & { - createdAt: Scalars['DateTime']; - id: Scalars['ID']; - stockAllocated: Scalars['Int']; - stockLocation: StockLocation; - stockLocationId: Scalars['ID']; - stockOnHand: Scalars['Int']; - updatedAt: Scalars['DateTime']; + createdAt: Scalars['DateTime']; + id: Scalars['ID']; + stockAllocated: Scalars['Int']; + stockLocation: StockLocation; + stockLocationId: Scalars['ID']; + stockOnHand: Scalars['Int']; + updatedAt: Scalars['DateTime']; }; export type StockLevelInput = { - stockLocationId: Scalars['ID']; - stockOnHand: Scalars['Int']; + stockLocationId: Scalars['ID']; + stockOnHand: Scalars['Int']; }; export type StockLocation = Node & { - createdAt: Scalars['DateTime']; - customFields?: Maybe; - description: Scalars['String']; - id: Scalars['ID']; - name: Scalars['String']; - updatedAt: Scalars['DateTime']; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + description: Scalars['String']; + id: Scalars['ID']; + name: Scalars['String']; + updatedAt: Scalars['DateTime']; }; export type StockLocationFilterParameter = { - createdAt?: InputMaybe; - description?: InputMaybe; - id?: InputMaybe; - name?: InputMaybe; - updatedAt?: InputMaybe; + createdAt?: InputMaybe; + description?: InputMaybe; + id?: InputMaybe; + name?: InputMaybe; + updatedAt?: InputMaybe; }; export type StockLocationList = PaginatedList & { - items: Array; - totalItems: Scalars['Int']; + items: Array; + totalItems: Scalars['Int']; }; export type StockLocationListOptions = { - /** Allows the results to be filtered */ - filter?: InputMaybe; - /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ - filterOperator?: InputMaybe; - /** Skips the first n results, for use in pagination */ - skip?: InputMaybe; - /** Specifies which properties to sort the results by */ - sort?: InputMaybe; - /** Takes n results, for use in pagination */ - take?: InputMaybe; + /** Allows the results to be filtered */ + filter?: InputMaybe; + /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ + filterOperator?: InputMaybe; + /** Skips the first n results, for use in pagination */ + skip?: InputMaybe; + /** Specifies which properties to sort the results by */ + sort?: InputMaybe; + /** Takes n results, for use in pagination */ + take?: InputMaybe; }; export type StockLocationSortParameter = { - createdAt?: InputMaybe; - description?: InputMaybe; - id?: InputMaybe; - name?: InputMaybe; - updatedAt?: InputMaybe; + createdAt?: InputMaybe; + description?: InputMaybe; + id?: InputMaybe; + name?: InputMaybe; + updatedAt?: InputMaybe; }; export type StockMovement = { - createdAt: Scalars['DateTime']; - id: Scalars['ID']; - productVariant: ProductVariant; - quantity: Scalars['Int']; - type: StockMovementType; - updatedAt: Scalars['DateTime']; + createdAt: Scalars['DateTime']; + id: Scalars['ID']; + productVariant: ProductVariant; + quantity: Scalars['Int']; + type: StockMovementType; + updatedAt: Scalars['DateTime']; }; export type StockMovementItem = Allocation | Cancellation | Release | Return | Sale | StockAdjustment; export type StockMovementList = { - items: Array; - totalItems: Scalars['Int']; + items: Array; + totalItems: Scalars['Int']; }; export type StockMovementListOptions = { - skip?: InputMaybe; - take?: InputMaybe; - type?: InputMaybe; + skip?: InputMaybe; + take?: InputMaybe; + type?: InputMaybe; }; export enum StockMovementType { - ADJUSTMENT = 'ADJUSTMENT', - ALLOCATION = 'ALLOCATION', - CANCELLATION = 'CANCELLATION', - RELEASE = 'RELEASE', - RETURN = 'RETURN', - SALE = 'SALE', + ADJUSTMENT = 'ADJUSTMENT', + ALLOCATION = 'ALLOCATION', + CANCELLATION = 'CANCELLATION', + RELEASE = 'RELEASE', + RETURN = 'RETURN', + SALE = 'SALE' } export type StringCustomFieldConfig = CustomField & { - description?: Maybe>; - internal?: Maybe; - label?: Maybe>; - length?: Maybe; - list: Scalars['Boolean']; - name: Scalars['String']; - nullable?: Maybe; - options?: Maybe>; - pattern?: Maybe; - readonly?: Maybe; - type: Scalars['String']; - ui?: Maybe; + description?: Maybe>; + internal?: Maybe; + label?: Maybe>; + length?: Maybe; + list: Scalars['Boolean']; + name: Scalars['String']; + nullable?: Maybe; + options?: Maybe>; + pattern?: Maybe; + readonly?: Maybe; + type: Scalars['String']; + ui?: Maybe; }; export type StringFieldOption = { - label?: Maybe>; - value: Scalars['String']; + label?: Maybe>; + value: Scalars['String']; }; /** Operators for filtering on a list of String fields */ export type StringListOperators = { - inList: Scalars['String']; + inList: Scalars['String']; }; /** Operators for filtering on a String field */ export type StringOperators = { - contains?: InputMaybe; - eq?: InputMaybe; - in?: InputMaybe>; - isNull?: InputMaybe; - notContains?: InputMaybe; - notEq?: InputMaybe; - notIn?: InputMaybe>; - regex?: InputMaybe; + contains?: InputMaybe; + eq?: InputMaybe; + in?: InputMaybe>; + isNull?: InputMaybe; + notContains?: InputMaybe; + notEq?: InputMaybe; + notIn?: InputMaybe>; + regex?: InputMaybe; }; /** Indicates that an operation succeeded, where we do not want to return any more specific information. */ export type Success = { - success: Scalars['Boolean']; + success: Scalars['Boolean']; }; export type Surcharge = Node & { - createdAt: Scalars['DateTime']; - description: Scalars['String']; - id: Scalars['ID']; - price: Scalars['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; @@ -5256,410 +5388,353 @@ 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; - stockLevels?: InputMaybe>; - stockOnHand?: InputMaybe; - taxCategoryId?: InputMaybe; - trackInventory?: InputMaybe; - translations?: InputMaybe>; - useGlobalOutOfStockThreshold?: InputMaybe; + assetIds?: InputMaybe>; + customFields?: InputMaybe; + enabled?: InputMaybe; + facetValueIds?: InputMaybe>; + featuredAssetId?: InputMaybe; + id: Scalars['ID']; + outOfStockThreshold?: InputMaybe; + price?: InputMaybe; + sku?: InputMaybe; + stockLevels?: InputMaybe>; + stockOnHand?: InputMaybe; + taxCategoryId?: InputMaybe; + trackInventory?: InputMaybe; + translations?: InputMaybe>; + useGlobalOutOfStockThreshold?: InputMaybe; }; export type UpdatePromotionInput = { - actions?: InputMaybe>; - conditions?: InputMaybe>; - couponCode?: InputMaybe; - customFields?: InputMaybe; - enabled?: InputMaybe; - endsAt?: InputMaybe; - id: Scalars['ID']; - 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 UpdateSellerInput = { - customFields?: InputMaybe; - id: Scalars['ID']; - name?: InputMaybe; + customFields?: InputMaybe; + id: Scalars['ID']; + name?: InputMaybe; }; export type UpdateShippingMethodInput = { - calculator?: InputMaybe; - checker?: InputMaybe; - code?: InputMaybe; - customFields?: InputMaybe; - fulfillmentHandler?: InputMaybe; - id: Scalars['ID']; - translations: Array; + calculator?: InputMaybe; + checker?: InputMaybe; + code?: InputMaybe; + customFields?: InputMaybe; + fulfillmentHandler?: InputMaybe; + id: Scalars['ID']; + translations: Array; }; export type UpdateStockLocationInput = { - customFields?: InputMaybe; - description?: InputMaybe; - id: Scalars['ID']; - name?: InputMaybe; + customFields?: InputMaybe; + description?: InputMaybe; + id: Scalars['ID']; + name?: InputMaybe; }; export type UpdateTagInput = { - id: Scalars['ID']; - value?: InputMaybe; + id: Scalars['ID']; + value?: InputMaybe; }; export type UpdateTaxCategoryInput = { - customFields?: InputMaybe; - id: Scalars['ID']; - isDefault?: InputMaybe; - name?: InputMaybe; + customFields?: InputMaybe; + id: Scalars['ID']; + isDefault?: InputMaybe; + name?: InputMaybe; }; export type UpdateTaxRateInput = { - categoryId?: InputMaybe; - customFields?: InputMaybe; - customerGroupId?: InputMaybe; - enabled?: InputMaybe; - id: Scalars['ID']; - name?: InputMaybe; - value?: InputMaybe; - zoneId?: InputMaybe; + categoryId?: InputMaybe; + customFields?: InputMaybe; + customerGroupId?: InputMaybe; + enabled?: InputMaybe; + id: Scalars['ID']; + name?: InputMaybe; + value?: InputMaybe; + zoneId?: InputMaybe; }; export type UpdateZoneInput = { - customFields?: InputMaybe; - id: Scalars['ID']; - name?: InputMaybe; + customFields?: InputMaybe; + id: Scalars['ID']; + name?: InputMaybe; }; export type User = Node & { - authenticationMethods: Array; - createdAt: Scalars['DateTime']; - customFields?: Maybe; - id: Scalars['ID']; - identifier: Scalars['String']; - lastLogin?: Maybe; - roles: Array; - updatedAt: Scalars['DateTime']; - verified: Scalars['Boolean']; + authenticationMethods: Array; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + id: Scalars['ID']; + identifier: Scalars['String']; + lastLogin?: Maybe; + roles: Array; + updatedAt: Scalars['DateTime']; + verified: Scalars['Boolean']; }; export type Zone = Node & { - createdAt: Scalars['DateTime']; - customFields?: Maybe; - id: Scalars['ID']; - members: Array; - name: Scalars['String']; - updatedAt: Scalars['DateTime']; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + id: Scalars['ID']; + members: Array; + name: Scalars['String']; + updatedAt: Scalars['DateTime']; }; -export type ReindexMutationVariables = Exact<{ [key: string]: never }>; +export type ReindexMutationVariables = Exact<{ [key: string]: never; }>; -export type ReindexMutation = { - reindex: { - id: string; - queueName: string; - state: JobState; - progress: number; - duration: number; - result?: any | null; - }; -}; -export type GetCollectionListQueryVariables = Exact<{ [key: string]: never }>; +export type ReindexMutation = { reindex: { id: string, queueName: string, state: JobState, progress: number, duration: number, result?: any | null } }; + +export type GetCollectionListQueryVariables = Exact<{ [key: string]: never; }>; + -export type GetCollectionListQuery = { collections: { items: Array<{ id: string; name: string }> } }; +export type GetCollectionListQuery = { collections: { items: Array<{ id: string, name: string }> } }; export type 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; - 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 SearchProductsAdminQuery = { search: { totalItems: number, items: Array<{ enabled: boolean, productId: string, productName: string, slug: string, description: string, productVariantId: string, productVariantName: string, sku: 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 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 SearchGetPricesQueryVariables = Exact<{ - input: SearchInput; + input: SearchInput; }>; -export type SearchGetPricesQuery = { - search: { - items: Array<{ - price: { min: number; max: number } | { value: number }; - priceWithTax: { min: number; max: number } | { value: number }; - }>; - }; -}; + +export type SearchGetPricesQuery = { search: { items: Array<{ price: { min: number, max: number } | { value: number }, priceWithTax: { min: number, max: number } | { value: number } }> } }; export type GetJobInfoQueryVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; -export type GetJobInfoQuery = { - job?: { - id: string; - queueName: string; - state: JobState; - progress: number; - duration: number; - result?: any | null; - } | null; -}; + +export type GetJobInfoQuery = { job?: { id: string, queueName: string, state: JobState, progress: number, duration: number, result?: any | null } | null }; diff --git a/packages/payments-plugin/e2e/graphql/generated-admin-types.ts b/packages/payments-plugin/e2e/graphql/generated-admin-types.ts index fb062569ef..53298bd61b 100644 --- a/packages/payments-plugin/e2e/graphql/generated-admin-types.ts +++ b/packages/payments-plugin/e2e/graphql/generated-admin-types.ts @@ -6,366 +6,347 @@ export type MakeOptional = Omit & { [SubKey in K]?: export type MakeMaybe = Omit & { [SubKey in K]: Maybe }; /** All built-in and custom scalars, mapped to their actual values */ export type Scalars = { - ID: string; - String: string; - Boolean: boolean; - Int: number; - Float: number; - /** 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 Adjustment = { - adjustmentSource: Scalars['String']; - amount: Scalars['Int']; - data?: Maybe; - description: Scalars['String']; - type: AdjustmentType; + adjustmentSource: Scalars['String']; + amount: Scalars['Int']; + data?: Maybe; + description: Scalars['String']; + type: AdjustmentType; }; export enum AdjustmentType { - DISTRIBUTED_ORDER_PROMOTION = 'DISTRIBUTED_ORDER_PROMOTION', - OTHER = 'OTHER', - PROMOTION = 'PROMOTION', + DISTRIBUTED_ORDER_PROMOTION = 'DISTRIBUTED_ORDER_PROMOTION', + OTHER = 'OTHER', + PROMOTION = 'PROMOTION' } export type Administrator = Node & { - createdAt: Scalars['DateTime']; - customFields?: Maybe; - emailAddress: Scalars['String']; - firstName: Scalars['String']; - id: Scalars['ID']; - lastName: Scalars['String']; - updatedAt: Scalars['DateTime']; - user: User; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + emailAddress: Scalars['String']; + firstName: Scalars['String']; + id: Scalars['ID']; + lastName: Scalars['String']; + updatedAt: Scalars['DateTime']; + user: User; }; export type AdministratorFilterParameter = { - createdAt?: InputMaybe; - emailAddress?: InputMaybe; - firstName?: InputMaybe; - id?: InputMaybe; - lastName?: InputMaybe; - updatedAt?: InputMaybe; + createdAt?: InputMaybe; + emailAddress?: InputMaybe; + firstName?: InputMaybe; + id?: InputMaybe; + lastName?: InputMaybe; + updatedAt?: InputMaybe; }; export type AdministratorList = PaginatedList & { - items: Array; - totalItems: Scalars['Int']; + items: Array; + totalItems: Scalars['Int']; }; export type AdministratorListOptions = { - /** Allows the results to be filtered */ - filter?: InputMaybe; - /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ - filterOperator?: InputMaybe; - /** Skips the first n results, for use in pagination */ - skip?: InputMaybe; - /** Specifies which properties to sort the results by */ - sort?: InputMaybe; - /** Takes n results, for use in pagination */ - take?: InputMaybe; + /** Allows the results to be filtered */ + filter?: InputMaybe; + /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ + filterOperator?: InputMaybe; + /** Skips the first n results, for use in pagination */ + skip?: InputMaybe; + /** Specifies which properties to sort the results by */ + sort?: InputMaybe; + /** Takes n results, for use in pagination */ + take?: InputMaybe; }; export type AdministratorPaymentInput = { - metadata?: InputMaybe; - paymentMethod?: InputMaybe; + metadata?: InputMaybe; + paymentMethod?: InputMaybe; }; export type AdministratorRefundInput = { - paymentId: Scalars['ID']; - reason?: InputMaybe; + paymentId: Scalars['ID']; + reason?: InputMaybe; }; export type AdministratorSortParameter = { - createdAt?: InputMaybe; - emailAddress?: InputMaybe; - firstName?: InputMaybe; - id?: InputMaybe; - lastName?: InputMaybe; - updatedAt?: InputMaybe; -}; - -export type Allocation = Node & - StockMovement & { - createdAt: Scalars['DateTime']; - id: Scalars['ID']; - orderLine: OrderLine; - productVariant: ProductVariant; - quantity: Scalars['Int']; - type: StockMovementType; - updatedAt: Scalars['DateTime']; - }; + createdAt?: InputMaybe; + emailAddress?: InputMaybe; + firstName?: InputMaybe; + id?: InputMaybe; + lastName?: InputMaybe; + updatedAt?: InputMaybe; +}; + +export type Allocation = Node & StockMovement & { + createdAt: Scalars['DateTime']; + id: Scalars['ID']; + orderLine: OrderLine; + productVariant: ProductVariant; + quantity: Scalars['Int']; + type: StockMovementType; + updatedAt: Scalars['DateTime']; +}; /** Returned if an attempting to refund an OrderItem which has already been refunded */ export type AlreadyRefundedError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; - refundId: Scalars['ID']; + errorCode: ErrorCode; + message: Scalars['String']; + refundId: Scalars['ID']; }; -export type ApplyCouponCodeResult = - | CouponCodeExpiredError - | CouponCodeInvalidError - | CouponCodeLimitError - | Order; +export type ApplyCouponCodeResult = CouponCodeExpiredError | CouponCodeInvalidError | CouponCodeLimitError | Order; export type Asset = Node & { - createdAt: Scalars['DateTime']; - customFields?: Maybe; - fileSize: Scalars['Int']; - focalPoint?: Maybe; - height: Scalars['Int']; - id: Scalars['ID']; - mimeType: Scalars['String']; - name: Scalars['String']; - preview: Scalars['String']; - source: Scalars['String']; - tags: Array; - type: AssetType; - updatedAt: Scalars['DateTime']; - width: Scalars['Int']; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + fileSize: Scalars['Int']; + focalPoint?: Maybe; + height: Scalars['Int']; + id: Scalars['ID']; + mimeType: Scalars['String']; + name: Scalars['String']; + preview: Scalars['String']; + source: Scalars['String']; + tags: Array; + type: AssetType; + updatedAt: Scalars['DateTime']; + width: Scalars['Int']; }; export type AssetFilterParameter = { - createdAt?: InputMaybe; - fileSize?: InputMaybe; - height?: InputMaybe; - id?: InputMaybe; - mimeType?: InputMaybe; - name?: InputMaybe; - preview?: InputMaybe; - source?: InputMaybe; - type?: InputMaybe; - updatedAt?: InputMaybe; - width?: InputMaybe; + createdAt?: InputMaybe; + fileSize?: InputMaybe; + height?: InputMaybe; + id?: InputMaybe; + mimeType?: InputMaybe; + name?: InputMaybe; + preview?: InputMaybe; + source?: InputMaybe; + type?: InputMaybe; + updatedAt?: InputMaybe; + width?: InputMaybe; }; export type AssetList = PaginatedList & { - items: Array; - totalItems: Scalars['Int']; + items: Array; + totalItems: Scalars['Int']; }; export type AssetListOptions = { - /** Allows the results to be filtered */ - filter?: InputMaybe; - /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ - filterOperator?: InputMaybe; - /** Skips the first n results, for use in pagination */ - skip?: InputMaybe; - /** Specifies which properties to sort the results by */ - sort?: InputMaybe; - tags?: InputMaybe>; - tagsOperator?: InputMaybe; - /** Takes n results, for use in pagination */ - take?: InputMaybe; + /** Allows the results to be filtered */ + filter?: InputMaybe; + /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ + filterOperator?: InputMaybe; + /** Skips the first n results, for use in pagination */ + skip?: InputMaybe; + /** Specifies which properties to sort the results by */ + sort?: InputMaybe; + tags?: InputMaybe>; + tagsOperator?: InputMaybe; + /** Takes n results, for use in pagination */ + take?: InputMaybe; }; export type AssetSortParameter = { - createdAt?: InputMaybe; - fileSize?: InputMaybe; - height?: InputMaybe; - id?: InputMaybe; - mimeType?: InputMaybe; - name?: InputMaybe; - preview?: InputMaybe; - source?: InputMaybe; - updatedAt?: InputMaybe; - width?: InputMaybe; + createdAt?: InputMaybe; + fileSize?: InputMaybe; + height?: InputMaybe; + id?: InputMaybe; + mimeType?: InputMaybe; + name?: InputMaybe; + preview?: InputMaybe; + source?: InputMaybe; + updatedAt?: InputMaybe; + width?: InputMaybe; }; export enum AssetType { - BINARY = 'BINARY', - IMAGE = 'IMAGE', - VIDEO = 'VIDEO', + BINARY = 'BINARY', + IMAGE = 'IMAGE', + VIDEO = 'VIDEO' } export type AssignAssetsToChannelInput = { - assetIds: Array; - channelId: Scalars['ID']; + assetIds: Array; + channelId: Scalars['ID']; }; export type AssignCollectionsToChannelInput = { - channelId: Scalars['ID']; - collectionIds: Array; + channelId: Scalars['ID']; + collectionIds: Array; }; export type AssignFacetsToChannelInput = { - channelId: Scalars['ID']; - facetIds: Array; + channelId: Scalars['ID']; + facetIds: Array; }; export type AssignProductVariantsToChannelInput = { - channelId: Scalars['ID']; - priceFactor?: InputMaybe; - productVariantIds: Array; + channelId: Scalars['ID']; + priceFactor?: InputMaybe; + productVariantIds: Array; }; export type AssignProductsToChannelInput = { - channelId: Scalars['ID']; - priceFactor?: InputMaybe; - productIds: Array; + channelId: Scalars['ID']; + priceFactor?: InputMaybe; + productIds: Array; }; export type AssignPromotionsToChannelInput = { - channelId: Scalars['ID']; - promotionIds: Array; + channelId: Scalars['ID']; + promotionIds: Array; }; export type AuthenticationInput = { - native?: InputMaybe; + native?: InputMaybe; }; export type AuthenticationMethod = Node & { - createdAt: Scalars['DateTime']; - id: Scalars['ID']; - strategy: Scalars['String']; - updatedAt: Scalars['DateTime']; + createdAt: Scalars['DateTime']; + id: Scalars['ID']; + strategy: Scalars['String']; + updatedAt: Scalars['DateTime']; }; export type AuthenticationResult = CurrentUser | InvalidCredentialsError; export type BooleanCustomFieldConfig = CustomField & { - description?: Maybe>; - internal?: Maybe; - label?: Maybe>; - list: Scalars['Boolean']; - name: Scalars['String']; - nullable?: Maybe; - readonly?: Maybe; - type: Scalars['String']; - ui?: Maybe; + description?: Maybe>; + internal?: Maybe; + label?: Maybe>; + list: Scalars['Boolean']; + name: Scalars['String']; + nullable?: Maybe; + readonly?: Maybe; + type: Scalars['String']; + ui?: Maybe; }; /** Operators for filtering on a list of Boolean fields */ export type BooleanListOperators = { - inList: Scalars['Boolean']; + inList: Scalars['Boolean']; }; /** Operators for filtering on a Boolean field */ export type BooleanOperators = { - eq?: InputMaybe; - isNull?: InputMaybe; + eq?: InputMaybe; + isNull?: InputMaybe; }; /** Returned if an attempting to cancel lines from an Order which is still active */ export type CancelActiveOrderError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; - orderState: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; + orderState: Scalars['String']; }; export type CancelOrderInput = { - /** Specify whether the shipping charges should also be cancelled. Defaults to false */ - cancelShipping?: InputMaybe; - /** Optionally specify which OrderLines to cancel. If not provided, all OrderLines will be cancelled */ - lines?: InputMaybe>; - /** The id of the order to be cancelled */ - orderId: Scalars['ID']; - reason?: InputMaybe; -}; - -export type CancelOrderResult = - | CancelActiveOrderError - | EmptyOrderLineSelectionError - | MultipleOrderError - | Order - | OrderStateTransitionError - | QuantityTooGreatError; + /** Specify whether the shipping charges should also be cancelled. Defaults to false */ + cancelShipping?: InputMaybe; + /** Optionally specify which OrderLines to cancel. If not provided, all OrderLines will be cancelled */ + lines?: InputMaybe>; + /** The id of the order to be cancelled */ + orderId: Scalars['ID']; + reason?: InputMaybe; +}; + +export type CancelOrderResult = CancelActiveOrderError | EmptyOrderLineSelectionError | MultipleOrderError | Order | OrderStateTransitionError | QuantityTooGreatError; /** Returned if the Payment cancellation fails */ export type CancelPaymentError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; - paymentErrorMessage: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; + paymentErrorMessage: Scalars['String']; }; export type CancelPaymentResult = CancelPaymentError | Payment | PaymentStateTransitionError; -export type Cancellation = Node & - StockMovement & { - createdAt: Scalars['DateTime']; - id: Scalars['ID']; - orderLine: OrderLine; - productVariant: ProductVariant; - quantity: Scalars['Int']; - type: StockMovementType; - updatedAt: Scalars['DateTime']; - }; +export type Cancellation = Node & StockMovement & { + createdAt: Scalars['DateTime']; + id: Scalars['ID']; + orderLine: OrderLine; + productVariant: ProductVariant; + quantity: Scalars['Int']; + type: StockMovementType; + updatedAt: Scalars['DateTime']; +}; export type Channel = Node & { - code: Scalars['String']; - createdAt: Scalars['DateTime']; - 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']; }; /** @@ -373,73 +354,74 @@ export type Channel = Node & { * of the GlobalSettings */ export type ChannelDefaultLanguageError = ErrorResult & { - channelCode: Scalars['String']; - errorCode: ErrorCode; - language: Scalars['String']; - message: Scalars['String']; + channelCode: Scalars['String']; + errorCode: ErrorCode; + language: Scalars['String']; + message: Scalars['String']; }; export type Collection = Node & { - assets: Array; - breadcrumbs: Array; - children?: Maybe>; - createdAt: Scalars['DateTime']; - customFields?: Maybe; - description: Scalars['String']; - featuredAsset?: Maybe; - filters: Array; - id: Scalars['ID']; - inheritFilters: Scalars['Boolean']; - isPrivate: Scalars['Boolean']; - languageCode?: Maybe; - name: Scalars['String']; - parent?: Maybe; - position: Scalars['Int']; - productVariants: ProductVariantList; - slug: Scalars['String']; - translations: Array; - updatedAt: Scalars['DateTime']; + assets: Array; + breadcrumbs: Array; + children?: Maybe>; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + description: Scalars['String']; + featuredAsset?: Maybe; + filters: Array; + id: Scalars['ID']; + inheritFilters: Scalars['Boolean']; + isPrivate: Scalars['Boolean']; + languageCode?: Maybe; + name: Scalars['String']; + parent?: Maybe; + position: Scalars['Int']; + productVariants: ProductVariantList; + slug: Scalars['String']; + translations: Array; + updatedAt: Scalars['DateTime']; }; + export type CollectionProductVariantsArgs = { - options?: InputMaybe; + options?: InputMaybe; }; export type CollectionBreadcrumb = { - id: Scalars['ID']; - name: Scalars['String']; - slug: Scalars['String']; + id: Scalars['ID']; + name: Scalars['String']; + slug: Scalars['String']; }; export type CollectionFilterParameter = { - createdAt?: InputMaybe; - description?: InputMaybe; - id?: InputMaybe; - inheritFilters?: InputMaybe; - isPrivate?: InputMaybe; - languageCode?: InputMaybe; - name?: InputMaybe; - position?: InputMaybe; - slug?: InputMaybe; - updatedAt?: InputMaybe; + createdAt?: InputMaybe; + description?: InputMaybe; + id?: InputMaybe; + inheritFilters?: InputMaybe; + isPrivate?: InputMaybe; + languageCode?: InputMaybe; + name?: InputMaybe; + position?: InputMaybe; + slug?: InputMaybe; + updatedAt?: InputMaybe; }; export type CollectionList = PaginatedList & { - items: Array; - totalItems: Scalars['Int']; + items: Array; + totalItems: Scalars['Int']; }; export type CollectionListOptions = { - /** Allows the results to be filtered */ - filter?: InputMaybe; - /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ - filterOperator?: InputMaybe; - /** Skips the first n results, for use in pagination */ - skip?: InputMaybe; - /** Specifies which properties to sort the results by */ - sort?: InputMaybe; - /** Takes n results, for use in pagination */ - take?: InputMaybe; + /** Allows the results to be filtered */ + filter?: InputMaybe; + /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ + filterOperator?: InputMaybe; + /** Skips the first n results, for use in pagination */ + skip?: InputMaybe; + /** Specifies which properties to sort the results by */ + sort?: InputMaybe; + /** Takes n results, for use in pagination */ + take?: InputMaybe; }; /** @@ -447,406 +429,406 @@ 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']; - stockLevels?: InputMaybe>; - stockOnHand?: InputMaybe; - taxCategoryId?: InputMaybe; - trackInventory?: InputMaybe; - translations: Array; - useGlobalOutOfStockThreshold?: InputMaybe; + assetIds?: InputMaybe>; + customFields?: InputMaybe; + facetValueIds?: InputMaybe>; + featuredAssetId?: InputMaybe; + optionIds?: InputMaybe>; + outOfStockThreshold?: InputMaybe; + price?: InputMaybe; + productId: Scalars['ID']; + sku: Scalars['String']; + stockLevels?: InputMaybe>; + stockOnHand?: InputMaybe; + taxCategoryId?: InputMaybe; + trackInventory?: InputMaybe; + translations: Array; + useGlobalOutOfStockThreshold?: InputMaybe; }; export type CreateProductVariantOptionInput = { - code: Scalars['String']; - optionGroupId: Scalars['ID']; - translations: Array; + code: Scalars['String']; + optionGroupId: Scalars['ID']; + translations: Array; }; export type CreatePromotionInput = { - actions: Array; - conditions: Array; - couponCode?: InputMaybe; - customFields?: InputMaybe; - enabled: Scalars['Boolean']; - endsAt?: InputMaybe; - 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 CreateSellerInput = { - customFields?: InputMaybe; - name: Scalars['String']; + customFields?: InputMaybe; + name: Scalars['String']; }; export type CreateShippingMethodInput = { - calculator: ConfigurableOperationInput; - checker: ConfigurableOperationInput; - code: Scalars['String']; - customFields?: InputMaybe; - fulfillmentHandler: Scalars['String']; - translations: Array; + calculator: ConfigurableOperationInput; + checker: ConfigurableOperationInput; + code: Scalars['String']; + customFields?: InputMaybe; + fulfillmentHandler: Scalars['String']; + translations: Array; }; export type CreateStockLocationInput = { - customFields?: InputMaybe; - description?: InputMaybe; - name: Scalars['String']; + customFields?: InputMaybe; + description?: InputMaybe; + name: Scalars['String']; }; export type CreateTagInput = { - value: Scalars['String']; + value: Scalars['String']; }; export type CreateTaxCategoryInput = { - customFields?: InputMaybe; - isDefault?: InputMaybe; - name: Scalars['String']; + customFields?: InputMaybe; + isDefault?: InputMaybe; + name: Scalars['String']; }; export type CreateTaxRateInput = { - categoryId: Scalars['ID']; - customFields?: InputMaybe; - customerGroupId?: InputMaybe; - enabled: Scalars['Boolean']; - name: Scalars['String']; - value: Scalars['Float']; - zoneId: Scalars['ID']; + categoryId: Scalars['ID']; + customFields?: InputMaybe; + customerGroupId?: InputMaybe; + enabled: Scalars['Boolean']; + name: Scalars['String']; + value: Scalars['Float']; + zoneId: Scalars['ID']; }; export type CreateZoneInput = { - customFields?: InputMaybe; - memberIds?: InputMaybe>; - name: Scalars['String']; + customFields?: InputMaybe; + memberIds?: InputMaybe>; + name: Scalars['String']; }; /** @@ -856,515 +838,510 @@ export type CreateZoneInput = { * @docsCategory common */ export enum CurrencyCode { - /** United Arab Emirates dirham */ - AED = 'AED', - /** Afghan afghani */ - AFN = 'AFN', - /** Albanian lek */ - ALL = 'ALL', - /** Armenian dram */ - AMD = 'AMD', - /** Netherlands Antillean guilder */ - ANG = 'ANG', - /** Angolan kwanza */ - AOA = 'AOA', - /** Argentine peso */ - ARS = 'ARS', - /** Australian dollar */ - AUD = 'AUD', - /** Aruban florin */ - AWG = 'AWG', - /** Azerbaijani manat */ - AZN = 'AZN', - /** Bosnia and Herzegovina convertible mark */ - BAM = 'BAM', - /** Barbados dollar */ - BBD = 'BBD', - /** Bangladeshi taka */ - BDT = 'BDT', - /** Bulgarian lev */ - BGN = 'BGN', - /** Bahraini dinar */ - BHD = 'BHD', - /** Burundian franc */ - BIF = 'BIF', - /** Bermudian dollar */ - BMD = 'BMD', - /** Brunei dollar */ - BND = 'BND', - /** Boliviano */ - BOB = 'BOB', - /** Brazilian real */ - BRL = 'BRL', - /** Bahamian dollar */ - BSD = 'BSD', - /** Bhutanese ngultrum */ - BTN = 'BTN', - /** Botswana pula */ - BWP = 'BWP', - /** Belarusian ruble */ - BYN = 'BYN', - /** Belize dollar */ - BZD = 'BZD', - /** Canadian dollar */ - CAD = 'CAD', - /** Congolese franc */ - CDF = 'CDF', - /** Swiss franc */ - CHF = 'CHF', - /** Chilean peso */ - CLP = 'CLP', - /** Renminbi (Chinese) yuan */ - CNY = 'CNY', - /** Colombian peso */ - COP = 'COP', - /** Costa Rican colon */ - CRC = 'CRC', - /** Cuban convertible peso */ - CUC = 'CUC', - /** Cuban peso */ - CUP = 'CUP', - /** Cape Verde escudo */ - CVE = 'CVE', - /** Czech koruna */ - CZK = 'CZK', - /** Djiboutian franc */ - DJF = 'DJF', - /** Danish krone */ - DKK = 'DKK', - /** Dominican peso */ - DOP = 'DOP', - /** Algerian dinar */ - DZD = 'DZD', - /** Egyptian pound */ - EGP = 'EGP', - /** Eritrean nakfa */ - ERN = 'ERN', - /** Ethiopian birr */ - ETB = 'ETB', - /** Euro */ - EUR = 'EUR', - /** Fiji dollar */ - FJD = 'FJD', - /** Falkland Islands pound */ - FKP = 'FKP', - /** Pound sterling */ - GBP = 'GBP', - /** Georgian lari */ - GEL = 'GEL', - /** Ghanaian cedi */ - GHS = 'GHS', - /** Gibraltar pound */ - GIP = 'GIP', - /** Gambian dalasi */ - GMD = 'GMD', - /** Guinean franc */ - GNF = 'GNF', - /** Guatemalan quetzal */ - GTQ = 'GTQ', - /** Guyanese dollar */ - GYD = 'GYD', - /** Hong Kong dollar */ - HKD = 'HKD', - /** Honduran lempira */ - HNL = 'HNL', - /** Croatian kuna */ - HRK = 'HRK', - /** Haitian gourde */ - HTG = 'HTG', - /** Hungarian forint */ - HUF = 'HUF', - /** Indonesian rupiah */ - IDR = 'IDR', - /** Israeli new shekel */ - ILS = 'ILS', - /** Indian rupee */ - INR = 'INR', - /** Iraqi dinar */ - IQD = 'IQD', - /** Iranian rial */ - IRR = 'IRR', - /** Icelandic króna */ - ISK = 'ISK', - /** Jamaican dollar */ - JMD = 'JMD', - /** Jordanian dinar */ - JOD = 'JOD', - /** Japanese yen */ - JPY = 'JPY', - /** Kenyan shilling */ - KES = 'KES', - /** Kyrgyzstani som */ - KGS = 'KGS', - /** Cambodian riel */ - KHR = 'KHR', - /** Comoro franc */ - KMF = 'KMF', - /** North Korean won */ - KPW = 'KPW', - /** South Korean won */ - KRW = 'KRW', - /** Kuwaiti dinar */ - KWD = 'KWD', - /** Cayman Islands dollar */ - KYD = 'KYD', - /** Kazakhstani tenge */ - KZT = 'KZT', - /** Lao kip */ - LAK = 'LAK', - /** Lebanese pound */ - LBP = 'LBP', - /** Sri Lankan rupee */ - LKR = 'LKR', - /** Liberian dollar */ - LRD = 'LRD', - /** Lesotho loti */ - LSL = 'LSL', - /** Libyan dinar */ - LYD = 'LYD', - /** Moroccan dirham */ - MAD = 'MAD', - /** Moldovan leu */ - MDL = 'MDL', - /** Malagasy ariary */ - MGA = 'MGA', - /** Macedonian denar */ - MKD = 'MKD', - /** Myanmar kyat */ - MMK = 'MMK', - /** Mongolian tögrög */ - MNT = 'MNT', - /** Macanese pataca */ - MOP = 'MOP', - /** Mauritanian ouguiya */ - MRU = 'MRU', - /** Mauritian rupee */ - MUR = 'MUR', - /** Maldivian rufiyaa */ - MVR = 'MVR', - /** Malawian kwacha */ - MWK = 'MWK', - /** Mexican peso */ - MXN = 'MXN', - /** Malaysian ringgit */ - MYR = 'MYR', - /** Mozambican metical */ - MZN = 'MZN', - /** Namibian dollar */ - NAD = 'NAD', - /** Nigerian naira */ - NGN = 'NGN', - /** Nicaraguan córdoba */ - NIO = 'NIO', - /** Norwegian krone */ - NOK = 'NOK', - /** Nepalese rupee */ - NPR = 'NPR', - /** New Zealand dollar */ - NZD = 'NZD', - /** Omani rial */ - OMR = 'OMR', - /** Panamanian balboa */ - PAB = 'PAB', - /** Peruvian sol */ - PEN = 'PEN', - /** Papua New Guinean kina */ - PGK = 'PGK', - /** Philippine peso */ - PHP = 'PHP', - /** Pakistani rupee */ - PKR = 'PKR', - /** Polish złoty */ - PLN = 'PLN', - /** Paraguayan guaraní */ - PYG = 'PYG', - /** Qatari riyal */ - QAR = 'QAR', - /** Romanian leu */ - RON = 'RON', - /** Serbian dinar */ - RSD = 'RSD', - /** Russian ruble */ - RUB = 'RUB', - /** Rwandan franc */ - RWF = 'RWF', - /** Saudi riyal */ - SAR = 'SAR', - /** Solomon Islands dollar */ - SBD = 'SBD', - /** Seychelles rupee */ - SCR = 'SCR', - /** Sudanese pound */ - SDG = 'SDG', - /** Swedish krona/kronor */ - SEK = 'SEK', - /** Singapore dollar */ - SGD = 'SGD', - /** Saint Helena pound */ - SHP = 'SHP', - /** Sierra Leonean leone */ - SLL = 'SLL', - /** Somali shilling */ - SOS = 'SOS', - /** Surinamese dollar */ - SRD = 'SRD', - /** South Sudanese pound */ - SSP = 'SSP', - /** São Tomé and Príncipe dobra */ - STN = 'STN', - /** Salvadoran colón */ - SVC = 'SVC', - /** Syrian pound */ - SYP = 'SYP', - /** Swazi lilangeni */ - SZL = 'SZL', - /** Thai baht */ - THB = 'THB', - /** Tajikistani somoni */ - TJS = 'TJS', - /** Turkmenistan manat */ - TMT = 'TMT', - /** Tunisian dinar */ - TND = 'TND', - /** Tongan paʻanga */ - TOP = 'TOP', - /** Turkish lira */ - TRY = 'TRY', - /** Trinidad and Tobago dollar */ - TTD = 'TTD', - /** New Taiwan dollar */ - TWD = 'TWD', - /** Tanzanian shilling */ - TZS = 'TZS', - /** Ukrainian hryvnia */ - UAH = 'UAH', - /** Ugandan shilling */ - UGX = 'UGX', - /** United States dollar */ - USD = 'USD', - /** Uruguayan peso */ - UYU = 'UYU', - /** Uzbekistan som */ - UZS = 'UZS', - /** Venezuelan bolívar soberano */ - VES = 'VES', - /** Vietnamese đồng */ - VND = 'VND', - /** Vanuatu vatu */ - VUV = 'VUV', - /** Samoan tala */ - WST = 'WST', - /** CFA franc BEAC */ - XAF = 'XAF', - /** East Caribbean dollar */ - XCD = 'XCD', - /** CFA franc BCEAO */ - XOF = 'XOF', - /** CFP franc (franc Pacifique) */ - XPF = 'XPF', - /** Yemeni rial */ - YER = 'YER', - /** South African rand */ - ZAR = 'ZAR', - /** Zambian kwacha */ - ZMW = 'ZMW', - /** Zimbabwean dollar */ - ZWL = 'ZWL', + /** United Arab Emirates dirham */ + AED = 'AED', + /** Afghan afghani */ + AFN = 'AFN', + /** Albanian lek */ + ALL = 'ALL', + /** Armenian dram */ + AMD = 'AMD', + /** Netherlands Antillean guilder */ + ANG = 'ANG', + /** Angolan kwanza */ + AOA = 'AOA', + /** Argentine peso */ + ARS = 'ARS', + /** Australian dollar */ + AUD = 'AUD', + /** Aruban florin */ + AWG = 'AWG', + /** Azerbaijani manat */ + AZN = 'AZN', + /** Bosnia and Herzegovina convertible mark */ + BAM = 'BAM', + /** Barbados dollar */ + BBD = 'BBD', + /** Bangladeshi taka */ + BDT = 'BDT', + /** Bulgarian lev */ + BGN = 'BGN', + /** Bahraini dinar */ + BHD = 'BHD', + /** Burundian franc */ + BIF = 'BIF', + /** Bermudian dollar */ + BMD = 'BMD', + /** Brunei dollar */ + BND = 'BND', + /** Boliviano */ + BOB = 'BOB', + /** Brazilian real */ + BRL = 'BRL', + /** Bahamian dollar */ + BSD = 'BSD', + /** Bhutanese ngultrum */ + BTN = 'BTN', + /** Botswana pula */ + BWP = 'BWP', + /** Belarusian ruble */ + BYN = 'BYN', + /** Belize dollar */ + BZD = 'BZD', + /** Canadian dollar */ + CAD = 'CAD', + /** Congolese franc */ + CDF = 'CDF', + /** Swiss franc */ + CHF = 'CHF', + /** Chilean peso */ + CLP = 'CLP', + /** Renminbi (Chinese) yuan */ + CNY = 'CNY', + /** Colombian peso */ + COP = 'COP', + /** Costa Rican colon */ + CRC = 'CRC', + /** Cuban convertible peso */ + CUC = 'CUC', + /** Cuban peso */ + CUP = 'CUP', + /** Cape Verde escudo */ + CVE = 'CVE', + /** Czech koruna */ + CZK = 'CZK', + /** Djiboutian franc */ + DJF = 'DJF', + /** Danish krone */ + DKK = 'DKK', + /** Dominican peso */ + DOP = 'DOP', + /** Algerian dinar */ + DZD = 'DZD', + /** Egyptian pound */ + EGP = 'EGP', + /** Eritrean nakfa */ + ERN = 'ERN', + /** Ethiopian birr */ + ETB = 'ETB', + /** Euro */ + EUR = 'EUR', + /** Fiji dollar */ + FJD = 'FJD', + /** Falkland Islands pound */ + FKP = 'FKP', + /** Pound sterling */ + GBP = 'GBP', + /** Georgian lari */ + GEL = 'GEL', + /** Ghanaian cedi */ + GHS = 'GHS', + /** Gibraltar pound */ + GIP = 'GIP', + /** Gambian dalasi */ + GMD = 'GMD', + /** Guinean franc */ + GNF = 'GNF', + /** Guatemalan quetzal */ + GTQ = 'GTQ', + /** Guyanese dollar */ + GYD = 'GYD', + /** Hong Kong dollar */ + HKD = 'HKD', + /** Honduran lempira */ + HNL = 'HNL', + /** Croatian kuna */ + HRK = 'HRK', + /** Haitian gourde */ + HTG = 'HTG', + /** Hungarian forint */ + HUF = 'HUF', + /** Indonesian rupiah */ + IDR = 'IDR', + /** Israeli new shekel */ + ILS = 'ILS', + /** Indian rupee */ + INR = 'INR', + /** Iraqi dinar */ + IQD = 'IQD', + /** Iranian rial */ + IRR = 'IRR', + /** Icelandic króna */ + ISK = 'ISK', + /** Jamaican dollar */ + JMD = 'JMD', + /** Jordanian dinar */ + JOD = 'JOD', + /** Japanese yen */ + JPY = 'JPY', + /** Kenyan shilling */ + KES = 'KES', + /** Kyrgyzstani som */ + KGS = 'KGS', + /** Cambodian riel */ + KHR = 'KHR', + /** Comoro franc */ + KMF = 'KMF', + /** North Korean won */ + KPW = 'KPW', + /** South Korean won */ + KRW = 'KRW', + /** Kuwaiti dinar */ + KWD = 'KWD', + /** Cayman Islands dollar */ + KYD = 'KYD', + /** Kazakhstani tenge */ + KZT = 'KZT', + /** Lao kip */ + LAK = 'LAK', + /** Lebanese pound */ + LBP = 'LBP', + /** Sri Lankan rupee */ + LKR = 'LKR', + /** Liberian dollar */ + LRD = 'LRD', + /** Lesotho loti */ + LSL = 'LSL', + /** Libyan dinar */ + LYD = 'LYD', + /** Moroccan dirham */ + MAD = 'MAD', + /** Moldovan leu */ + MDL = 'MDL', + /** Malagasy ariary */ + MGA = 'MGA', + /** Macedonian denar */ + MKD = 'MKD', + /** Myanmar kyat */ + MMK = 'MMK', + /** Mongolian tögrög */ + MNT = 'MNT', + /** Macanese pataca */ + MOP = 'MOP', + /** Mauritanian ouguiya */ + MRU = 'MRU', + /** Mauritian rupee */ + MUR = 'MUR', + /** Maldivian rufiyaa */ + MVR = 'MVR', + /** Malawian kwacha */ + MWK = 'MWK', + /** Mexican peso */ + MXN = 'MXN', + /** Malaysian ringgit */ + MYR = 'MYR', + /** Mozambican metical */ + MZN = 'MZN', + /** Namibian dollar */ + NAD = 'NAD', + /** Nigerian naira */ + NGN = 'NGN', + /** Nicaraguan córdoba */ + NIO = 'NIO', + /** Norwegian krone */ + NOK = 'NOK', + /** Nepalese rupee */ + NPR = 'NPR', + /** New Zealand dollar */ + NZD = 'NZD', + /** Omani rial */ + OMR = 'OMR', + /** Panamanian balboa */ + PAB = 'PAB', + /** Peruvian sol */ + PEN = 'PEN', + /** Papua New Guinean kina */ + PGK = 'PGK', + /** Philippine peso */ + PHP = 'PHP', + /** Pakistani rupee */ + PKR = 'PKR', + /** Polish złoty */ + PLN = 'PLN', + /** Paraguayan guaraní */ + PYG = 'PYG', + /** Qatari riyal */ + QAR = 'QAR', + /** Romanian leu */ + RON = 'RON', + /** Serbian dinar */ + RSD = 'RSD', + /** Russian ruble */ + RUB = 'RUB', + /** Rwandan franc */ + RWF = 'RWF', + /** Saudi riyal */ + SAR = 'SAR', + /** Solomon Islands dollar */ + SBD = 'SBD', + /** Seychelles rupee */ + SCR = 'SCR', + /** Sudanese pound */ + SDG = 'SDG', + /** Swedish krona/kronor */ + SEK = 'SEK', + /** Singapore dollar */ + SGD = 'SGD', + /** Saint Helena pound */ + SHP = 'SHP', + /** Sierra Leonean leone */ + SLL = 'SLL', + /** Somali shilling */ + SOS = 'SOS', + /** Surinamese dollar */ + SRD = 'SRD', + /** South Sudanese pound */ + SSP = 'SSP', + /** São Tomé and Príncipe dobra */ + STN = 'STN', + /** Salvadoran colón */ + SVC = 'SVC', + /** Syrian pound */ + SYP = 'SYP', + /** Swazi lilangeni */ + SZL = 'SZL', + /** Thai baht */ + THB = 'THB', + /** Tajikistani somoni */ + TJS = 'TJS', + /** Turkmenistan manat */ + TMT = 'TMT', + /** Tunisian dinar */ + TND = 'TND', + /** Tongan paʻanga */ + TOP = 'TOP', + /** Turkish lira */ + TRY = 'TRY', + /** Trinidad and Tobago dollar */ + TTD = 'TTD', + /** New Taiwan dollar */ + TWD = 'TWD', + /** Tanzanian shilling */ + TZS = 'TZS', + /** Ukrainian hryvnia */ + UAH = 'UAH', + /** Ugandan shilling */ + UGX = 'UGX', + /** United States dollar */ + USD = 'USD', + /** Uruguayan peso */ + UYU = 'UYU', + /** Uzbekistan som */ + UZS = 'UZS', + /** Venezuelan bolívar soberano */ + VES = 'VES', + /** Vietnamese đồng */ + VND = 'VND', + /** Vanuatu vatu */ + VUV = 'VUV', + /** Samoan tala */ + WST = 'WST', + /** CFA franc BEAC */ + XAF = 'XAF', + /** East Caribbean dollar */ + XCD = 'XCD', + /** CFA franc BCEAO */ + XOF = 'XOF', + /** CFP franc (franc Pacifique) */ + XPF = 'XPF', + /** Yemeni rial */ + YER = 'YER', + /** South African rand */ + ZAR = 'ZAR', + /** Zambian kwacha */ + ZMW = 'ZMW', + /** Zimbabwean dollar */ + ZWL = 'ZWL' } export type CurrentUser = { - channels: Array; - id: Scalars['ID']; - identifier: Scalars['String']; + channels: Array; + id: Scalars['ID']; + identifier: Scalars['String']; }; export type CurrentUserChannel = { - code: Scalars['String']; - id: Scalars['ID']; - permissions: Array; - token: Scalars['String']; + code: Scalars['String']; + id: Scalars['ID']; + permissions: Array; + token: Scalars['String']; }; export type CustomField = { - description?: Maybe>; - internal?: Maybe; - label?: Maybe>; - list: Scalars['Boolean']; - name: Scalars['String']; - nullable?: Maybe; - readonly?: Maybe; - type: Scalars['String']; - ui?: Maybe; -}; - -export type CustomFieldConfig = - | BooleanCustomFieldConfig - | DateTimeCustomFieldConfig - | FloatCustomFieldConfig - | IntCustomFieldConfig - | LocaleStringCustomFieldConfig - | 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; - StockLocation: 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; + StockLocation: Array; + TaxCategory: Array; + TaxRate: Array; + User: Array; + Zone: Array; }; export type Customer = Node & { - addresses?: Maybe>; - createdAt: Scalars['DateTime']; - customFields?: Maybe; - emailAddress: Scalars['String']; - firstName: Scalars['String']; - groups: Array; - history: HistoryEntryList; - id: Scalars['ID']; - lastName: Scalars['String']; - orders: OrderList; - phoneNumber?: Maybe; - title?: Maybe; - updatedAt: Scalars['DateTime']; - user?: Maybe; + addresses?: Maybe>; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + emailAddress: Scalars['String']; + firstName: Scalars['String']; + groups: Array; + history: HistoryEntryList; + id: Scalars['ID']; + lastName: Scalars['String']; + orders: OrderList; + phoneNumber?: Maybe; + title?: Maybe; + updatedAt: Scalars['DateTime']; + user?: Maybe; }; + export type CustomerHistoryArgs = { - options?: InputMaybe; + options?: InputMaybe; }; + export type CustomerOrdersArgs = { - options?: InputMaybe; + options?: InputMaybe; }; export type CustomerFilterParameter = { - createdAt?: InputMaybe; - emailAddress?: InputMaybe; - firstName?: InputMaybe; - id?: InputMaybe; - lastName?: InputMaybe; - phoneNumber?: InputMaybe; - postalCode?: InputMaybe; - title?: InputMaybe; - updatedAt?: InputMaybe; + createdAt?: InputMaybe; + emailAddress?: InputMaybe; + firstName?: InputMaybe; + id?: InputMaybe; + lastName?: InputMaybe; + phoneNumber?: InputMaybe; + postalCode?: InputMaybe; + title?: InputMaybe; + updatedAt?: InputMaybe; }; export type CustomerGroup = Node & { - createdAt: Scalars['DateTime']; - customFields?: Maybe; - customers: CustomerList; - id: Scalars['ID']; - name: Scalars['String']; - updatedAt: Scalars['DateTime']; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + customers: CustomerList; + id: Scalars['ID']; + name: Scalars['String']; + updatedAt: Scalars['DateTime']; }; + export type CustomerGroupCustomersArgs = { - options?: InputMaybe; + options?: InputMaybe; }; export type CustomerGroupFilterParameter = { - createdAt?: InputMaybe; - id?: InputMaybe; - name?: InputMaybe; - updatedAt?: InputMaybe; + createdAt?: InputMaybe; + id?: InputMaybe; + name?: InputMaybe; + updatedAt?: InputMaybe; }; export type CustomerGroupList = PaginatedList & { - items: Array; - totalItems: Scalars['Int']; + items: Array; + totalItems: Scalars['Int']; }; export type CustomerGroupListOptions = { - /** Allows the results to be filtered */ - filter?: InputMaybe; - /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ - filterOperator?: InputMaybe; - /** Skips the first n results, for use in pagination */ - skip?: InputMaybe; - /** Specifies which properties to sort the results by */ - sort?: InputMaybe; - /** Takes n results, for use in pagination */ - take?: InputMaybe; + /** Allows the results to be filtered */ + filter?: InputMaybe; + /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ + filterOperator?: InputMaybe; + /** Skips the first n results, for use in pagination */ + skip?: InputMaybe; + /** Specifies which properties to sort the results by */ + sort?: InputMaybe; + /** Takes n results, for use in pagination */ + take?: InputMaybe; }; export type CustomerGroupSortParameter = { - createdAt?: InputMaybe; - id?: InputMaybe; - name?: InputMaybe; - updatedAt?: InputMaybe; + createdAt?: InputMaybe; + id?: InputMaybe; + name?: InputMaybe; + updatedAt?: InputMaybe; }; export type CustomerList = PaginatedList & { - items: Array; - totalItems: Scalars['Int']; + items: Array; + totalItems: Scalars['Int']; }; export type CustomerListOptions = { - /** Allows the results to be filtered */ - filter?: InputMaybe; - /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ - filterOperator?: InputMaybe; - /** Skips the first n results, for use in pagination */ - skip?: InputMaybe; - /** Specifies which properties to sort the results by */ - sort?: InputMaybe; - /** Takes n results, for use in pagination */ - take?: InputMaybe; + /** Allows the results to be filtered */ + filter?: InputMaybe; + /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ + filterOperator?: InputMaybe; + /** Skips the first n results, for use in pagination */ + skip?: InputMaybe; + /** Specifies which properties to sort the results by */ + sort?: InputMaybe; + /** Takes n results, for use in pagination */ + take?: InputMaybe; }; export type CustomerSortParameter = { - createdAt?: InputMaybe; - emailAddress?: InputMaybe; - firstName?: InputMaybe; - id?: InputMaybe; - lastName?: InputMaybe; - phoneNumber?: InputMaybe; - title?: InputMaybe; - updatedAt?: InputMaybe; + createdAt?: InputMaybe; + emailAddress?: InputMaybe; + firstName?: InputMaybe; + id?: InputMaybe; + lastName?: InputMaybe; + phoneNumber?: InputMaybe; + title?: InputMaybe; + updatedAt?: InputMaybe; }; /** Operators for filtering on a list of Date fields */ export type DateListOperators = { - inList: Scalars['DateTime']; + inList: Scalars['DateTime']; }; /** Operators for filtering on a DateTime field */ export type DateOperators = { - after?: InputMaybe; - before?: InputMaybe; - between?: InputMaybe; - eq?: InputMaybe; - isNull?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; + between?: InputMaybe; + eq?: InputMaybe; + isNull?: InputMaybe; }; export type DateRange = { - end: Scalars['DateTime']; - start: Scalars['DateTime']; + end: Scalars['DateTime']; + start: Scalars['DateTime']; }; /** @@ -1372,201 +1349,201 @@ export type DateRange = { * See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/datetime-local#Additional_attributes */ export type DateTimeCustomFieldConfig = CustomField & { - description?: Maybe>; - internal?: Maybe; - label?: Maybe>; - list: Scalars['Boolean']; - max?: Maybe; - min?: Maybe; - name: Scalars['String']; - nullable?: Maybe; - readonly?: Maybe; - step?: Maybe; - type: Scalars['String']; - ui?: Maybe; + description?: Maybe>; + internal?: Maybe; + label?: Maybe>; + list: Scalars['Boolean']; + max?: Maybe; + min?: Maybe; + name: Scalars['String']; + nullable?: Maybe; + readonly?: Maybe; + step?: Maybe; + type: Scalars['String']; + ui?: Maybe; }; export type DeleteAssetInput = { - assetId: Scalars['ID']; - deleteFromAllChannels?: InputMaybe; - force?: InputMaybe; + assetId: Scalars['ID']; + deleteFromAllChannels?: InputMaybe; + force?: InputMaybe; }; export type DeleteAssetsInput = { - assetIds: Array; - deleteFromAllChannels?: InputMaybe; - force?: InputMaybe; + assetIds: Array; + deleteFromAllChannels?: InputMaybe; + force?: InputMaybe; }; export type DeleteStockLocationInput = { - id: Scalars['ID']; - transferToLocationId?: InputMaybe; + id: Scalars['ID']; + transferToLocationId?: InputMaybe; }; export type DeletionResponse = { - message?: Maybe; - result: DeletionResult; + message?: Maybe; + result: DeletionResult; }; export enum DeletionResult { - /** The entity was successfully deleted */ - DELETED = 'DELETED', - /** Deletion did not take place, reason given in message */ - NOT_DELETED = 'NOT_DELETED', + /** The entity was successfully deleted */ + DELETED = 'DELETED', + /** Deletion did not take place, reason given in message */ + NOT_DELETED = 'NOT_DELETED' } export type Discount = { - adjustmentSource: Scalars['String']; - amount: Scalars['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']; }; /** @@ -1578,35 +1555,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; }; /** @@ -1614,202 +1591,202 @@ export type FacetValueListOptions = { * by the search, and in what quantity. */ export type FacetValueResult = { - count: Scalars['Int']; - facetValue: FacetValue; + count: Scalars['Int']; + facetValue: FacetValue; }; export type FacetValueSortParameter = { - code?: InputMaybe; - createdAt?: InputMaybe; - id?: InputMaybe; - name?: InputMaybe; - updatedAt?: InputMaybe; + code?: InputMaybe; + createdAt?: InputMaybe; + id?: InputMaybe; + name?: InputMaybe; + updatedAt?: InputMaybe; }; export type FacetValueTranslation = { - createdAt: Scalars['DateTime']; - id: Scalars['ID']; - languageCode: LanguageCode; - name: Scalars['String']; - updatedAt: Scalars['DateTime']; + createdAt: Scalars['DateTime']; + id: Scalars['ID']; + languageCode: LanguageCode; + name: Scalars['String']; + updatedAt: Scalars['DateTime']; }; export type FacetValueTranslationInput = { - customFields?: InputMaybe; - id?: InputMaybe; - languageCode: LanguageCode; - name?: InputMaybe; + customFields?: InputMaybe; + id?: InputMaybe; + languageCode: LanguageCode; + name?: InputMaybe; }; export type FloatCustomFieldConfig = CustomField & { - description?: Maybe>; - internal?: Maybe; - label?: Maybe>; - list: Scalars['Boolean']; - max?: Maybe; - min?: Maybe; - name: Scalars['String']; - nullable?: Maybe; - readonly?: Maybe; - step?: Maybe; - type: Scalars['String']; - ui?: Maybe; + description?: Maybe>; + internal?: Maybe; + label?: Maybe>; + list: Scalars['Boolean']; + max?: Maybe; + min?: Maybe; + name: Scalars['String']; + nullable?: Maybe; + readonly?: Maybe; + step?: Maybe; + type: Scalars['String']; + ui?: Maybe; }; export type FulfillOrderInput = { - handler: ConfigurableOperationInput; - lines: Array; + handler: ConfigurableOperationInput; + lines: Array; }; export type Fulfillment = Node & { - createdAt: Scalars['DateTime']; - customFields?: Maybe; - id: Scalars['ID']; - lines: Array; - method: Scalars['String']; - nextStates: Array; - state: Scalars['String']; - /** @deprecated Use the `lines` field instead */ - summary: Array; - trackingCode?: Maybe; - updatedAt: Scalars['DateTime']; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + id: Scalars['ID']; + lines: Array; + method: Scalars['String']; + nextStates: Array; + state: Scalars['String']; + /** @deprecated Use the `lines` field instead */ + summary: Array; + trackingCode?: Maybe; + updatedAt: Scalars['DateTime']; }; export type FulfillmentLine = { - fulfillment: Fulfillment; - fulfillmentId: Scalars['ID']; - orderLine: OrderLine; - orderLineId: Scalars['ID']; - quantity: Scalars['Int']; + fulfillment: Fulfillment; + fulfillmentId: Scalars['ID']; + orderLine: OrderLine; + orderLineId: Scalars['ID']; + quantity: Scalars['Int']; }; /** Returned when there is an error in transitioning the Fulfillment state */ export type FulfillmentStateTransitionError = ErrorResult & { - errorCode: ErrorCode; - fromState: Scalars['String']; - message: Scalars['String']; - toState: Scalars['String']; - transitionError: Scalars['String']; + errorCode: ErrorCode; + fromState: Scalars['String']; + message: Scalars['String']; + toState: Scalars['String']; + transitionError: Scalars['String']; }; export enum GlobalFlag { - FALSE = 'FALSE', - INHERIT = 'INHERIT', - TRUE = 'TRUE', + FALSE = 'FALSE', + INHERIT = 'INHERIT', + TRUE = 'TRUE' } export type GlobalSettings = { - availableLanguages: Array; - createdAt: Scalars['DateTime']; - customFields?: Maybe; - id: Scalars['ID']; - outOfStockThreshold: Scalars['Int']; - serverConfig: ServerConfig; - trackInventory: Scalars['Boolean']; - updatedAt: Scalars['DateTime']; + availableLanguages: Array; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + id: Scalars['ID']; + outOfStockThreshold: Scalars['Int']; + serverConfig: ServerConfig; + trackInventory: Scalars['Boolean']; + updatedAt: Scalars['DateTime']; }; 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']; }; /** @@ -1817,116 +1794,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; }; /** @@ -1936,12 +1913,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' } /** @@ -1954,358 +1931,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; }; /** @@ -2313,905 +2290,1027 @@ 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; - createStockLocation: StockLocation; - /** Create a new Tag */ - createTag: Tag; - /** Create a new TaxCategory */ - createTaxCategory: TaxCategory; - /** Create a new TaxRate */ - createTaxRate: TaxRate; - /** Create a new Zone */ - createZone: Zone; - /** Delete an Administrator */ - deleteAdministrator: DeletionResponse; - /** Delete an Asset */ - deleteAsset: DeletionResponse; - /** Delete multiple Assets */ - deleteAssets: DeletionResponse; - /** Delete a Channel */ - deleteChannel: DeletionResponse; - /** Delete a Collection and all of its descendants */ - deleteCollection: DeletionResponse; - /** Delete multiple Collections and all of their descendants */ - deleteCollections: Array; - /** Delete a Country */ - deleteCountry: DeletionResponse; - /** Delete a Customer */ - deleteCustomer: DeletionResponse; - /** Update an existing Address */ - deleteCustomerAddress: Success; - /** Delete a CustomerGroup */ - deleteCustomerGroup: DeletionResponse; - deleteCustomerNote: DeletionResponse; - /** Deletes a draft Order */ - deleteDraftOrder: DeletionResponse; - /** Delete an existing Facet */ - deleteFacet: DeletionResponse; - /** Delete one or more FacetValues */ - deleteFacetValues: Array; - /** Delete multiple existing Facets */ - deleteFacets: Array; - deleteOrderNote: DeletionResponse; - /** Delete a PaymentMethod */ - deletePaymentMethod: DeletionResponse; - /** Delete a Product */ - deleteProduct: DeletionResponse; - /** Delete a ProductOption */ - deleteProductOption: DeletionResponse; - /** Delete a ProductVariant */ - deleteProductVariant: DeletionResponse; - /** Delete multiple ProductVariants */ - deleteProductVariants: Array; - /** Delete multiple Products */ - deleteProducts: Array; - deletePromotion: DeletionResponse; - /** Delete an existing Role */ - deleteRole: DeletionResponse; - /** Delete a Seller */ - deleteSeller: DeletionResponse; - /** Delete a ShippingMethod */ - deleteShippingMethod: DeletionResponse; - deleteStockLocation: DeletionResponse; - /** Delete an existing Tag */ - deleteTag: DeletionResponse; - /** Deletes a TaxCategory */ - deleteTaxCategory: DeletionResponse; - /** Delete a TaxRate */ - deleteTaxRate: DeletionResponse; - /** Delete a Zone */ - deleteZone: DeletionResponse; - flushBufferedJobs: Success; - importProducts?: Maybe; - /** Authenticates the user using the native authentication strategy. This mutation is an alias for `authenticate({ native: { ... }})` */ - login: NativeAuthenticationResult; - logout: Success; - /** - * Allows an Order to be modified after it has been completed by the Customer. The Order must first - * be in the `Modifying` state. - */ - modifyOrder: ModifyOrderResult; - /** Move a Collection to a different parent or index */ - moveCollection: Collection; - refundOrder: RefundOrderResult; - reindex: Job; - /** Removes Collections from the specified Channel */ - removeCollectionsFromChannel: Array; - /** Removes the given coupon code from the draft Order */ - removeCouponCodeFromDraftOrder?: Maybe; - /** Remove Customers from a CustomerGroup */ - removeCustomersFromGroup: CustomerGroup; - /** Remove an OrderLine from the draft Order */ - removeDraftOrderLine: RemoveOrderItemsResult; - /** Removes Facets from the specified Channel */ - removeFacetsFromChannel: Array; - /** Remove members from a Zone */ - removeMembersFromZone: Zone; - /** Remove an OptionGroup from a Product */ - removeOptionGroupFromProduct: RemoveOptionGroupFromProductResult; - /** Removes ProductVariants from the specified Channel */ - removeProductVariantsFromChannel: Array; - /** Removes all ProductVariants of Product from the specified Channel */ - removeProductsFromChannel: Array; - /** Removes Promotions from the specified Channel */ - removePromotionsFromChannel: Array; - /** Remove all settled jobs in the given queues older than the given date. Returns the number of jobs deleted. */ - removeSettledJobs: Scalars['Int']; - runPendingSearchIndexUpdates: Success; - setCustomerForDraftOrder: SetCustomerForDraftOrderResult; - /** Sets the billing address for a draft Order */ - setDraftOrderBillingAddress: Order; - /** Allows any custom fields to be set for the active order */ - setDraftOrderCustomFields: Order; - /** Sets the shipping address for a draft Order */ - setDraftOrderShippingAddress: Order; - /** Sets the shipping method by id, which can be obtained with the `eligibleShippingMethodsForDraftOrder` query */ - setDraftOrderShippingMethod: SetOrderShippingMethodResult; - setOrderCustomFields?: Maybe; - settlePayment: SettlePaymentResult; - settleRefund: SettleRefundResult; - transitionFulfillmentToState: TransitionFulfillmentToStateResult; - transitionOrderToState?: Maybe; - transitionPaymentToState: TransitionPaymentToStateResult; - /** Update the active (currently logged-in) Administrator */ - updateActiveAdministrator: Administrator; - /** Update an existing Administrator */ - updateAdministrator: Administrator; - /** Update an existing Asset */ - updateAsset: Asset; - /** Update an existing Channel */ - updateChannel: UpdateChannelResult; - /** Update an existing Collection */ - updateCollection: Collection; - /** Update an existing Country */ - updateCountry: Country; - /** Update an existing Customer */ - updateCustomer: UpdateCustomerResult; - /** Update an existing Address */ - updateCustomerAddress: Address; - /** Update an existing CustomerGroup */ - updateCustomerGroup: CustomerGroup; - updateCustomerNote: HistoryEntry; - /** Update an existing Facet */ - updateFacet: Facet; - /** Update one or more FacetValues */ - updateFacetValues: Array; - updateGlobalSettings: UpdateGlobalSettingsResult; - updateOrderNote: HistoryEntry; - /** Update an existing PaymentMethod */ - updatePaymentMethod: PaymentMethod; - /** Update an existing Product */ - updateProduct: Product; - /** Create a new ProductOption within a ProductOptionGroup */ - updateProductOption: ProductOption; - /** Update an existing ProductOptionGroup */ - updateProductOptionGroup: ProductOptionGroup; - /** Update existing ProductVariants */ - updateProductVariants: Array>; - /** Update multiple existing Products */ - updateProducts: Array; - updatePromotion: UpdatePromotionResult; - /** Update an existing Role */ - updateRole: Role; - /** Update an existing Seller */ - updateSeller: Seller; - /** Update an existing ShippingMethod */ - updateShippingMethod: ShippingMethod; - updateStockLocation: StockLocation; - /** Update an existing Tag */ - updateTag: Tag; - /** Update an existing TaxCategory */ - updateTaxCategory: TaxCategory; - /** Update an existing TaxRate */ - updateTaxRate: TaxRate; - /** Update an existing Zone */ - updateZone: Zone; + /** Add Customers to a CustomerGroup */ + addCustomersToGroup: CustomerGroup; + addFulfillmentToOrder: AddFulfillmentToOrderResult; + /** Adds an item to the draft Order. */ + addItemToDraftOrder: UpdateOrderItemsResult; + /** + * Used to manually create a new Payment against an Order. + * This can be used by an Administrator when an Order is in the ArrangingPayment state. + * + * It is also used when a completed Order + * has been modified (using `modifyOrder`) and the price has increased. The extra payment + * can then be manually arranged by the administrator, and the details used to create a new + * Payment. + */ + addManualPaymentToOrder: AddManualPaymentToOrderResult; + /** Add members to a Zone */ + addMembersToZone: Zone; + addNoteToCustomer: Customer; + addNoteToOrder: Order; + /** Add an OptionGroup to a Product */ + addOptionGroupToProduct: Product; + /** Adjusts a draft OrderLine. If custom fields are defined on the OrderLine entity, a third argument 'customFields' of type `OrderLineCustomFieldsInput` will be available. */ + adjustDraftOrderLine: UpdateOrderItemsResult; + /** Applies the given coupon code to the draft Order */ + applyCouponCodeToDraftOrder: ApplyCouponCodeResult; + /** Assign assets to channel */ + assignAssetsToChannel: Array; + /** Assigns Collections to the specified Channel */ + assignCollectionsToChannel: Array; + /** Assigns Facets to the specified Channel */ + assignFacetsToChannel: Array; + /** Assigns ProductVariants to the specified Channel */ + assignProductVariantsToChannel: Array; + /** Assigns all ProductVariants of Product to the specified Channel */ + assignProductsToChannel: Array; + /** Assigns Promotions to the specified Channel */ + assignPromotionsToChannel: Array; + /** Assign a Role to an Administrator */ + assignRoleToAdministrator: Administrator; + /** Authenticates the user using a named authentication strategy */ + authenticate: AuthenticationResult; + cancelJob: Job; + cancelOrder: CancelOrderResult; + cancelPayment: CancelPaymentResult; + /** Create a new Administrator */ + createAdministrator: Administrator; + /** Create a new Asset */ + createAssets: Array; + /** Create a new Channel */ + createChannel: CreateChannelResult; + /** Create a new Collection */ + createCollection: Collection; + /** Create a new Country */ + createCountry: Country; + /** Create a new Customer. If a password is provided, a new User will also be created an linked to the Customer. */ + createCustomer: CreateCustomerResult; + /** Create a new Address and associate it with the Customer specified by customerId */ + createCustomerAddress: Address; + /** Create a new CustomerGroup */ + createCustomerGroup: CustomerGroup; + /** Creates a draft Order */ + createDraftOrder: Order; + /** Create a new Facet */ + createFacet: Facet; + /** Create one or more FacetValues */ + createFacetValues: Array; + /** Create existing PaymentMethod */ + createPaymentMethod: PaymentMethod; + /** Create a new Product */ + createProduct: Product; + /** Create a new ProductOption within a ProductOptionGroup */ + createProductOption: ProductOption; + /** Create a new ProductOptionGroup */ + createProductOptionGroup: ProductOptionGroup; + /** Create a set of ProductVariants based on the OptionGroups assigned to the given Product */ + createProductVariants: Array>; + createPromotion: CreatePromotionResult; + /** Create a new Role */ + createRole: Role; + /** Create a new Seller */ + createSeller: Seller; + /** Create a new ShippingMethod */ + createShippingMethod: ShippingMethod; + createStockLocation: StockLocation; + /** Create a new Tag */ + createTag: Tag; + /** Create a new TaxCategory */ + createTaxCategory: TaxCategory; + /** Create a new TaxRate */ + createTaxRate: TaxRate; + /** Create a new Zone */ + createZone: Zone; + /** Delete an Administrator */ + deleteAdministrator: DeletionResponse; + /** Delete an Asset */ + deleteAsset: DeletionResponse; + /** Delete multiple Assets */ + deleteAssets: DeletionResponse; + /** Delete a Channel */ + deleteChannel: DeletionResponse; + /** Delete a Collection and all of its descendants */ + deleteCollection: DeletionResponse; + /** Delete multiple Collections and all of their descendants */ + deleteCollections: Array; + /** Delete a Country */ + deleteCountry: DeletionResponse; + /** Delete a Customer */ + deleteCustomer: DeletionResponse; + /** Update an existing Address */ + deleteCustomerAddress: Success; + /** Delete a CustomerGroup */ + deleteCustomerGroup: DeletionResponse; + deleteCustomerNote: DeletionResponse; + /** Deletes a draft Order */ + deleteDraftOrder: DeletionResponse; + /** Delete an existing Facet */ + deleteFacet: DeletionResponse; + /** Delete one or more FacetValues */ + deleteFacetValues: Array; + /** Delete multiple existing Facets */ + deleteFacets: Array; + deleteOrderNote: DeletionResponse; + /** Delete a PaymentMethod */ + deletePaymentMethod: DeletionResponse; + /** Delete a Product */ + deleteProduct: DeletionResponse; + /** Delete a ProductOption */ + deleteProductOption: DeletionResponse; + /** Delete a ProductVariant */ + deleteProductVariant: DeletionResponse; + /** Delete multiple ProductVariants */ + deleteProductVariants: Array; + /** Delete multiple Products */ + deleteProducts: Array; + deletePromotion: DeletionResponse; + /** Delete an existing Role */ + deleteRole: DeletionResponse; + /** Delete a Seller */ + deleteSeller: DeletionResponse; + /** Delete a ShippingMethod */ + deleteShippingMethod: DeletionResponse; + deleteStockLocation: DeletionResponse; + /** Delete an existing Tag */ + deleteTag: DeletionResponse; + /** Deletes a TaxCategory */ + deleteTaxCategory: DeletionResponse; + /** Delete a TaxRate */ + deleteTaxRate: DeletionResponse; + /** Delete a Zone */ + deleteZone: DeletionResponse; + flushBufferedJobs: Success; + importProducts?: Maybe; + /** Authenticates the user using the native authentication strategy. This mutation is an alias for `authenticate({ native: { ... }})` */ + login: NativeAuthenticationResult; + logout: Success; + /** + * Allows an Order to be modified after it has been completed by the Customer. The Order must first + * be in the `Modifying` state. + */ + modifyOrder: ModifyOrderResult; + /** Move a Collection to a different parent or index */ + moveCollection: Collection; + refundOrder: RefundOrderResult; + reindex: Job; + /** Removes Collections from the specified Channel */ + removeCollectionsFromChannel: Array; + /** Removes the given coupon code from the draft Order */ + removeCouponCodeFromDraftOrder?: Maybe; + /** Remove Customers from a CustomerGroup */ + removeCustomersFromGroup: CustomerGroup; + /** Remove an OrderLine from the draft Order */ + removeDraftOrderLine: RemoveOrderItemsResult; + /** Removes Facets from the specified Channel */ + removeFacetsFromChannel: Array; + /** Remove members from a Zone */ + removeMembersFromZone: Zone; + /** Remove an OptionGroup from a Product */ + removeOptionGroupFromProduct: RemoveOptionGroupFromProductResult; + /** Removes ProductVariants from the specified Channel */ + removeProductVariantsFromChannel: Array; + /** Removes all ProductVariants of Product from the specified Channel */ + removeProductsFromChannel: Array; + /** Removes Promotions from the specified Channel */ + removePromotionsFromChannel: Array; + /** Remove all settled jobs in the given queues older than the given date. Returns the number of jobs deleted. */ + removeSettledJobs: Scalars['Int']; + runPendingSearchIndexUpdates: Success; + setCustomerForDraftOrder: SetCustomerForDraftOrderResult; + /** Sets the billing address for a draft Order */ + setDraftOrderBillingAddress: Order; + /** Allows any custom fields to be set for the active order */ + setDraftOrderCustomFields: Order; + /** Sets the shipping address for a draft Order */ + setDraftOrderShippingAddress: Order; + /** Sets the shipping method by id, which can be obtained with the `eligibleShippingMethodsForDraftOrder` query */ + setDraftOrderShippingMethod: SetOrderShippingMethodResult; + setOrderCustomFields?: Maybe; + settlePayment: SettlePaymentResult; + settleRefund: SettleRefundResult; + transitionFulfillmentToState: TransitionFulfillmentToStateResult; + transitionOrderToState?: Maybe; + transitionPaymentToState: TransitionPaymentToStateResult; + /** Update the active (currently logged-in) Administrator */ + updateActiveAdministrator: Administrator; + /** Update an existing Administrator */ + updateAdministrator: Administrator; + /** Update an existing Asset */ + updateAsset: Asset; + /** Update an existing Channel */ + updateChannel: UpdateChannelResult; + /** Update an existing Collection */ + updateCollection: Collection; + /** Update an existing Country */ + updateCountry: Country; + /** Update an existing Customer */ + updateCustomer: UpdateCustomerResult; + /** Update an existing Address */ + updateCustomerAddress: Address; + /** Update an existing CustomerGroup */ + updateCustomerGroup: CustomerGroup; + updateCustomerNote: HistoryEntry; + /** Update an existing Facet */ + updateFacet: Facet; + /** Update one or more FacetValues */ + updateFacetValues: Array; + updateGlobalSettings: UpdateGlobalSettingsResult; + updateOrderNote: HistoryEntry; + /** Update an existing PaymentMethod */ + updatePaymentMethod: PaymentMethod; + /** Update an existing Product */ + updateProduct: Product; + /** Create a new ProductOption within a ProductOptionGroup */ + updateProductOption: ProductOption; + /** Update an existing ProductOptionGroup */ + updateProductOptionGroup: ProductOptionGroup; + /** Update existing ProductVariants */ + updateProductVariants: Array>; + /** Update multiple existing Products */ + updateProducts: Array; + updatePromotion: UpdatePromotionResult; + /** Update an existing Role */ + updateRole: Role; + /** Update an existing Seller */ + updateSeller: Seller; + /** Update an existing ShippingMethod */ + updateShippingMethod: ShippingMethod; + updateStockLocation: StockLocation; + /** Update an existing Tag */ + updateTag: Tag; + /** Update an existing TaxCategory */ + updateTaxCategory: TaxCategory; + /** Update an existing TaxRate */ + updateTaxRate: TaxRate; + /** Update an existing Zone */ + updateZone: Zone; }; + export type MutationAddCustomersToGroupArgs = { - customerGroupId: Scalars['ID']; - customerIds: Array; + customerGroupId: Scalars['ID']; + customerIds: Array; }; + export type MutationAddFulfillmentToOrderArgs = { - input: FulfillOrderInput; + input: FulfillOrderInput; }; + export type MutationAddItemToDraftOrderArgs = { - input: AddItemToDraftOrderInput; - orderId: Scalars['ID']; + input: AddItemToDraftOrderInput; + orderId: Scalars['ID']; }; + export type MutationAddManualPaymentToOrderArgs = { - input: ManualPaymentInput; + input: ManualPaymentInput; }; + export type MutationAddMembersToZoneArgs = { - memberIds: Array; - zoneId: Scalars['ID']; + memberIds: Array; + zoneId: Scalars['ID']; }; + export type MutationAddNoteToCustomerArgs = { - input: AddNoteToCustomerInput; + input: AddNoteToCustomerInput; }; + export type MutationAddNoteToOrderArgs = { - input: AddNoteToOrderInput; + input: AddNoteToOrderInput; }; + export type MutationAddOptionGroupToProductArgs = { - optionGroupId: Scalars['ID']; - productId: Scalars['ID']; + optionGroupId: Scalars['ID']; + productId: Scalars['ID']; }; + export type MutationAdjustDraftOrderLineArgs = { - input: AdjustDraftOrderLineInput; - orderId: Scalars['ID']; + input: AdjustDraftOrderLineInput; + orderId: Scalars['ID']; }; + export type MutationApplyCouponCodeToDraftOrderArgs = { - couponCode: Scalars['String']; - orderId: Scalars['ID']; + couponCode: Scalars['String']; + orderId: Scalars['ID']; }; + export type MutationAssignAssetsToChannelArgs = { - input: AssignAssetsToChannelInput; + input: AssignAssetsToChannelInput; }; + export type MutationAssignCollectionsToChannelArgs = { - input: AssignCollectionsToChannelInput; + input: AssignCollectionsToChannelInput; }; + export type MutationAssignFacetsToChannelArgs = { - input: AssignFacetsToChannelInput; + input: AssignFacetsToChannelInput; }; + export type MutationAssignProductVariantsToChannelArgs = { - input: AssignProductVariantsToChannelInput; + input: AssignProductVariantsToChannelInput; }; + export type MutationAssignProductsToChannelArgs = { - input: AssignProductsToChannelInput; + input: AssignProductsToChannelInput; }; + export type MutationAssignPromotionsToChannelArgs = { - input: AssignPromotionsToChannelInput; + input: AssignPromotionsToChannelInput; }; + export type MutationAssignRoleToAdministratorArgs = { - administratorId: Scalars['ID']; - roleId: Scalars['ID']; + administratorId: Scalars['ID']; + roleId: Scalars['ID']; }; + export type MutationAuthenticateArgs = { - input: AuthenticationInput; - rememberMe?: InputMaybe; + input: AuthenticationInput; + rememberMe?: InputMaybe; }; + export type MutationCancelJobArgs = { - jobId: Scalars['ID']; + jobId: Scalars['ID']; }; + export type MutationCancelOrderArgs = { - input: CancelOrderInput; + input: CancelOrderInput; }; + export type MutationCancelPaymentArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type MutationCreateAdministratorArgs = { - input: CreateAdministratorInput; + input: CreateAdministratorInput; }; + export type MutationCreateAssetsArgs = { - input: Array; + input: Array; }; + export type MutationCreateChannelArgs = { - input: CreateChannelInput; + input: CreateChannelInput; }; + export type MutationCreateCollectionArgs = { - input: CreateCollectionInput; + input: CreateCollectionInput; }; + export type MutationCreateCountryArgs = { - input: CreateCountryInput; + input: CreateCountryInput; }; + export type MutationCreateCustomerArgs = { - input: CreateCustomerInput; - password?: InputMaybe; + input: CreateCustomerInput; + password?: InputMaybe; }; + export type MutationCreateCustomerAddressArgs = { - customerId: Scalars['ID']; - input: CreateAddressInput; + customerId: Scalars['ID']; + input: CreateAddressInput; }; + export type MutationCreateCustomerGroupArgs = { - input: CreateCustomerGroupInput; + input: CreateCustomerGroupInput; }; + export type MutationCreateFacetArgs = { - input: CreateFacetInput; + input: CreateFacetInput; }; + export type MutationCreateFacetValuesArgs = { - input: Array; + input: Array; }; + export type MutationCreatePaymentMethodArgs = { - input: CreatePaymentMethodInput; + input: CreatePaymentMethodInput; }; + export type MutationCreateProductArgs = { - input: CreateProductInput; + input: CreateProductInput; }; + export type MutationCreateProductOptionArgs = { - input: CreateProductOptionInput; + input: CreateProductOptionInput; }; + export type MutationCreateProductOptionGroupArgs = { - input: CreateProductOptionGroupInput; + input: CreateProductOptionGroupInput; }; + export type MutationCreateProductVariantsArgs = { - input: Array; + input: Array; }; + export type MutationCreatePromotionArgs = { - input: CreatePromotionInput; + input: CreatePromotionInput; }; + export type MutationCreateRoleArgs = { - input: CreateRoleInput; + input: CreateRoleInput; }; + export type MutationCreateSellerArgs = { - input: CreateSellerInput; + input: CreateSellerInput; }; + export type MutationCreateShippingMethodArgs = { - input: CreateShippingMethodInput; + input: CreateShippingMethodInput; }; + export type MutationCreateStockLocationArgs = { - input: CreateStockLocationInput; + input: CreateStockLocationInput; }; + export type MutationCreateTagArgs = { - input: CreateTagInput; + input: CreateTagInput; }; + export type MutationCreateTaxCategoryArgs = { - input: CreateTaxCategoryInput; + input: CreateTaxCategoryInput; }; + export type MutationCreateTaxRateArgs = { - input: CreateTaxRateInput; + input: CreateTaxRateInput; }; + export type MutationCreateZoneArgs = { - input: CreateZoneInput; + input: CreateZoneInput; }; + export type MutationDeleteAdministratorArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type MutationDeleteAssetArgs = { - input: DeleteAssetInput; + input: DeleteAssetInput; }; + export type MutationDeleteAssetsArgs = { - input: DeleteAssetsInput; + input: DeleteAssetsInput; }; + export type MutationDeleteChannelArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type MutationDeleteCollectionArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type MutationDeleteCollectionsArgs = { - ids: Array; + ids: Array; }; + export type MutationDeleteCountryArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type MutationDeleteCustomerArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type MutationDeleteCustomerAddressArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type MutationDeleteCustomerGroupArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type MutationDeleteCustomerNoteArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type MutationDeleteDraftOrderArgs = { - orderId: Scalars['ID']; + orderId: Scalars['ID']; }; + export type MutationDeleteFacetArgs = { - force?: InputMaybe; - id: Scalars['ID']; + force?: InputMaybe; + id: Scalars['ID']; }; + export type MutationDeleteFacetValuesArgs = { - force?: InputMaybe; - ids: Array; + force?: InputMaybe; + ids: Array; }; + export type MutationDeleteFacetsArgs = { - force?: InputMaybe; - ids: Array; + force?: InputMaybe; + ids: Array; }; + export type MutationDeleteOrderNoteArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type MutationDeletePaymentMethodArgs = { - force?: InputMaybe; - id: Scalars['ID']; + force?: InputMaybe; + id: Scalars['ID']; }; + export type MutationDeleteProductArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type MutationDeleteProductOptionArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type MutationDeleteProductVariantArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type MutationDeleteProductVariantsArgs = { - ids: Array; + ids: Array; }; + export type MutationDeleteProductsArgs = { - ids: Array; + ids: Array; }; + export type MutationDeletePromotionArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type MutationDeleteRoleArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type MutationDeleteSellerArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type MutationDeleteShippingMethodArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type MutationDeleteStockLocationArgs = { - input: DeleteStockLocationInput; + input: DeleteStockLocationInput; }; + export type MutationDeleteTagArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type MutationDeleteTaxCategoryArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type MutationDeleteTaxRateArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type MutationDeleteZoneArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type MutationFlushBufferedJobsArgs = { - bufferIds?: InputMaybe>; + bufferIds?: InputMaybe>; }; + export type MutationImportProductsArgs = { - csvFile: Scalars['Upload']; + csvFile: Scalars['Upload']; }; + export type MutationLoginArgs = { - password: Scalars['String']; - rememberMe?: InputMaybe; - username: Scalars['String']; + password: Scalars['String']; + rememberMe?: InputMaybe; + username: Scalars['String']; }; + export type MutationModifyOrderArgs = { - input: ModifyOrderInput; + input: ModifyOrderInput; }; + export type MutationMoveCollectionArgs = { - input: MoveCollectionInput; + input: MoveCollectionInput; }; + export type MutationRefundOrderArgs = { - input: RefundOrderInput; + input: RefundOrderInput; }; + export type MutationRemoveCollectionsFromChannelArgs = { - input: RemoveCollectionsFromChannelInput; + input: RemoveCollectionsFromChannelInput; }; + export type MutationRemoveCouponCodeFromDraftOrderArgs = { - couponCode: Scalars['String']; - orderId: Scalars['ID']; + couponCode: Scalars['String']; + orderId: Scalars['ID']; }; + export type MutationRemoveCustomersFromGroupArgs = { - customerGroupId: Scalars['ID']; - customerIds: Array; + customerGroupId: Scalars['ID']; + customerIds: Array; }; + export type MutationRemoveDraftOrderLineArgs = { - orderId: Scalars['ID']; - orderLineId: Scalars['ID']; + orderId: Scalars['ID']; + orderLineId: Scalars['ID']; }; + export type MutationRemoveFacetsFromChannelArgs = { - input: RemoveFacetsFromChannelInput; + input: RemoveFacetsFromChannelInput; }; + export type MutationRemoveMembersFromZoneArgs = { - memberIds: Array; - zoneId: Scalars['ID']; + memberIds: Array; + zoneId: Scalars['ID']; }; + export type MutationRemoveOptionGroupFromProductArgs = { - optionGroupId: Scalars['ID']; - productId: Scalars['ID']; + optionGroupId: Scalars['ID']; + productId: Scalars['ID']; }; + export type MutationRemoveProductVariantsFromChannelArgs = { - input: RemoveProductVariantsFromChannelInput; + input: RemoveProductVariantsFromChannelInput; }; + export type MutationRemoveProductsFromChannelArgs = { - input: RemoveProductsFromChannelInput; + input: RemoveProductsFromChannelInput; }; + export type MutationRemovePromotionsFromChannelArgs = { - input: RemovePromotionsFromChannelInput; + input: RemovePromotionsFromChannelInput; }; + export type MutationRemoveSettledJobsArgs = { - olderThan?: InputMaybe; - queueNames?: InputMaybe>; + olderThan?: InputMaybe; + queueNames?: InputMaybe>; }; + export type MutationSetCustomerForDraftOrderArgs = { - customerId?: InputMaybe; - input?: InputMaybe; - orderId: Scalars['ID']; + customerId?: InputMaybe; + input?: InputMaybe; + orderId: Scalars['ID']; }; + export type MutationSetDraftOrderBillingAddressArgs = { - input: CreateAddressInput; - orderId: Scalars['ID']; + input: CreateAddressInput; + orderId: Scalars['ID']; }; + export type MutationSetDraftOrderCustomFieldsArgs = { - input: UpdateOrderInput; - orderId: Scalars['ID']; + input: UpdateOrderInput; + orderId: Scalars['ID']; }; + export type MutationSetDraftOrderShippingAddressArgs = { - input: CreateAddressInput; - orderId: Scalars['ID']; + input: CreateAddressInput; + orderId: Scalars['ID']; }; + export type MutationSetDraftOrderShippingMethodArgs = { - orderId: Scalars['ID']; - shippingMethodId: Scalars['ID']; + orderId: Scalars['ID']; + shippingMethodId: Scalars['ID']; }; + export type MutationSetOrderCustomFieldsArgs = { - input: UpdateOrderInput; + input: UpdateOrderInput; }; + export type MutationSettlePaymentArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type MutationSettleRefundArgs = { - input: SettleRefundInput; + input: SettleRefundInput; }; + export type MutationTransitionFulfillmentToStateArgs = { - id: Scalars['ID']; - state: Scalars['String']; + id: Scalars['ID']; + state: Scalars['String']; }; + export type MutationTransitionOrderToStateArgs = { - id: Scalars['ID']; - state: Scalars['String']; + id: Scalars['ID']; + state: Scalars['String']; }; + export type MutationTransitionPaymentToStateArgs = { - id: Scalars['ID']; - state: Scalars['String']; + id: Scalars['ID']; + state: Scalars['String']; }; + export type MutationUpdateActiveAdministratorArgs = { - input: UpdateActiveAdministratorInput; + input: UpdateActiveAdministratorInput; }; + export type MutationUpdateAdministratorArgs = { - input: UpdateAdministratorInput; + input: UpdateAdministratorInput; }; + export type MutationUpdateAssetArgs = { - input: UpdateAssetInput; + input: UpdateAssetInput; }; + export type MutationUpdateChannelArgs = { - input: UpdateChannelInput; + input: UpdateChannelInput; }; + export type MutationUpdateCollectionArgs = { - input: UpdateCollectionInput; + input: UpdateCollectionInput; }; + export type MutationUpdateCountryArgs = { - input: UpdateCountryInput; + input: UpdateCountryInput; }; + export type MutationUpdateCustomerArgs = { - input: UpdateCustomerInput; + input: UpdateCustomerInput; }; + export type MutationUpdateCustomerAddressArgs = { - input: UpdateAddressInput; + input: UpdateAddressInput; }; + export type MutationUpdateCustomerGroupArgs = { - input: UpdateCustomerGroupInput; + input: UpdateCustomerGroupInput; }; + export type MutationUpdateCustomerNoteArgs = { - input: UpdateCustomerNoteInput; + input: UpdateCustomerNoteInput; }; + export type MutationUpdateFacetArgs = { - input: UpdateFacetInput; + input: UpdateFacetInput; }; + export type MutationUpdateFacetValuesArgs = { - input: Array; + input: Array; }; + export type MutationUpdateGlobalSettingsArgs = { - input: UpdateGlobalSettingsInput; + input: UpdateGlobalSettingsInput; }; + export type MutationUpdateOrderNoteArgs = { - input: UpdateOrderNoteInput; + input: UpdateOrderNoteInput; }; + export type MutationUpdatePaymentMethodArgs = { - input: UpdatePaymentMethodInput; + input: UpdatePaymentMethodInput; }; + export type MutationUpdateProductArgs = { - input: UpdateProductInput; + input: UpdateProductInput; }; + export type MutationUpdateProductOptionArgs = { - input: UpdateProductOptionInput; + input: UpdateProductOptionInput; }; + export type MutationUpdateProductOptionGroupArgs = { - input: UpdateProductOptionGroupInput; + input: UpdateProductOptionGroupInput; }; + export type MutationUpdateProductVariantsArgs = { - input: Array; + input: Array; }; + export type MutationUpdateProductsArgs = { - input: Array; + input: Array; }; + export type MutationUpdatePromotionArgs = { - input: UpdatePromotionInput; + input: UpdatePromotionInput; }; + export type MutationUpdateRoleArgs = { - input: UpdateRoleInput; + input: UpdateRoleInput; }; + export type MutationUpdateSellerArgs = { - input: UpdateSellerInput; + input: UpdateSellerInput; }; + export type MutationUpdateShippingMethodArgs = { - input: UpdateShippingMethodInput; + input: UpdateShippingMethodInput; }; + export type MutationUpdateStockLocationArgs = { - input: UpdateStockLocationInput; + input: UpdateStockLocationInput; }; + export type MutationUpdateTagArgs = { - input: UpdateTagInput; + input: UpdateTagInput; }; + export type MutationUpdateTaxCategoryArgs = { - input: UpdateTaxCategoryInput; + input: UpdateTaxCategoryInput; }; + export type MutationUpdateTaxRateArgs = { - input: UpdateTaxRateInput; + input: UpdateTaxRateInput; }; + export type MutationUpdateZoneArgs = { - input: UpdateZoneInput; + input: UpdateZoneInput; }; export type NativeAuthInput = { - password: Scalars['String']; - username: Scalars['String']; + password: Scalars['String']; + username: Scalars['String']; }; /** Returned when attempting an operation that relies on the NativeAuthStrategy, if that strategy is not configured. */ export type NativeAuthStrategyError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; }; export type NativeAuthenticationResult = CurrentUser | InvalidCredentialsError | NativeAuthStrategyError; /** Returned when attempting to set a negative OrderLine quantity. */ export type NegativeQuantityError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; }; /** @@ -3219,342 +3318,343 @@ export type NegativeQuantityError = ErrorResult & { * current session. */ export type NoActiveOrderError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; }; /** Returned when a call to modifyOrder fails to specify any changes */ export type NoChangesSpecifiedError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; }; export type Node = { - id: Scalars['ID']; + id: Scalars['ID']; }; /** Returned if an attempting to refund an Order but neither items nor shipping refund was specified */ export type NothingToRefundError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; }; /** Operators for filtering on a list of Number fields */ export type NumberListOperators = { - inList: Scalars['Float']; + inList: Scalars['Float']; }; /** Operators for filtering on a Int or Float field */ export type NumberOperators = { - between?: InputMaybe; - eq?: InputMaybe; - gt?: InputMaybe; - gte?: InputMaybe; - isNull?: InputMaybe; - lt?: InputMaybe; - lte?: InputMaybe; + between?: InputMaybe; + eq?: InputMaybe; + gt?: InputMaybe; + gte?: InputMaybe; + isNull?: InputMaybe; + lt?: InputMaybe; + lte?: InputMaybe; }; export type NumberRange = { - end: Scalars['Float']; - start: Scalars['Float']; + end: Scalars['Float']; + start: Scalars['Float']; }; export type Order = Node & { - /** An order is active as long as the payment process has not been completed */ - active: Scalars['Boolean']; - aggregateOrder?: Maybe; - aggregateOrderId?: Maybe; - billingAddress?: Maybe; - channels: Array; - /** A unique code for the Order */ - code: Scalars['String']; - /** An array of all coupon codes applied to the Order */ - couponCodes: Array; - createdAt: Scalars['DateTime']; - currencyCode: CurrencyCode; - customFields?: Maybe; - customer?: Maybe; - discounts: Array; - fulfillments?: Maybe>; - history: HistoryEntryList; - id: Scalars['ID']; - lines: Array; - modifications: Array; - nextStates: Array; - /** - * The date & time that the Order was placed, i.e. the Customer - * completed the checkout and the Order is no longer "active" - */ - orderPlacedAt?: Maybe; - payments?: Maybe>; - /** Promotions applied to the order. Only gets populated after the payment process has completed. */ - promotions: Array; - sellerOrders?: Maybe>; - shipping: Scalars['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; - fulfillmentLines?: Maybe>; - id: Scalars['ID']; - /** 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; - /** The quantity at the time the Order was placed */ - orderPlacedQuantity: Scalars['Int']; - productVariant: ProductVariant; - /** - * The actual line price, taking into account both item discounts _and_ prorated (proportionally-distributed) - * Order-level discounts. This value is the true economic value of the OrderLine, and is used in tax - * and refund calculations. - */ - proratedLinePrice: Scalars['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; + fulfillmentLines?: Maybe>; + id: Scalars['ID']; + /** 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; + /** The quantity at the time the Order was placed */ + orderPlacedQuantity: Scalars['Int']; + productVariant: ProductVariant; + /** + * The actual line price, taking into account both item discounts _and_ prorated (proportionally-distributed) + * Order-level discounts. This value is the true economic value of the OrderLine, and is used in tax + * and refund calculations. + */ + proratedLinePrice: Scalars['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']; - lines: Array; - note: Scalars['String']; - payment?: Maybe; - priceChange: Scalars['Int']; - refund?: Maybe; - surcharges?: Maybe>; - updatedAt: Scalars['DateTime']; + createdAt: Scalars['DateTime']; + id: Scalars['ID']; + isSettled: Scalars['Boolean']; + lines: Array; + note: Scalars['String']; + payment?: Maybe; + priceChange: Scalars['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']; }; export type OrderModificationLine = { - modification: OrderModification; - modificationId: Scalars['ID']; - orderLine: OrderLine; - orderLineId: Scalars['ID']; - quantity: Scalars['Int']; + modification: OrderModification; + modificationId: Scalars['ID']; + orderLine: OrderLine; + orderLineId: Scalars['ID']; + quantity: Scalars['Int']; }; /** Returned when attempting to modify the contents of an Order that is not in the `Modifying` state. */ export type OrderModificationStateError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; }; export type OrderProcessState = { - name: Scalars['String']; - to: Array; + name: Scalars['String']; + to: Array; }; export type OrderSortParameter = { - aggregateOrderId?: InputMaybe; - code?: InputMaybe; - createdAt?: InputMaybe; - customerLastName?: InputMaybe; - id?: InputMaybe; - orderPlacedAt?: InputMaybe; - shipping?: InputMaybe; - shippingWithTax?: InputMaybe; - state?: InputMaybe; - subTotal?: InputMaybe; - subTotalWithTax?: InputMaybe; - total?: InputMaybe; - totalQuantity?: InputMaybe; - totalWithTax?: InputMaybe; - transactionId?: InputMaybe; - updatedAt?: InputMaybe; + aggregateOrderId?: InputMaybe; + code?: InputMaybe; + createdAt?: InputMaybe; + customerLastName?: InputMaybe; + id?: InputMaybe; + orderPlacedAt?: InputMaybe; + shipping?: InputMaybe; + shippingWithTax?: InputMaybe; + state?: InputMaybe; + subTotal?: InputMaybe; + subTotalWithTax?: InputMaybe; + total?: InputMaybe; + totalQuantity?: InputMaybe; + totalWithTax?: InputMaybe; + transactionId?: InputMaybe; + updatedAt?: InputMaybe; }; /** Returned if there is an error in transitioning the Order state */ export type OrderStateTransitionError = ErrorResult & { - errorCode: ErrorCode; - fromState: Scalars['String']; - message: Scalars['String']; - toState: Scalars['String']; - transitionError: Scalars['String']; + errorCode: ErrorCode; + fromState: Scalars['String']; + message: Scalars['String']; + toState: Scalars['String']; + transitionError: Scalars['String']; }; /** @@ -3562,80 +3662,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; }; /** @@ -3643,42 +3743,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']; }; /** @@ -3714,855 +3814,899 @@ 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']; - /** @deprecated use stockLevels */ - stockAllocated: Scalars['Int']; - stockLevel: Scalars['String']; - stockLevels: Array; - stockMovements: StockMovementList; - /** @deprecated use stockLevels */ - stockOnHand: Scalars['Int']; - taxCategory: TaxCategory; - taxRateApplied: TaxRate; - trackInventory: GlobalFlag; - translations: Array; - updatedAt: Scalars['DateTime']; - useGlobalOutOfStockThreshold: Scalars['Boolean']; + assets: Array; + channels: Array; + createdAt: Scalars['DateTime']; + currencyCode: CurrencyCode; + customFields?: Maybe; + enabled: Scalars['Boolean']; + facetValues: Array; + featuredAsset?: Maybe; + id: Scalars['ID']; + languageCode: LanguageCode; + name: Scalars['String']; + options: Array; + outOfStockThreshold: Scalars['Int']; + price: Scalars['Int']; + priceWithTax: Scalars['Int']; + product: Product; + productId: Scalars['ID']; + sku: Scalars['String']; + /** @deprecated use stockLevels */ + stockAllocated: Scalars['Int']; + stockLevel: Scalars['String']; + stockLevels: Array; + stockMovements: StockMovementList; + /** @deprecated use stockLevels */ + stockOnHand: Scalars['Int']; + taxCategory: TaxCategory; + taxRateApplied: TaxRate; + trackInventory: GlobalFlag; + translations: Array; + updatedAt: Scalars['DateTime']; + useGlobalOutOfStockThreshold: Scalars['Boolean']; }; + export type ProductVariantStockMovementsArgs = { - options?: InputMaybe; + options?: InputMaybe; }; export type ProductVariantFilterParameter = { - createdAt?: InputMaybe; - currencyCode?: InputMaybe; - enabled?: InputMaybe; - id?: InputMaybe; - languageCode?: InputMaybe; - name?: InputMaybe; - outOfStockThreshold?: InputMaybe; - price?: InputMaybe; - priceWithTax?: InputMaybe; - productId?: InputMaybe; - sku?: InputMaybe; - stockAllocated?: InputMaybe; - stockLevel?: InputMaybe; - stockOnHand?: InputMaybe; - trackInventory?: InputMaybe; - updatedAt?: InputMaybe; - useGlobalOutOfStockThreshold?: InputMaybe; + createdAt?: InputMaybe; + currencyCode?: InputMaybe; + enabled?: InputMaybe; + id?: InputMaybe; + languageCode?: InputMaybe; + name?: InputMaybe; + outOfStockThreshold?: InputMaybe; + price?: InputMaybe; + priceWithTax?: InputMaybe; + productId?: InputMaybe; + sku?: InputMaybe; + stockAllocated?: InputMaybe; + stockLevel?: InputMaybe; + stockOnHand?: InputMaybe; + trackInventory?: InputMaybe; + updatedAt?: InputMaybe; + useGlobalOutOfStockThreshold?: InputMaybe; }; export type ProductVariantList = PaginatedList & { - items: Array; - totalItems: Scalars['Int']; + items: Array; + totalItems: Scalars['Int']; }; export type ProductVariantListOptions = { - /** Allows the results to be filtered */ - filter?: InputMaybe; - /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ - filterOperator?: InputMaybe; - /** Skips the first n results, for use in pagination */ - skip?: InputMaybe; - /** Specifies which properties to sort the results by */ - sort?: InputMaybe; - /** Takes n results, for use in pagination */ - take?: InputMaybe; + /** Allows the results to be filtered */ + filter?: InputMaybe; + /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ + filterOperator?: InputMaybe; + /** Skips the first n results, for use in pagination */ + skip?: InputMaybe; + /** Specifies which properties to sort the results by */ + sort?: InputMaybe; + /** Takes n results, for use in pagination */ + take?: InputMaybe; }; export type ProductVariantSortParameter = { - createdAt?: InputMaybe; - id?: InputMaybe; - name?: InputMaybe; - outOfStockThreshold?: InputMaybe; - price?: InputMaybe; - priceWithTax?: InputMaybe; - productId?: InputMaybe; - sku?: InputMaybe; - stockAllocated?: InputMaybe; - stockLevel?: InputMaybe; - stockOnHand?: InputMaybe; - updatedAt?: InputMaybe; + createdAt?: InputMaybe; + id?: InputMaybe; + name?: InputMaybe; + outOfStockThreshold?: InputMaybe; + price?: InputMaybe; + priceWithTax?: InputMaybe; + productId?: InputMaybe; + sku?: InputMaybe; + stockAllocated?: InputMaybe; + stockLevel?: InputMaybe; + stockOnHand?: InputMaybe; + updatedAt?: InputMaybe; }; export type ProductVariantTranslation = { - createdAt: Scalars['DateTime']; - id: Scalars['ID']; - languageCode: LanguageCode; - name: Scalars['String']; - updatedAt: Scalars['DateTime']; + createdAt: Scalars['DateTime']; + id: Scalars['ID']; + languageCode: LanguageCode; + name: Scalars['String']; + updatedAt: Scalars['DateTime']; }; export type ProductVariantTranslationInput = { - customFields?: InputMaybe; - id?: InputMaybe; - languageCode: LanguageCode; - name?: InputMaybe; + customFields?: InputMaybe; + id?: InputMaybe; + languageCode: LanguageCode; + name?: InputMaybe; }; export type Promotion = Node & { - actions: Array; - conditions: Array; - couponCode?: Maybe; - createdAt: Scalars['DateTime']; - customFields?: Maybe; - 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; - stockLocation?: Maybe; - stockLocations: StockLocationList; - tag: Tag; - tags: TagList; - taxCategories: Array; - taxCategory?: Maybe; - taxRate?: Maybe; - taxRates: TaxRateList; - testEligibleShippingMethods: Array; - testShippingMethod: TestShippingMethodResult; - zone?: Maybe; - zones: Array; + activeAdministrator?: Maybe; + activeChannel: Channel; + administrator?: Maybe; + administrators: AdministratorList; + /** Get a single Asset by id */ + asset?: Maybe; + /** Get a list of Assets */ + assets: AssetList; + channel?: Maybe; + channels: Array; + /** Get a Collection either by id or slug. If neither id nor slug is specified, an error will result. */ + collection?: Maybe; + collectionFilters: Array; + collections: CollectionList; + countries: CountryList; + country?: Maybe; + customer?: Maybe; + customerGroup?: Maybe; + customerGroups: CustomerGroupList; + customers: CustomerList; + /** Returns a list of eligible shipping methods for the draft Order */ + eligibleShippingMethodsForDraftOrder: Array; + facet?: Maybe; + facetValues: FacetValueList; + facets: FacetList; + fulfillmentHandlers: Array; + globalSettings: GlobalSettings; + job?: Maybe; + jobBufferSize: Array; + jobQueues: Array; + jobs: JobList; + jobsById: Array; + me?: Maybe; + order?: Maybe; + orders: OrderList; + paymentMethod?: Maybe; + paymentMethodEligibilityCheckers: Array; + paymentMethodHandlers: Array; + paymentMethods: PaymentMethodList; + pendingSearchIndexUpdates: Scalars['Int']; + /** Used for real-time previews of the contents of a Collection */ + previewCollectionVariants: ProductVariantList; + /** Get a Product either by id or slug. If neither id nor slug is specified, an error will result. */ + product?: Maybe; + productOptionGroup?: Maybe; + productOptionGroups: Array; + /** Get a ProductVariant by id */ + productVariant?: Maybe; + /** List ProductVariants either all or for the specific product. */ + productVariants: ProductVariantList; + /** List Products */ + products: ProductList; + promotion?: Maybe; + promotionActions: Array; + promotionConditions: Array; + promotions: PromotionList; + role?: Maybe; + roles: RoleList; + search: SearchResponse; + seller?: Maybe; + sellers: SellerList; + shippingCalculators: Array; + shippingEligibilityCheckers: Array; + shippingMethod?: Maybe; + shippingMethods: ShippingMethodList; + stockLocation?: Maybe; + stockLocations: StockLocationList; + tag: Tag; + tags: TagList; + taxCategories: Array; + taxCategory?: Maybe; + taxRate?: Maybe; + taxRates: TaxRateList; + testEligibleShippingMethods: Array; + testShippingMethod: TestShippingMethodResult; + zone?: Maybe; + zones: Array; }; + export type QueryAdministratorArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type QueryAdministratorsArgs = { - options?: InputMaybe; + options?: InputMaybe; }; + export type QueryAssetArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type QueryAssetsArgs = { - options?: InputMaybe; + options?: InputMaybe; }; + export type QueryChannelArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type QueryCollectionArgs = { - id?: InputMaybe; - slug?: InputMaybe; + id?: InputMaybe; + slug?: InputMaybe; }; + export type QueryCollectionsArgs = { - options?: InputMaybe; + options?: InputMaybe; }; + export type QueryCountriesArgs = { - options?: InputMaybe; + options?: InputMaybe; }; + export type QueryCountryArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type QueryCustomerArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type QueryCustomerGroupArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type QueryCustomerGroupsArgs = { - options?: InputMaybe; + options?: InputMaybe; }; + export type QueryCustomersArgs = { - options?: InputMaybe; + options?: InputMaybe; }; + export type QueryEligibleShippingMethodsForDraftOrderArgs = { - orderId: Scalars['ID']; + orderId: Scalars['ID']; }; + export type QueryFacetArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type QueryFacetValuesArgs = { - options?: InputMaybe; + options?: InputMaybe; }; + export type QueryFacetsArgs = { - options?: InputMaybe; + options?: InputMaybe; }; + export type QueryJobArgs = { - jobId: Scalars['ID']; + jobId: Scalars['ID']; }; + export type QueryJobBufferSizeArgs = { - bufferIds?: InputMaybe>; + bufferIds?: InputMaybe>; }; + export type QueryJobsArgs = { - options?: InputMaybe; + options?: InputMaybe; }; + export type QueryJobsByIdArgs = { - jobIds: Array; + jobIds: Array; }; + export type QueryOrderArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type QueryOrdersArgs = { - options?: InputMaybe; + options?: InputMaybe; }; + export type QueryPaymentMethodArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type QueryPaymentMethodsArgs = { - options?: InputMaybe; + options?: InputMaybe; }; + export type QueryPreviewCollectionVariantsArgs = { - input: PreviewCollectionVariantsInput; - options?: InputMaybe; + input: PreviewCollectionVariantsInput; + options?: InputMaybe; }; + export type QueryProductArgs = { - id?: InputMaybe; - slug?: InputMaybe; + id?: InputMaybe; + slug?: InputMaybe; }; + export type QueryProductOptionGroupArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type QueryProductOptionGroupsArgs = { - filterTerm?: InputMaybe; + filterTerm?: InputMaybe; }; + export type QueryProductVariantArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type QueryProductVariantsArgs = { - options?: InputMaybe; - productId?: InputMaybe; + options?: InputMaybe; + productId?: InputMaybe; }; + export type QueryProductsArgs = { - options?: InputMaybe; + options?: InputMaybe; }; + export type QueryPromotionArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type QueryPromotionsArgs = { - options?: InputMaybe; + options?: InputMaybe; }; + export type QueryRoleArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type QueryRolesArgs = { - options?: InputMaybe; + options?: InputMaybe; }; + export type QuerySearchArgs = { - input: SearchInput; + input: SearchInput; }; + export type QuerySellerArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type QuerySellersArgs = { - options?: InputMaybe; + options?: InputMaybe; }; + export type QueryShippingMethodArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type QueryShippingMethodsArgs = { - options?: InputMaybe; + options?: InputMaybe; }; + export type QueryStockLocationArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type QueryStockLocationsArgs = { - options?: InputMaybe; + options?: InputMaybe; }; + export type QueryTagArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type QueryTagsArgs = { - options?: InputMaybe; + options?: InputMaybe; }; + export type QueryTaxCategoryArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type QueryTaxRateArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type QueryTaxRatesArgs = { - options?: InputMaybe; + options?: InputMaybe; }; + export type QueryTestEligibleShippingMethodsArgs = { - input: TestEligibleShippingMethodsInput; + input: TestEligibleShippingMethodsInput; }; + export type QueryTestShippingMethodArgs = { - input: TestShippingMethodInput; + input: TestShippingMethodInput; }; + export type QueryZoneArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; export type Refund = Node & { - adjustment: Scalars['Int']; - createdAt: Scalars['DateTime']; - id: Scalars['ID']; - items: Scalars['Int']; - lines: Array; - metadata?: Maybe; - method?: Maybe; - 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']; + lines: Array; + metadata?: Maybe; + method?: Maybe; + paymentId: Scalars['ID']; + reason?: Maybe; + shipping: Scalars['Int']; + state: Scalars['String']; + total: Scalars['Int']; + transactionId?: Maybe; + updatedAt: Scalars['DateTime']; }; export type RefundLine = { - orderLine: OrderLine; - orderLineId: Scalars['ID']; - quantity: Scalars['Int']; - refund: Refund; - refundId: Scalars['ID']; + orderLine: OrderLine; + orderLineId: Scalars['ID']; + quantity: Scalars['Int']; + refund: Refund; + refundId: Scalars['ID']; }; export type RefundOrderInput = { - adjustment: Scalars['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']; }; /** @@ -4570,55 +4714,54 @@ 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; @@ -4626,627 +4769,616 @@ 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 SellerFilterParameter = { - createdAt?: InputMaybe; - id?: InputMaybe; - name?: InputMaybe; - updatedAt?: InputMaybe; + createdAt?: InputMaybe; + id?: InputMaybe; + name?: InputMaybe; + updatedAt?: InputMaybe; }; export type SellerList = PaginatedList & { - items: Array; - totalItems: Scalars['Int']; + items: Array; + totalItems: Scalars['Int']; }; export type SellerListOptions = { - /** Allows the results to be filtered */ - filter?: InputMaybe; - /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ - filterOperator?: InputMaybe; - /** Skips the first n results, for use in pagination */ - skip?: InputMaybe; - /** Specifies which properties to sort the results by */ - sort?: InputMaybe; - /** Takes n results, for use in pagination */ - take?: InputMaybe; + /** Allows the results to be filtered */ + filter?: InputMaybe; + /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ + filterOperator?: InputMaybe; + /** Skips the first n results, for use in pagination */ + skip?: InputMaybe; + /** Specifies which properties to sort the results by */ + sort?: InputMaybe; + /** Takes n results, for use in pagination */ + take?: InputMaybe; }; export type SellerSortParameter = { - createdAt?: InputMaybe; - id?: InputMaybe; - name?: InputMaybe; - updatedAt?: InputMaybe; + createdAt?: InputMaybe; + id?: InputMaybe; + name?: InputMaybe; + updatedAt?: InputMaybe; }; export type ServerConfig = { - customFieldConfig: CustomFields; - orderProcess: Array; - permissions: Array; - permittedAssetTypes: Array; + customFieldConfig: CustomFields; + orderProcess: Array; + permissions: Array; + permittedAssetTypes: Array; }; export type SetCustomerForDraftOrderResult = EmailAddressConflictError | Order; -export type SetOrderShippingMethodResult = - | IneligibleShippingMethodError - | NoActiveOrderError - | Order - | OrderModificationError; +export type SetOrderShippingMethodResult = IneligibleShippingMethodError | NoActiveOrderError | Order | OrderModificationError; /** Returned if the Payment settlement fails */ export type SettlePaymentError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; - paymentErrorMessage: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; + paymentErrorMessage: Scalars['String']; }; -export type SettlePaymentResult = - | OrderStateTransitionError - | Payment - | PaymentStateTransitionError - | SettlePaymentError; +export type SettlePaymentResult = OrderStateTransitionError | Payment | PaymentStateTransitionError | SettlePaymentError; export type SettleRefundInput = { - id: Scalars['ID']; - transactionId: Scalars['String']; + id: Scalars['ID']; + transactionId: Scalars['String']; }; export type SettleRefundResult = Refund | RefundStateTransitionError; export type ShippingLine = { - discountedPrice: Scalars['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 StockLevel = Node & { - createdAt: Scalars['DateTime']; - id: Scalars['ID']; - stockAllocated: Scalars['Int']; - stockLocation: StockLocation; - stockLocationId: Scalars['ID']; - stockOnHand: Scalars['Int']; - updatedAt: Scalars['DateTime']; + createdAt: Scalars['DateTime']; + id: Scalars['ID']; + stockAllocated: Scalars['Int']; + stockLocation: StockLocation; + stockLocationId: Scalars['ID']; + stockOnHand: Scalars['Int']; + updatedAt: Scalars['DateTime']; }; export type StockLevelInput = { - stockLocationId: Scalars['ID']; - stockOnHand: Scalars['Int']; + stockLocationId: Scalars['ID']; + stockOnHand: Scalars['Int']; }; export type StockLocation = Node & { - createdAt: Scalars['DateTime']; - customFields?: Maybe; - description: Scalars['String']; - id: Scalars['ID']; - name: Scalars['String']; - updatedAt: Scalars['DateTime']; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + description: Scalars['String']; + id: Scalars['ID']; + name: Scalars['String']; + updatedAt: Scalars['DateTime']; }; export type StockLocationFilterParameter = { - createdAt?: InputMaybe; - description?: InputMaybe; - id?: InputMaybe; - name?: InputMaybe; - updatedAt?: InputMaybe; + createdAt?: InputMaybe; + description?: InputMaybe; + id?: InputMaybe; + name?: InputMaybe; + updatedAt?: InputMaybe; }; export type StockLocationList = PaginatedList & { - items: Array; - totalItems: Scalars['Int']; + items: Array; + totalItems: Scalars['Int']; }; export type StockLocationListOptions = { - /** Allows the results to be filtered */ - filter?: InputMaybe; - /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ - filterOperator?: InputMaybe; - /** Skips the first n results, for use in pagination */ - skip?: InputMaybe; - /** Specifies which properties to sort the results by */ - sort?: InputMaybe; - /** Takes n results, for use in pagination */ - take?: InputMaybe; + /** Allows the results to be filtered */ + filter?: InputMaybe; + /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ + filterOperator?: InputMaybe; + /** Skips the first n results, for use in pagination */ + skip?: InputMaybe; + /** Specifies which properties to sort the results by */ + sort?: InputMaybe; + /** Takes n results, for use in pagination */ + take?: InputMaybe; }; export type StockLocationSortParameter = { - createdAt?: InputMaybe; - description?: InputMaybe; - id?: InputMaybe; - name?: InputMaybe; - updatedAt?: InputMaybe; + createdAt?: InputMaybe; + description?: InputMaybe; + id?: InputMaybe; + name?: InputMaybe; + updatedAt?: InputMaybe; }; export type StockMovement = { - createdAt: Scalars['DateTime']; - id: Scalars['ID']; - productVariant: ProductVariant; - quantity: Scalars['Int']; - type: StockMovementType; - updatedAt: Scalars['DateTime']; + createdAt: Scalars['DateTime']; + id: Scalars['ID']; + productVariant: ProductVariant; + quantity: Scalars['Int']; + type: StockMovementType; + updatedAt: Scalars['DateTime']; }; export type StockMovementItem = Allocation | Cancellation | Release | Return | Sale | StockAdjustment; export type StockMovementList = { - items: Array; - totalItems: Scalars['Int']; + items: Array; + totalItems: Scalars['Int']; }; export type StockMovementListOptions = { - skip?: InputMaybe; - take?: InputMaybe; - type?: InputMaybe; + skip?: InputMaybe; + take?: InputMaybe; + type?: InputMaybe; }; export enum StockMovementType { - ADJUSTMENT = 'ADJUSTMENT', - ALLOCATION = 'ALLOCATION', - CANCELLATION = 'CANCELLATION', - RELEASE = 'RELEASE', - RETURN = 'RETURN', - SALE = 'SALE', + ADJUSTMENT = 'ADJUSTMENT', + ALLOCATION = 'ALLOCATION', + CANCELLATION = 'CANCELLATION', + RELEASE = 'RELEASE', + RETURN = 'RETURN', + SALE = 'SALE' } export type StringCustomFieldConfig = CustomField & { - description?: Maybe>; - internal?: Maybe; - label?: Maybe>; - length?: Maybe; - list: Scalars['Boolean']; - name: Scalars['String']; - nullable?: Maybe; - options?: Maybe>; - pattern?: Maybe; - readonly?: Maybe; - type: Scalars['String']; - ui?: Maybe; + description?: Maybe>; + internal?: Maybe; + label?: Maybe>; + length?: Maybe; + list: Scalars['Boolean']; + name: Scalars['String']; + nullable?: Maybe; + options?: Maybe>; + pattern?: Maybe; + readonly?: Maybe; + type: Scalars['String']; + ui?: Maybe; }; export type StringFieldOption = { - label?: Maybe>; - value: Scalars['String']; + label?: Maybe>; + value: Scalars['String']; }; /** Operators for filtering on a list of String fields */ export type StringListOperators = { - inList: Scalars['String']; + inList: Scalars['String']; }; /** Operators for filtering on a String field */ export type StringOperators = { - contains?: InputMaybe; - eq?: InputMaybe; - in?: InputMaybe>; - isNull?: InputMaybe; - notContains?: InputMaybe; - notEq?: InputMaybe; - notIn?: InputMaybe>; - regex?: InputMaybe; + contains?: InputMaybe; + eq?: InputMaybe; + in?: InputMaybe>; + isNull?: InputMaybe; + notContains?: InputMaybe; + notEq?: InputMaybe; + notIn?: InputMaybe>; + regex?: InputMaybe; }; /** Indicates that an operation succeeded, where we do not want to return any more specific information. */ export type Success = { - success: Scalars['Boolean']; + success: Scalars['Boolean']; }; export type Surcharge = Node & { - createdAt: Scalars['DateTime']; - description: Scalars['String']; - id: Scalars['ID']; - price: Scalars['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; @@ -5256,422 +5388,347 @@ 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; - stockLevels?: InputMaybe>; - stockOnHand?: InputMaybe; - taxCategoryId?: InputMaybe; - trackInventory?: InputMaybe; - translations?: InputMaybe>; - useGlobalOutOfStockThreshold?: InputMaybe; + assetIds?: InputMaybe>; + customFields?: InputMaybe; + enabled?: InputMaybe; + facetValueIds?: InputMaybe>; + featuredAssetId?: InputMaybe; + id: Scalars['ID']; + outOfStockThreshold?: InputMaybe; + price?: InputMaybe; + sku?: InputMaybe; + stockLevels?: InputMaybe>; + stockOnHand?: InputMaybe; + taxCategoryId?: InputMaybe; + trackInventory?: InputMaybe; + translations?: InputMaybe>; + useGlobalOutOfStockThreshold?: InputMaybe; }; export type UpdatePromotionInput = { - actions?: InputMaybe>; - conditions?: InputMaybe>; - couponCode?: InputMaybe; - customFields?: InputMaybe; - enabled?: InputMaybe; - endsAt?: InputMaybe; - id: Scalars['ID']; - 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 UpdateSellerInput = { - customFields?: InputMaybe; - id: Scalars['ID']; - name?: InputMaybe; + customFields?: InputMaybe; + id: Scalars['ID']; + name?: InputMaybe; }; export type UpdateShippingMethodInput = { - calculator?: InputMaybe; - checker?: InputMaybe; - code?: InputMaybe; - customFields?: InputMaybe; - fulfillmentHandler?: InputMaybe; - id: Scalars['ID']; - translations: Array; + calculator?: InputMaybe; + checker?: InputMaybe; + code?: InputMaybe; + customFields?: InputMaybe; + fulfillmentHandler?: InputMaybe; + id: Scalars['ID']; + translations: Array; }; export type UpdateStockLocationInput = { - customFields?: InputMaybe; - description?: InputMaybe; - id: Scalars['ID']; - name?: InputMaybe; + customFields?: InputMaybe; + description?: InputMaybe; + id: Scalars['ID']; + name?: InputMaybe; }; export type UpdateTagInput = { - id: Scalars['ID']; - value?: InputMaybe; + id: Scalars['ID']; + value?: InputMaybe; }; export type UpdateTaxCategoryInput = { - customFields?: InputMaybe; - id: Scalars['ID']; - isDefault?: InputMaybe; - name?: InputMaybe; + customFields?: InputMaybe; + id: Scalars['ID']; + isDefault?: InputMaybe; + name?: InputMaybe; }; export type UpdateTaxRateInput = { - categoryId?: InputMaybe; - customFields?: InputMaybe; - customerGroupId?: InputMaybe; - enabled?: InputMaybe; - id: Scalars['ID']; - name?: InputMaybe; - value?: InputMaybe; - zoneId?: InputMaybe; + categoryId?: InputMaybe; + customFields?: InputMaybe; + customerGroupId?: InputMaybe; + enabled?: InputMaybe; + id: Scalars['ID']; + name?: InputMaybe; + value?: InputMaybe; + zoneId?: InputMaybe; }; export type UpdateZoneInput = { - customFields?: InputMaybe; - id: Scalars['ID']; - name?: InputMaybe; + customFields?: InputMaybe; + id: Scalars['ID']; + name?: InputMaybe; }; export type User = Node & { - authenticationMethods: Array; - createdAt: Scalars['DateTime']; - customFields?: Maybe; - id: Scalars['ID']; - identifier: Scalars['String']; - lastLogin?: Maybe; - roles: Array; - updatedAt: Scalars['DateTime']; - verified: Scalars['Boolean']; + authenticationMethods: Array; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + id: Scalars['ID']; + identifier: Scalars['String']; + lastLogin?: Maybe; + roles: Array; + updatedAt: Scalars['DateTime']; + verified: Scalars['Boolean']; }; export type Zone = Node & { - createdAt: Scalars['DateTime']; - customFields?: Maybe; - id: Scalars['ID']; - members: Array; - name: Scalars['String']; - updatedAt: Scalars['DateTime']; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + id: Scalars['ID']; + members: Array; + name: Scalars['String']; + updatedAt: Scalars['DateTime']; }; -export type 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 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 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 RefundFragment = { - id: string; - state: string; - items: number; - transactionId?: string | null; - shipping: number; - total: number; - metadata?: any | 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 RefundFragment = { id: string, state: string, items: number, transactionId?: string | null, shipping: number, total: number, metadata?: any | null }; export type RefundOrderMutationVariables = Exact<{ - input: RefundOrderInput; + 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 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 OrderQueryVariables = Exact<{ - id: Scalars['ID']; + id: Scalars['ID']; }>; -export type OrderQuery = { - order?: { - 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 OrderQuery = { order?: { 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 CreateChannelMutationVariables = Exact<{ - input: CreateChannelInput; + input: CreateChannelInput; }>; -export type CreateChannelMutation = { - createChannel: - | { id: string; code: string; token: string; currencyCode: CurrencyCode } - | { errorCode: ErrorCode; message: string }; -}; + +export type CreateChannelMutation = { createChannel: { id: string, code: string, token: string, currencyCode: CurrencyCode } | { errorCode: ErrorCode, message: string } }; diff --git a/packages/payments-plugin/e2e/graphql/generated-shop-types.ts b/packages/payments-plugin/e2e/graphql/generated-shop-types.ts index 771ba42ba5..782c0539ee 100644 --- a/packages/payments-plugin/e2e/graphql/generated-shop-types.ts +++ b/packages/payments-plugin/e2e/graphql/generated-shop-types.ts @@ -6,210 +6,200 @@ export type MakeOptional = Omit & { [SubKey in K]?: export type MakeMaybe = Omit & { [SubKey in K]: Maybe }; /** All built-in and custom scalars, mapped to their actual values */ export type Scalars = { - ID: string; - String: string; - Boolean: boolean; - Int: number; - Float: number; - /** 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']; - data?: Maybe; - description: Scalars['String']; - type: AdjustmentType; + adjustmentSource: Scalars['String']; + amount: Scalars['Int']; + data?: Maybe; + description: Scalars['String']; + type: AdjustmentType; }; export enum AdjustmentType { - DISTRIBUTED_ORDER_PROMOTION = 'DISTRIBUTED_ORDER_PROMOTION', - OTHER = 'OTHER', - PROMOTION = 'PROMOTION', + DISTRIBUTED_ORDER_PROMOTION = 'DISTRIBUTED_ORDER_PROMOTION', + OTHER = 'OTHER', + PROMOTION = 'PROMOTION' } /** Returned when attempting to set the Customer for an Order when already logged in. */ export type AlreadyLoggedInError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; }; -export type ApplyCouponCodeResult = - | CouponCodeExpiredError - | CouponCodeInvalidError - | CouponCodeLimitError - | Order; +export type ApplyCouponCodeResult = CouponCodeExpiredError | CouponCodeInvalidError | CouponCodeLimitError | Order; export type Asset = Node & { - createdAt: Scalars['DateTime']; - customFields?: Maybe; - fileSize: Scalars['Int']; - focalPoint?: Maybe; - height: Scalars['Int']; - id: Scalars['ID']; - mimeType: Scalars['String']; - name: Scalars['String']; - preview: Scalars['String']; - source: Scalars['String']; - tags: Array; - type: AssetType; - updatedAt: Scalars['DateTime']; - width: Scalars['Int']; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + fileSize: Scalars['Int']; + focalPoint?: Maybe; + height: Scalars['Int']; + id: Scalars['ID']; + mimeType: Scalars['String']; + name: Scalars['String']; + preview: Scalars['String']; + source: Scalars['String']; + tags: Array; + type: AssetType; + updatedAt: Scalars['DateTime']; + width: Scalars['Int']; }; export type AssetList = PaginatedList & { - items: Array; - totalItems: Scalars['Int']; + items: Array; + totalItems: Scalars['Int']; }; export enum AssetType { - BINARY = 'BINARY', - IMAGE = 'IMAGE', - VIDEO = 'VIDEO', + BINARY = 'BINARY', + IMAGE = 'IMAGE', + VIDEO = 'VIDEO' } export type AuthenticationInput = { - native?: InputMaybe; + native?: InputMaybe; }; export type AuthenticationMethod = Node & { - createdAt: Scalars['DateTime']; - id: Scalars['ID']; - strategy: Scalars['String']; - updatedAt: Scalars['DateTime']; + createdAt: Scalars['DateTime']; + id: Scalars['ID']; + strategy: Scalars['String']; + updatedAt: Scalars['DateTime']; }; export type AuthenticationResult = CurrentUser | InvalidCredentialsError | NotVerifiedError; export type BooleanCustomFieldConfig = CustomField & { - description?: Maybe>; - internal?: Maybe; - label?: Maybe>; - list: Scalars['Boolean']; - name: Scalars['String']; - nullable?: Maybe; - readonly?: Maybe; - type: Scalars['String']; - ui?: Maybe; + description?: Maybe>; + internal?: Maybe; + label?: Maybe>; + list: Scalars['Boolean']; + name: Scalars['String']; + nullable?: Maybe; + readonly?: Maybe; + type: Scalars['String']; + ui?: Maybe; }; /** Operators for filtering on a list of Boolean fields */ export type BooleanListOperators = { - inList: Scalars['Boolean']; + inList: Scalars['Boolean']; }; /** Operators for filtering on a Boolean field */ export type BooleanOperators = { - eq?: InputMaybe; - isNull?: InputMaybe; + eq?: InputMaybe; + isNull?: InputMaybe; }; export type Channel = Node & { - code: Scalars['String']; - createdAt: Scalars['DateTime']; - 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; }; /** @@ -217,142 +207,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; }; /** @@ -362,446 +352,440 @@ export type CreateCustomerInput = { * @docsCategory common */ export enum CurrencyCode { - /** United Arab Emirates dirham */ - AED = 'AED', - /** Afghan afghani */ - AFN = 'AFN', - /** Albanian lek */ - ALL = 'ALL', - /** Armenian dram */ - AMD = 'AMD', - /** Netherlands Antillean guilder */ - ANG = 'ANG', - /** Angolan kwanza */ - AOA = 'AOA', - /** Argentine peso */ - ARS = 'ARS', - /** Australian dollar */ - AUD = 'AUD', - /** Aruban florin */ - AWG = 'AWG', - /** Azerbaijani manat */ - AZN = 'AZN', - /** Bosnia and Herzegovina convertible mark */ - BAM = 'BAM', - /** Barbados dollar */ - BBD = 'BBD', - /** Bangladeshi taka */ - BDT = 'BDT', - /** Bulgarian lev */ - BGN = 'BGN', - /** Bahraini dinar */ - BHD = 'BHD', - /** Burundian franc */ - BIF = 'BIF', - /** Bermudian dollar */ - BMD = 'BMD', - /** Brunei dollar */ - BND = 'BND', - /** Boliviano */ - BOB = 'BOB', - /** Brazilian real */ - BRL = 'BRL', - /** Bahamian dollar */ - BSD = 'BSD', - /** Bhutanese ngultrum */ - BTN = 'BTN', - /** Botswana pula */ - BWP = 'BWP', - /** Belarusian ruble */ - BYN = 'BYN', - /** Belize dollar */ - BZD = 'BZD', - /** Canadian dollar */ - CAD = 'CAD', - /** Congolese franc */ - CDF = 'CDF', - /** Swiss franc */ - CHF = 'CHF', - /** Chilean peso */ - CLP = 'CLP', - /** Renminbi (Chinese) yuan */ - CNY = 'CNY', - /** Colombian peso */ - COP = 'COP', - /** Costa Rican colon */ - CRC = 'CRC', - /** Cuban convertible peso */ - CUC = 'CUC', - /** Cuban peso */ - CUP = 'CUP', - /** Cape Verde escudo */ - CVE = 'CVE', - /** Czech koruna */ - CZK = 'CZK', - /** Djiboutian franc */ - DJF = 'DJF', - /** Danish krone */ - DKK = 'DKK', - /** Dominican peso */ - DOP = 'DOP', - /** Algerian dinar */ - DZD = 'DZD', - /** Egyptian pound */ - EGP = 'EGP', - /** Eritrean nakfa */ - ERN = 'ERN', - /** Ethiopian birr */ - ETB = 'ETB', - /** Euro */ - EUR = 'EUR', - /** Fiji dollar */ - FJD = 'FJD', - /** Falkland Islands pound */ - FKP = 'FKP', - /** Pound sterling */ - GBP = 'GBP', - /** Georgian lari */ - GEL = 'GEL', - /** Ghanaian cedi */ - GHS = 'GHS', - /** Gibraltar pound */ - GIP = 'GIP', - /** Gambian dalasi */ - GMD = 'GMD', - /** Guinean franc */ - GNF = 'GNF', - /** Guatemalan quetzal */ - GTQ = 'GTQ', - /** Guyanese dollar */ - GYD = 'GYD', - /** Hong Kong dollar */ - HKD = 'HKD', - /** Honduran lempira */ - HNL = 'HNL', - /** Croatian kuna */ - HRK = 'HRK', - /** Haitian gourde */ - HTG = 'HTG', - /** Hungarian forint */ - HUF = 'HUF', - /** Indonesian rupiah */ - IDR = 'IDR', - /** Israeli new shekel */ - ILS = 'ILS', - /** Indian rupee */ - INR = 'INR', - /** Iraqi dinar */ - IQD = 'IQD', - /** Iranian rial */ - IRR = 'IRR', - /** Icelandic króna */ - ISK = 'ISK', - /** Jamaican dollar */ - JMD = 'JMD', - /** Jordanian dinar */ - JOD = 'JOD', - /** Japanese yen */ - JPY = 'JPY', - /** Kenyan shilling */ - KES = 'KES', - /** Kyrgyzstani som */ - KGS = 'KGS', - /** Cambodian riel */ - KHR = 'KHR', - /** Comoro franc */ - KMF = 'KMF', - /** North Korean won */ - KPW = 'KPW', - /** South Korean won */ - KRW = 'KRW', - /** Kuwaiti dinar */ - KWD = 'KWD', - /** Cayman Islands dollar */ - KYD = 'KYD', - /** Kazakhstani tenge */ - KZT = 'KZT', - /** Lao kip */ - LAK = 'LAK', - /** Lebanese pound */ - LBP = 'LBP', - /** Sri Lankan rupee */ - LKR = 'LKR', - /** Liberian dollar */ - LRD = 'LRD', - /** Lesotho loti */ - LSL = 'LSL', - /** Libyan dinar */ - LYD = 'LYD', - /** Moroccan dirham */ - MAD = 'MAD', - /** Moldovan leu */ - MDL = 'MDL', - /** Malagasy ariary */ - MGA = 'MGA', - /** Macedonian denar */ - MKD = 'MKD', - /** Myanmar kyat */ - MMK = 'MMK', - /** Mongolian tögrög */ - MNT = 'MNT', - /** Macanese pataca */ - MOP = 'MOP', - /** Mauritanian ouguiya */ - MRU = 'MRU', - /** Mauritian rupee */ - MUR = 'MUR', - /** Maldivian rufiyaa */ - MVR = 'MVR', - /** Malawian kwacha */ - MWK = 'MWK', - /** Mexican peso */ - MXN = 'MXN', - /** Malaysian ringgit */ - MYR = 'MYR', - /** Mozambican metical */ - MZN = 'MZN', - /** Namibian dollar */ - NAD = 'NAD', - /** Nigerian naira */ - NGN = 'NGN', - /** Nicaraguan córdoba */ - NIO = 'NIO', - /** Norwegian krone */ - NOK = 'NOK', - /** Nepalese rupee */ - NPR = 'NPR', - /** New Zealand dollar */ - NZD = 'NZD', - /** Omani rial */ - OMR = 'OMR', - /** Panamanian balboa */ - PAB = 'PAB', - /** Peruvian sol */ - PEN = 'PEN', - /** Papua New Guinean kina */ - PGK = 'PGK', - /** Philippine peso */ - PHP = 'PHP', - /** Pakistani rupee */ - PKR = 'PKR', - /** Polish złoty */ - PLN = 'PLN', - /** Paraguayan guaraní */ - PYG = 'PYG', - /** Qatari riyal */ - QAR = 'QAR', - /** Romanian leu */ - RON = 'RON', - /** Serbian dinar */ - RSD = 'RSD', - /** Russian ruble */ - RUB = 'RUB', - /** Rwandan franc */ - RWF = 'RWF', - /** Saudi riyal */ - SAR = 'SAR', - /** Solomon Islands dollar */ - SBD = 'SBD', - /** Seychelles rupee */ - SCR = 'SCR', - /** Sudanese pound */ - SDG = 'SDG', - /** Swedish krona/kronor */ - SEK = 'SEK', - /** Singapore dollar */ - SGD = 'SGD', - /** Saint Helena pound */ - SHP = 'SHP', - /** Sierra Leonean leone */ - SLL = 'SLL', - /** Somali shilling */ - SOS = 'SOS', - /** Surinamese dollar */ - SRD = 'SRD', - /** South Sudanese pound */ - SSP = 'SSP', - /** São Tomé and Príncipe dobra */ - STN = 'STN', - /** Salvadoran colón */ - SVC = 'SVC', - /** Syrian pound */ - SYP = 'SYP', - /** Swazi lilangeni */ - SZL = 'SZL', - /** Thai baht */ - THB = 'THB', - /** Tajikistani somoni */ - TJS = 'TJS', - /** Turkmenistan manat */ - TMT = 'TMT', - /** Tunisian dinar */ - TND = 'TND', - /** Tongan paʻanga */ - TOP = 'TOP', - /** Turkish lira */ - TRY = 'TRY', - /** Trinidad and Tobago dollar */ - TTD = 'TTD', - /** New Taiwan dollar */ - TWD = 'TWD', - /** Tanzanian shilling */ - TZS = 'TZS', - /** Ukrainian hryvnia */ - UAH = 'UAH', - /** Ugandan shilling */ - UGX = 'UGX', - /** United States dollar */ - USD = 'USD', - /** Uruguayan peso */ - UYU = 'UYU', - /** Uzbekistan som */ - UZS = 'UZS', - /** Venezuelan bolívar soberano */ - VES = 'VES', - /** Vietnamese đồng */ - VND = 'VND', - /** Vanuatu vatu */ - VUV = 'VUV', - /** Samoan tala */ - WST = 'WST', - /** CFA franc BEAC */ - XAF = 'XAF', - /** East Caribbean dollar */ - XCD = 'XCD', - /** CFA franc BCEAO */ - XOF = 'XOF', - /** CFP franc (franc Pacifique) */ - XPF = 'XPF', - /** Yemeni rial */ - YER = 'YER', - /** South African rand */ - ZAR = 'ZAR', - /** Zambian kwacha */ - ZMW = 'ZMW', - /** Zimbabwean dollar */ - ZWL = 'ZWL', + /** United Arab Emirates dirham */ + AED = 'AED', + /** Afghan afghani */ + AFN = 'AFN', + /** Albanian lek */ + ALL = 'ALL', + /** Armenian dram */ + AMD = 'AMD', + /** Netherlands Antillean guilder */ + ANG = 'ANG', + /** Angolan kwanza */ + AOA = 'AOA', + /** Argentine peso */ + ARS = 'ARS', + /** Australian dollar */ + AUD = 'AUD', + /** Aruban florin */ + AWG = 'AWG', + /** Azerbaijani manat */ + AZN = 'AZN', + /** Bosnia and Herzegovina convertible mark */ + BAM = 'BAM', + /** Barbados dollar */ + BBD = 'BBD', + /** Bangladeshi taka */ + BDT = 'BDT', + /** Bulgarian lev */ + BGN = 'BGN', + /** Bahraini dinar */ + BHD = 'BHD', + /** Burundian franc */ + BIF = 'BIF', + /** Bermudian dollar */ + BMD = 'BMD', + /** Brunei dollar */ + BND = 'BND', + /** Boliviano */ + BOB = 'BOB', + /** Brazilian real */ + BRL = 'BRL', + /** Bahamian dollar */ + BSD = 'BSD', + /** Bhutanese ngultrum */ + BTN = 'BTN', + /** Botswana pula */ + BWP = 'BWP', + /** Belarusian ruble */ + BYN = 'BYN', + /** Belize dollar */ + BZD = 'BZD', + /** Canadian dollar */ + CAD = 'CAD', + /** Congolese franc */ + CDF = 'CDF', + /** Swiss franc */ + CHF = 'CHF', + /** Chilean peso */ + CLP = 'CLP', + /** Renminbi (Chinese) yuan */ + CNY = 'CNY', + /** Colombian peso */ + COP = 'COP', + /** Costa Rican colon */ + CRC = 'CRC', + /** Cuban convertible peso */ + CUC = 'CUC', + /** Cuban peso */ + CUP = 'CUP', + /** Cape Verde escudo */ + CVE = 'CVE', + /** Czech koruna */ + CZK = 'CZK', + /** Djiboutian franc */ + DJF = 'DJF', + /** Danish krone */ + DKK = 'DKK', + /** Dominican peso */ + DOP = 'DOP', + /** Algerian dinar */ + DZD = 'DZD', + /** Egyptian pound */ + EGP = 'EGP', + /** Eritrean nakfa */ + ERN = 'ERN', + /** Ethiopian birr */ + ETB = 'ETB', + /** Euro */ + EUR = 'EUR', + /** Fiji dollar */ + FJD = 'FJD', + /** Falkland Islands pound */ + FKP = 'FKP', + /** Pound sterling */ + GBP = 'GBP', + /** Georgian lari */ + GEL = 'GEL', + /** Ghanaian cedi */ + GHS = 'GHS', + /** Gibraltar pound */ + GIP = 'GIP', + /** Gambian dalasi */ + GMD = 'GMD', + /** Guinean franc */ + GNF = 'GNF', + /** Guatemalan quetzal */ + GTQ = 'GTQ', + /** Guyanese dollar */ + GYD = 'GYD', + /** Hong Kong dollar */ + HKD = 'HKD', + /** Honduran lempira */ + HNL = 'HNL', + /** Croatian kuna */ + HRK = 'HRK', + /** Haitian gourde */ + HTG = 'HTG', + /** Hungarian forint */ + HUF = 'HUF', + /** Indonesian rupiah */ + IDR = 'IDR', + /** Israeli new shekel */ + ILS = 'ILS', + /** Indian rupee */ + INR = 'INR', + /** Iraqi dinar */ + IQD = 'IQD', + /** Iranian rial */ + IRR = 'IRR', + /** Icelandic króna */ + ISK = 'ISK', + /** Jamaican dollar */ + JMD = 'JMD', + /** Jordanian dinar */ + JOD = 'JOD', + /** Japanese yen */ + JPY = 'JPY', + /** Kenyan shilling */ + KES = 'KES', + /** Kyrgyzstani som */ + KGS = 'KGS', + /** Cambodian riel */ + KHR = 'KHR', + /** Comoro franc */ + KMF = 'KMF', + /** North Korean won */ + KPW = 'KPW', + /** South Korean won */ + KRW = 'KRW', + /** Kuwaiti dinar */ + KWD = 'KWD', + /** Cayman Islands dollar */ + KYD = 'KYD', + /** Kazakhstani tenge */ + KZT = 'KZT', + /** Lao kip */ + LAK = 'LAK', + /** Lebanese pound */ + LBP = 'LBP', + /** Sri Lankan rupee */ + LKR = 'LKR', + /** Liberian dollar */ + LRD = 'LRD', + /** Lesotho loti */ + LSL = 'LSL', + /** Libyan dinar */ + LYD = 'LYD', + /** Moroccan dirham */ + MAD = 'MAD', + /** Moldovan leu */ + MDL = 'MDL', + /** Malagasy ariary */ + MGA = 'MGA', + /** Macedonian denar */ + MKD = 'MKD', + /** Myanmar kyat */ + MMK = 'MMK', + /** Mongolian tögrög */ + MNT = 'MNT', + /** Macanese pataca */ + MOP = 'MOP', + /** Mauritanian ouguiya */ + MRU = 'MRU', + /** Mauritian rupee */ + MUR = 'MUR', + /** Maldivian rufiyaa */ + MVR = 'MVR', + /** Malawian kwacha */ + MWK = 'MWK', + /** Mexican peso */ + MXN = 'MXN', + /** Malaysian ringgit */ + MYR = 'MYR', + /** Mozambican metical */ + MZN = 'MZN', + /** Namibian dollar */ + NAD = 'NAD', + /** Nigerian naira */ + NGN = 'NGN', + /** Nicaraguan córdoba */ + NIO = 'NIO', + /** Norwegian krone */ + NOK = 'NOK', + /** Nepalese rupee */ + NPR = 'NPR', + /** New Zealand dollar */ + NZD = 'NZD', + /** Omani rial */ + OMR = 'OMR', + /** Panamanian balboa */ + PAB = 'PAB', + /** Peruvian sol */ + PEN = 'PEN', + /** Papua New Guinean kina */ + PGK = 'PGK', + /** Philippine peso */ + PHP = 'PHP', + /** Pakistani rupee */ + PKR = 'PKR', + /** Polish złoty */ + PLN = 'PLN', + /** Paraguayan guaraní */ + PYG = 'PYG', + /** Qatari riyal */ + QAR = 'QAR', + /** Romanian leu */ + RON = 'RON', + /** Serbian dinar */ + RSD = 'RSD', + /** Russian ruble */ + RUB = 'RUB', + /** Rwandan franc */ + RWF = 'RWF', + /** Saudi riyal */ + SAR = 'SAR', + /** Solomon Islands dollar */ + SBD = 'SBD', + /** Seychelles rupee */ + SCR = 'SCR', + /** Sudanese pound */ + SDG = 'SDG', + /** Swedish krona/kronor */ + SEK = 'SEK', + /** Singapore dollar */ + SGD = 'SGD', + /** Saint Helena pound */ + SHP = 'SHP', + /** Sierra Leonean leone */ + SLL = 'SLL', + /** Somali shilling */ + SOS = 'SOS', + /** Surinamese dollar */ + SRD = 'SRD', + /** South Sudanese pound */ + SSP = 'SSP', + /** São Tomé and Príncipe dobra */ + STN = 'STN', + /** Salvadoran colón */ + SVC = 'SVC', + /** Syrian pound */ + SYP = 'SYP', + /** Swazi lilangeni */ + SZL = 'SZL', + /** Thai baht */ + THB = 'THB', + /** Tajikistani somoni */ + TJS = 'TJS', + /** Turkmenistan manat */ + TMT = 'TMT', + /** Tunisian dinar */ + TND = 'TND', + /** Tongan paʻanga */ + TOP = 'TOP', + /** Turkish lira */ + TRY = 'TRY', + /** Trinidad and Tobago dollar */ + TTD = 'TTD', + /** New Taiwan dollar */ + TWD = 'TWD', + /** Tanzanian shilling */ + TZS = 'TZS', + /** Ukrainian hryvnia */ + UAH = 'UAH', + /** Ugandan shilling */ + UGX = 'UGX', + /** United States dollar */ + USD = 'USD', + /** Uruguayan peso */ + UYU = 'UYU', + /** Uzbekistan som */ + UZS = 'UZS', + /** Venezuelan bolívar soberano */ + VES = 'VES', + /** Vietnamese đồng */ + VND = 'VND', + /** Vanuatu vatu */ + VUV = 'VUV', + /** Samoan tala */ + WST = 'WST', + /** CFA franc BEAC */ + XAF = 'XAF', + /** East Caribbean dollar */ + XCD = 'XCD', + /** CFA franc BCEAO */ + XOF = 'XOF', + /** CFP franc (franc Pacifique) */ + XPF = 'XPF', + /** Yemeni rial */ + YER = 'YER', + /** South African rand */ + ZAR = 'ZAR', + /** Zambian kwacha */ + ZMW = 'ZMW', + /** Zimbabwean dollar */ + ZWL = 'ZWL' } export type CurrentUser = { - channels: Array; - id: Scalars['ID']; - identifier: Scalars['String']; + channels: Array; + id: Scalars['ID']; + identifier: Scalars['String']; }; export type CurrentUserChannel = { - code: Scalars['String']; - id: Scalars['ID']; - permissions: Array; - token: Scalars['String']; + code: Scalars['String']; + id: Scalars['ID']; + permissions: Array; + token: Scalars['String']; }; export type CustomField = { - description?: Maybe>; - internal?: Maybe; - label?: Maybe>; - list: Scalars['Boolean']; - name: Scalars['String']; - nullable?: Maybe; - readonly?: Maybe; - type: Scalars['String']; - ui?: Maybe; -}; - -export type CustomFieldConfig = - | BooleanCustomFieldConfig - | DateTimeCustomFieldConfig - | FloatCustomFieldConfig - | IntCustomFieldConfig - | LocaleStringCustomFieldConfig - | 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']; }; /** @@ -809,148 +793,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']; }; /** @@ -962,8 +946,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>; }; /** @@ -971,138 +955,138 @@ export type FacetValueFilterInput = { * by the search, and in what quantity. */ export type FacetValueResult = { - count: Scalars['Int']; - facetValue: FacetValue; + count: Scalars['Int']; + facetValue: FacetValue; }; export type FacetValueTranslation = { - createdAt: Scalars['DateTime']; - id: Scalars['ID']; - languageCode: LanguageCode; - name: Scalars['String']; - updatedAt: Scalars['DateTime']; + createdAt: Scalars['DateTime']; + id: Scalars['ID']; + languageCode: LanguageCode; + name: Scalars['String']; + updatedAt: Scalars['DateTime']; }; export type FloatCustomFieldConfig = CustomField & { - description?: Maybe>; - internal?: Maybe; - label?: Maybe>; - list: Scalars['Boolean']; - max?: Maybe; - min?: Maybe; - name: Scalars['String']; - nullable?: Maybe; - readonly?: Maybe; - step?: Maybe; - type: Scalars['String']; - ui?: Maybe; + description?: Maybe>; + internal?: Maybe; + label?: Maybe>; + list: Scalars['Boolean']; + max?: Maybe; + min?: Maybe; + name: Scalars['String']; + nullable?: Maybe; + readonly?: Maybe; + step?: Maybe; + type: Scalars['String']; + ui?: Maybe; }; export type Fulfillment = Node & { - createdAt: Scalars['DateTime']; - customFields?: Maybe; - id: Scalars['ID']; - lines: Array; - method: Scalars['String']; - state: Scalars['String']; - /** @deprecated Use the `lines` field instead */ - summary: Array; - trackingCode?: Maybe; - updatedAt: Scalars['DateTime']; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + id: Scalars['ID']; + lines: Array; + method: Scalars['String']; + state: Scalars['String']; + /** @deprecated Use the `lines` field instead */ + summary: Array; + trackingCode?: Maybe; + updatedAt: Scalars['DateTime']; }; export type FulfillmentLine = { - fulfillment: Fulfillment; - fulfillmentId: Scalars['ID']; - orderLine: OrderLine; - orderLineId: Scalars['ID']; - quantity: Scalars['Int']; + fulfillment: Fulfillment; + fulfillmentId: Scalars['ID']; + orderLine: OrderLine; + orderLineId: Scalars['ID']; + quantity: Scalars['Int']; }; export enum GlobalFlag { - FALSE = 'FALSE', - INHERIT = 'INHERIT', - TRUE = 'TRUE', + FALSE = 'FALSE', + INHERIT = 'INHERIT', + TRUE = 'TRUE' } 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>; }; /** @@ -1110,8 +1094,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']; }; /** @@ -1119,51 +1103,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']; }; /** @@ -1176,578 +1160,600 @@ 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. - * An Order can have multiple shipping methods, in which case you can pass an array of ids. In this case, - * you should configure a custom ShippingLineAssignmentStrategy in order to know which OrderLines each - * shipping method will apply to. - */ - setOrderShippingMethod: SetOrderShippingMethodResult; - /** Transitions an Order to a new state. Valid next states can be found by querying `nextOrderStates` */ - transitionOrderToState?: Maybe; - /** Update an existing Customer */ - updateCustomer: Customer; - /** Update an existing Address */ - updateCustomerAddress: Address; - /** - * Confirm the update of the emailAddress with the provided token, which has been generated by the - * `requestUpdateCustomerEmailAddress` mutation. - */ - updateCustomerEmailAddress: UpdateCustomerEmailAddressResult; - /** Update the password of the active Customer */ - updateCustomerPassword: UpdateCustomerPasswordResult; - /** - * Verify a Customer email address with the token sent to that address. Only applicable if `authOptions.requireVerification` is set to true. - * - * If the Customer was not registered with a password in the `registerCustomerAccount` mutation, the password _must_ be - * provided here. - */ - verifyCustomerAccount: VerifyCustomerAccountResult; + /** Adds an item to the order. If custom fields are defined on the OrderLine entity, a third argument 'customFields' will be available. */ + addItemToOrder: UpdateOrderItemsResult; + /** Add a Payment to the Order */ + addPaymentToOrder: AddPaymentToOrderResult; + /** Adjusts an OrderLine. If custom fields are defined on the OrderLine entity, a third argument 'customFields' of type `OrderLineCustomFieldsInput` will be available. */ + adjustOrderLine: UpdateOrderItemsResult; + /** Applies the given coupon code to the active Order */ + applyCouponCode: ApplyCouponCodeResult; + /** Authenticates the user using a named authentication strategy */ + authenticate: AuthenticationResult; + /** Create a new Customer Address */ + createCustomerAddress: Address; + /** Delete an existing Address */ + deleteCustomerAddress: Success; + /** Authenticates the user using the native authentication strategy. This mutation is an alias for `authenticate({ native: { ... }})` */ + login: NativeAuthenticationResult; + /** End the current authenticated session */ + logout: Success; + /** Regenerate and send a verification token for a new Customer registration. Only applicable if `authOptions.requireVerification` is set to true. */ + refreshCustomerVerification: RefreshCustomerVerificationResult; + /** + * Register a Customer account with the given credentials. There are three possible registration flows: + * + * _If `authOptions.requireVerification` is set to `true`:_ + * + * 1. **The Customer is registered _with_ a password**. A verificationToken will be created (and typically emailed to the Customer). That + * verificationToken would then be passed to the `verifyCustomerAccount` mutation _without_ a password. The Customer is then + * verified and authenticated in one step. + * 2. **The Customer is registered _without_ a password**. A verificationToken will be created (and typically emailed to the Customer). That + * verificationToken would then be passed to the `verifyCustomerAccount` mutation _with_ the chosen password of the Customer. The Customer is then + * verified and authenticated in one step. + * + * _If `authOptions.requireVerification` is set to `false`:_ + * + * 3. The Customer _must_ be registered _with_ a password. No further action is needed - the Customer is able to authenticate immediately. + */ + registerCustomerAccount: RegisterCustomerAccountResult; + /** Remove all OrderLine from the Order */ + removeAllOrderLines: RemoveOrderItemsResult; + /** Removes the given coupon code from the active Order */ + removeCouponCode?: Maybe; + /** Remove an OrderLine from the Order */ + removeOrderLine: RemoveOrderItemsResult; + /** Requests a password reset email to be sent */ + requestPasswordReset?: Maybe; + /** + * Request to update the emailAddress of the active Customer. If `authOptions.requireVerification` is enabled + * (as is the default), then the `identifierChangeToken` will be assigned to the current User and + * a IdentifierChangeRequestEvent will be raised. This can then be used e.g. by the EmailPlugin to email + * that verification token to the Customer, which is then used to verify the change of email address. + */ + requestUpdateCustomerEmailAddress: RequestUpdateCustomerEmailAddressResult; + /** Resets a Customer's password based on the provided token */ + resetPassword: ResetPasswordResult; + /** Set the Customer for the Order. Required only if the Customer is not currently logged in */ + setCustomerForOrder: SetCustomerForOrderResult; + /** Sets the billing address for this order */ + setOrderBillingAddress: ActiveOrderResult; + /** Allows any custom fields to be set for the active order */ + setOrderCustomFields: ActiveOrderResult; + /** Sets the shipping address for this order */ + setOrderShippingAddress: ActiveOrderResult; + /** + * Sets the shipping method by id, which can be obtained with the `eligibleShippingMethods` query. + * An Order can have multiple shipping methods, in which case you can pass an array of ids. In this case, + * you should configure a custom ShippingLineAssignmentStrategy in order to know which OrderLines each + * shipping method will apply to. + */ + setOrderShippingMethod: SetOrderShippingMethodResult; + /** Transitions an Order to a new state. Valid next states can be found by querying `nextOrderStates` */ + transitionOrderToState?: Maybe; + /** Update an existing Customer */ + updateCustomer: Customer; + /** Update an existing Address */ + updateCustomerAddress: Address; + /** + * Confirm the update of the emailAddress with the provided token, which has been generated by the + * `requestUpdateCustomerEmailAddress` mutation. + */ + updateCustomerEmailAddress: UpdateCustomerEmailAddressResult; + /** Update the password of the active Customer */ + updateCustomerPassword: UpdateCustomerPasswordResult; + /** + * Verify a Customer email address with the token sent to that address. Only applicable if `authOptions.requireVerification` is set to true. + * + * If the Customer was not registered with a password in the `registerCustomerAccount` mutation, the password _must_ be + * provided here. + */ + verifyCustomerAccount: VerifyCustomerAccountResult; }; + export type MutationAddItemToOrderArgs = { - productVariantId: Scalars['ID']; - quantity: Scalars['Int']; + productVariantId: Scalars['ID']; + quantity: Scalars['Int']; }; + export type MutationAddPaymentToOrderArgs = { - input: PaymentInput; + input: PaymentInput; }; + export type MutationAdjustOrderLineArgs = { - orderLineId: Scalars['ID']; - quantity: Scalars['Int']; + orderLineId: Scalars['ID']; + quantity: Scalars['Int']; }; + export type MutationApplyCouponCodeArgs = { - couponCode: Scalars['String']; + couponCode: Scalars['String']; }; + export type MutationAuthenticateArgs = { - input: AuthenticationInput; - rememberMe?: InputMaybe; + input: AuthenticationInput; + rememberMe?: InputMaybe; }; + export type MutationCreateCustomerAddressArgs = { - input: CreateAddressInput; + input: CreateAddressInput; }; + export type MutationDeleteCustomerAddressArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type MutationLoginArgs = { - password: Scalars['String']; - rememberMe?: InputMaybe; - username: Scalars['String']; + password: Scalars['String']; + rememberMe?: InputMaybe; + username: Scalars['String']; }; + export type MutationRefreshCustomerVerificationArgs = { - emailAddress: Scalars['String']; + emailAddress: Scalars['String']; }; + export type MutationRegisterCustomerAccountArgs = { - input: RegisterCustomerInput; + input: RegisterCustomerInput; }; + export type MutationRemoveCouponCodeArgs = { - couponCode: Scalars['String']; + couponCode: Scalars['String']; }; + export type MutationRemoveOrderLineArgs = { - orderLineId: Scalars['ID']; + orderLineId: Scalars['ID']; }; + export type MutationRequestPasswordResetArgs = { - emailAddress: Scalars['String']; + emailAddress: Scalars['String']; }; + export type MutationRequestUpdateCustomerEmailAddressArgs = { - newEmailAddress: Scalars['String']; - password: Scalars['String']; + newEmailAddress: Scalars['String']; + password: Scalars['String']; }; + export type MutationResetPasswordArgs = { - password: Scalars['String']; - token: Scalars['String']; + password: Scalars['String']; + token: Scalars['String']; }; + export type MutationSetCustomerForOrderArgs = { - input: CreateCustomerInput; + input: CreateCustomerInput; }; + export type MutationSetOrderBillingAddressArgs = { - input: CreateAddressInput; + input: CreateAddressInput; }; + export type MutationSetOrderCustomFieldsArgs = { - input: UpdateOrderInput; + input: UpdateOrderInput; }; + export type MutationSetOrderShippingAddressArgs = { - input: CreateAddressInput; + input: CreateAddressInput; }; + export type MutationSetOrderShippingMethodArgs = { - shippingMethodId: Array; + shippingMethodId: Array; }; + export type MutationTransitionOrderToStateArgs = { - state: Scalars['String']; + state: Scalars['String']; }; + export type MutationUpdateCustomerArgs = { - input: UpdateCustomerInput; + input: UpdateCustomerInput; }; + export type MutationUpdateCustomerAddressArgs = { - input: UpdateAddressInput; + input: UpdateAddressInput; }; + export type MutationUpdateCustomerEmailAddressArgs = { - token: Scalars['String']; + token: Scalars['String']; }; + export type MutationUpdateCustomerPasswordArgs = { - currentPassword: Scalars['String']; - newPassword: Scalars['String']; + currentPassword: Scalars['String']; + newPassword: Scalars['String']; }; + export type MutationVerifyCustomerAccountArgs = { - password?: InputMaybe; - token: Scalars['String']; + password?: InputMaybe; + token: Scalars['String']; }; export type NativeAuthInput = { - password: Scalars['String']; - username: Scalars['String']; + password: Scalars['String']; + username: Scalars['String']; }; /** Returned when attempting an operation that relies on the NativeAuthStrategy, if that strategy is not configured. */ export type NativeAuthStrategyError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; }; -export type NativeAuthenticationResult = - | CurrentUser - | InvalidCredentialsError - | NativeAuthStrategyError - | NotVerifiedError; +export type NativeAuthenticationResult = CurrentUser | InvalidCredentialsError | NativeAuthStrategyError | NotVerifiedError; /** Returned when attempting to set a negative OrderLine quantity. */ export type NegativeQuantityError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; }; /** @@ -1755,12 +1761,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']; }; /** @@ -1768,283 +1774,284 @@ export type Node = { * and an unverified user attempts to authenticate. */ export type NotVerifiedError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; }; /** Operators for filtering on a list of Number fields */ export type NumberListOperators = { - inList: Scalars['Float']; + inList: Scalars['Float']; }; /** Operators for filtering on a Int or Float field */ export type NumberOperators = { - between?: InputMaybe; - eq?: InputMaybe; - gt?: InputMaybe; - gte?: InputMaybe; - isNull?: InputMaybe; - lt?: InputMaybe; - lte?: InputMaybe; + between?: InputMaybe; + eq?: InputMaybe; + gt?: InputMaybe; + gte?: InputMaybe; + isNull?: InputMaybe; + lt?: InputMaybe; + lte?: InputMaybe; }; export type NumberRange = { - end: Scalars['Float']; - start: Scalars['Float']; + end: Scalars['Float']; + start: Scalars['Float']; }; export type Order = Node & { - /** An order is active as long as the payment process has not been completed */ - active: Scalars['Boolean']; - billingAddress?: Maybe; - /** A unique code for the Order */ - code: Scalars['String']; - /** An array of all coupon codes applied to the Order */ - couponCodes: Array; - createdAt: Scalars['DateTime']; - currencyCode: CurrencyCode; - customFields?: Maybe; - customer?: Maybe; - discounts: Array; - fulfillments?: Maybe>; - history: HistoryEntryList; - id: Scalars['ID']; - lines: Array; - /** - * The date & time that the Order was placed, i.e. the Customer - * completed the checkout and the Order is no longer "active" - */ - orderPlacedAt?: Maybe; - payments?: Maybe>; - /** Promotions applied to the order. Only gets populated after the payment process has completed. */ - promotions: Array; - shipping: Scalars['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; - fulfillmentLines?: Maybe>; - id: Scalars['ID']; - /** 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; - /** The quantity at the time the Order was placed */ - orderPlacedQuantity: Scalars['Int']; - productVariant: ProductVariant; - /** - * The actual line price, taking into account both item discounts _and_ prorated (proportionally-distributed) - * Order-level discounts. This value is the true economic value of the OrderLine, and is used in tax - * and refund calculations. - */ - proratedLinePrice: Scalars['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; + fulfillmentLines?: Maybe>; + id: Scalars['ID']; + /** 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; + /** The quantity at the time the Order was placed */ + orderPlacedQuantity: Scalars['Int']; + productVariant: ProductVariant; + /** + * The actual line price, taking into account both item discounts _and_ prorated (proportionally-distributed) + * Order-level discounts. This value is the true economic value of the OrderLine, and is used in tax + * and refund calculations. + */ + proratedLinePrice: Scalars['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']; }; /** @@ -2052,31 +2059,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']; }; /** @@ -2084,8 +2091,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']; }; /** @@ -2093,77 +2100,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']; }; /** @@ -2199,885 +2206,860 @@ 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']; - lines: Array; - metadata?: Maybe; - method?: Maybe; - 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']; + lines: Array; + metadata?: Maybe; + method?: Maybe; + paymentId: Scalars['ID']; + reason?: Maybe; + shipping: Scalars['Int']; + state: Scalars['String']; + total: Scalars['Int']; + transactionId?: Maybe; + updatedAt: Scalars['DateTime']; }; export type RefundLine = { - orderLine: OrderLine; - orderLineId: Scalars['ID']; - quantity: Scalars['Int']; - refund: Refund; - refundId: Scalars['ID']; + orderLine: OrderLine; + orderLineId: Scalars['ID']; + quantity: Scalars['Int']; + refund: Refund; + refundId: Scalars['ID']; }; -export type RegisterCustomerAccountResult = - | MissingPasswordError - | NativeAuthStrategyError - | PasswordValidationError - | Success; +export type RegisterCustomerAccountResult = MissingPasswordError | NativeAuthStrategyError | PasswordValidationError | Success; export type RegisterCustomerInput = { - emailAddress: Scalars['String']; - firstName?: InputMaybe; - lastName?: InputMaybe; - password?: InputMaybe; - phoneNumber?: InputMaybe; - title?: InputMaybe; + emailAddress: Scalars['String']; + firstName?: InputMaybe; + lastName?: InputMaybe; + password?: InputMaybe; + phoneNumber?: InputMaybe; + title?: InputMaybe; }; export type RelationCustomFieldConfig = CustomField & { - description?: Maybe>; - entity: Scalars['String']; - internal?: Maybe; - label?: Maybe>; - list: Scalars['Boolean']; - name: Scalars['String']; - nullable?: Maybe; - readonly?: Maybe; - scalarFields: Array; - type: Scalars['String']; - ui?: Maybe; + description?: Maybe>; + entity: Scalars['String']; + internal?: Maybe; + label?: Maybe>; + list: Scalars['Boolean']; + name: Scalars['String']; + nullable?: Maybe; + readonly?: Maybe; + scalarFields: Array; + type: Scalars['String']; + ui?: Maybe; }; export type RemoveOrderItemsResult = Order | OrderModificationError; export type RequestPasswordResetResult = NativeAuthStrategyError | Success; -export type RequestUpdateCustomerEmailAddressResult = - | EmailAddressConflictError - | InvalidCredentialsError - | NativeAuthStrategyError - | Success; +export type RequestUpdateCustomerEmailAddressResult = EmailAddressConflictError | InvalidCredentialsError | NativeAuthStrategyError | Success; -export type ResetPasswordResult = - | CurrentUser - | NativeAuthStrategyError - | NotVerifiedError - | PasswordResetTokenExpiredError - | PasswordResetTokenInvalidError - | PasswordValidationError; +export type ResetPasswordResult = CurrentUser | NativeAuthStrategyError | NotVerifiedError | PasswordResetTokenExpiredError | PasswordResetTokenInvalidError | PasswordValidationError; export type Role = Node & { - channels: Array; - code: Scalars['String']; - createdAt: Scalars['DateTime']; - description: Scalars['String']; - id: Scalars['ID']; - permissions: Array; - updatedAt: Scalars['DateTime']; + channels: Array; + code: Scalars['String']; + createdAt: Scalars['DateTime']; + description: Scalars['String']; + id: Scalars['ID']; + permissions: Array; + updatedAt: Scalars['DateTime']; }; export type RoleList = PaginatedList & { - items: Array; - totalItems: Scalars['Int']; + items: Array; + totalItems: Scalars['Int']; }; export type SearchInput = { - collectionId?: InputMaybe; - collectionSlug?: InputMaybe; - facetValueFilters?: InputMaybe>; - 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']; }; /** @@ -3085,8 +3067,8 @@ export type User = Node & { * expired according to the `verificationTokenDuration` setting in the AuthOptions. */ export type VerificationTokenExpiredError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; }; /** @@ -3094,487 +3076,72 @@ export type VerificationTokenExpiredError = ErrorResult & { * invalid or does not match any expected tokens. */ export type VerificationTokenInvalidError = ErrorResult & { - errorCode: ErrorCode; - message: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; }; -export type VerifyCustomerAccountResult = - | CurrentUser - | MissingPasswordError - | NativeAuthStrategyError - | PasswordAlreadySetError - | PasswordValidationError - | VerificationTokenExpiredError - | VerificationTokenInvalidError; +export type VerifyCustomerAccountResult = CurrentUser | MissingPasswordError | NativeAuthStrategyError | PasswordAlreadySetError | PasswordValidationError | VerificationTokenExpiredError | VerificationTokenInvalidError; export type Zone = Node & { - createdAt: Scalars['DateTime']; - customFields?: Maybe; - id: Scalars['ID']; - members: Array; - name: Scalars['String']; - updatedAt: Scalars['DateTime']; -}; - -export type TestOrderFragmentFragment = { - id: string; - code: string; - state: string; - active: boolean; - subTotal: number; - subTotalWithTax: number; - shipping: number; - shippingWithTax: number; - total: number; - totalWithTax: number; - currencyCode: CurrencyCode; - couponCodes: Array; - discounts: Array<{ - adjustmentSource: string; - amount: number; - amountWithTax: number; - description: string; - type: AdjustmentType; - }>; - payments?: Array<{ - id: string; - transactionId?: string | null; - method: string; - amount: number; - state: string; - metadata?: any | null; - }> | null; - 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; - }>; - }>; - 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 }> }; + 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, currencyCode: CurrencyCode, couponCodes: Array, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }>, payments?: Array<{ id: string, transactionId?: string | null, method: string, amount: number, state: string, metadata?: any | null }> | null, 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 }> }>, 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 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; - currencyCode: CurrencyCode; - couponCodes: Array; - discounts: Array<{ - adjustmentSource: string; - amount: number; - amountWithTax: number; - description: string; - type: AdjustmentType; - }>; - payments?: Array<{ - id: string; - transactionId?: string | null; - method: string; - amount: number; - state: string; - metadata?: any | null; - }> | null; - 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; - }>; - }>; - 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 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, currencyCode: CurrencyCode, couponCodes: Array, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }>, payments?: Array<{ id: string, transactionId?: string | null, method: string, amount: number, state: string, metadata?: any | null }> | null, 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 }> }>, 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 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 GetShippingMethodsQueryVariables = Exact<{ [key: string]: never }>; - -export type GetShippingMethodsQuery = { - eligibleShippingMethods: Array<{ - id: string; - code: string; - price: number; - name: string; - description: string; - }>; -}; + +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 GetShippingMethodsQueryVariables = Exact<{ [key: string]: never; }>; + + +export type GetShippingMethodsQuery = { eligibleShippingMethods: Array<{ id: string, code: string, price: number, name: string, description: string }> }; export type TransitionToStateMutationVariables = Exact<{ - state: Scalars['String']; + state: Scalars['String']; }>; -export type TransitionToStateMutation = { - transitionOrderToState?: - | { id: string } - | { - errorCode: ErrorCode; - message: string; - transitionError: string; - fromState: string; - toState: string; - } - | null; -}; + +export type TransitionToStateMutation = { transitionOrderToState?: { id: string } | { errorCode: ErrorCode, message: string, transitionError: string, fromState: string, toState: string } | null }; 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; - currencyCode: CurrencyCode; - couponCodes: Array; - discounts: Array<{ - adjustmentSource: string; - amount: number; - amountWithTax: number; - description: string; - type: AdjustmentType; - }>; - payments?: Array<{ - id: string; - transactionId?: string | null; - method: string; - amount: number; - state: string; - metadata?: any | null; - }> | null; - 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; - }>; - }>; - 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 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, currencyCode: CurrencyCode, couponCodes: Array, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }>, payments?: Array<{ id: string, transactionId?: string | null, method: string, amount: number, state: string, metadata?: any | null }> | null, 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 }> }>, 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 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; - subTotal: number; - subTotalWithTax: number; - shipping: number; - shippingWithTax: number; - total: number; - totalWithTax: number; - currencyCode: CurrencyCode; - couponCodes: Array; - discounts: Array<{ - adjustmentSource: string; - amount: number; - amountWithTax: number; - description: string; - type: AdjustmentType; - }>; - payments?: Array<{ - id: string; - transactionId?: string | null; - method: string; - amount: number; - state: string; - metadata?: any | null; - }> | null; - 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; - }>; - }>; - 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 } - | { - id: string; - code: string; - state: string; - active: boolean; - subTotal: number; - subTotalWithTax: number; - shipping: number; - shippingWithTax: number; - total: number; - totalWithTax: number; - currencyCode: CurrencyCode; - couponCodes: Array; - discounts: Array<{ - adjustmentSource: string; - amount: number; - amountWithTax: number; - description: string; - type: AdjustmentType; - }>; - payments?: Array<{ - id: string; - transactionId?: string | null; - method: string; - amount: number; - state: string; - metadata?: any | null; - }> | null; - 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; - }>; - }>; - 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 AddItemToOrderMutation = { addItemToOrder: { errorCode: ErrorCode, message: string, quantityAvailable: number, order: { id: string, code: string, state: string, active: boolean, subTotal: number, subTotalWithTax: number, shipping: number, shippingWithTax: number, total: number, totalWithTax: number, currencyCode: CurrencyCode, couponCodes: Array, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }>, payments?: Array<{ id: string, transactionId?: string | null, method: string, amount: number, state: string, metadata?: any | null }> | null, 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 }> }>, 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 } | { id: string, code: string, state: string, active: boolean, subTotal: number, subTotalWithTax: number, shipping: number, shippingWithTax: number, total: number, totalWithTax: number, currencyCode: CurrencyCode, couponCodes: Array, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }>, payments?: Array<{ id: string, transactionId?: string | null, method: string, amount: number, state: string, metadata?: any | null }> | null, 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 }> }>, 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 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; - currencyCode: CurrencyCode; - couponCodes: Array; - discounts: Array<{ - adjustmentSource: string; - amount: number; - amountWithTax: number; - description: string; - type: AdjustmentType; - }>; - payments?: Array<{ - id: string; - transactionId?: string | null; - method: string; - amount: number; - state: string; - metadata?: any | null; - }> | null; - 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; - }>; - }>; - 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 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; - currencyCode: CurrencyCode; - couponCodes: Array; - discounts: Array<{ - adjustmentSource: string; - amount: number; - amountWithTax: number; - description: string; - type: AdjustmentType; - }>; - payments?: Array<{ - id: string; - transactionId?: string | null; - method: string; - amount: number; - state: string; - metadata?: any | null; - }> | null; - 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; - }>; - }>; - 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, currencyCode: CurrencyCode, couponCodes: Array, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }>, payments?: Array<{ id: string, transactionId?: string | null, method: string, amount: number, state: string, metadata?: any | null }> | null, 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 }> }>, 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 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, currencyCode: CurrencyCode, couponCodes: Array, discounts: Array<{ adjustmentSource: string, amount: number, amountWithTax: number, description: string, type: AdjustmentType }>, payments?: Array<{ id: string, transactionId?: string | null, method: string, amount: number, state: string, metadata?: any | null }> | null, 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 }> }>, 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 }; diff --git a/packages/payments-plugin/src/mollie/graphql/generated-shop-types.ts b/packages/payments-plugin/src/mollie/graphql/generated-shop-types.ts index 75201ce855..8c0ea3e91d 100644 --- a/packages/payments-plugin/src/mollie/graphql/generated-shop-types.ts +++ b/packages/payments-plugin/src/mollie/graphql/generated-shop-types.ts @@ -6,221 +6,211 @@ 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 & { - __typename?: 'Address'; - city?: Maybe; - company?: Maybe; - country: Country; - createdAt: Scalars['DateTime']; - customFields?: Maybe; - defaultBillingAddress?: Maybe; - defaultShippingAddress?: Maybe; - fullName?: Maybe; - id: Scalars['ID']; - phoneNumber?: Maybe; - postalCode?: Maybe; - province?: Maybe; - streetLine1: Scalars['String']; - streetLine2?: Maybe; - updatedAt: Scalars['DateTime']; + __typename?: 'Address'; + city?: Maybe; + company?: Maybe; + country: Country; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + defaultBillingAddress?: Maybe; + defaultShippingAddress?: Maybe; + fullName?: Maybe; + id: Scalars['ID']; + phoneNumber?: Maybe; + postalCode?: Maybe; + province?: Maybe; + streetLine1: Scalars['String']; + streetLine2?: Maybe; + updatedAt: Scalars['DateTime']; }; export type Adjustment = { - __typename?: 'Adjustment'; - adjustmentSource: Scalars['String']; - amount: Scalars['Int']; - data?: Maybe; - description: Scalars['String']; - type: AdjustmentType; + __typename?: 'Adjustment'; + adjustmentSource: Scalars['String']; + amount: Scalars['Int']; + data?: Maybe; + description: Scalars['String']; + type: AdjustmentType; }; export enum AdjustmentType { - DISTRIBUTED_ORDER_PROMOTION = 'DISTRIBUTED_ORDER_PROMOTION', - OTHER = 'OTHER', - PROMOTION = 'PROMOTION', + DISTRIBUTED_ORDER_PROMOTION = 'DISTRIBUTED_ORDER_PROMOTION', + OTHER = 'OTHER', + PROMOTION = 'PROMOTION' } /** Returned when attempting to set the Customer for an Order when already logged in. */ export type AlreadyLoggedInError = ErrorResult & { - __typename?: 'AlreadyLoggedInError'; - errorCode: ErrorCode; - message: Scalars['String']; + __typename?: 'AlreadyLoggedInError'; + errorCode: ErrorCode; + message: Scalars['String']; }; -export type ApplyCouponCodeResult = - | CouponCodeExpiredError - | CouponCodeInvalidError - | CouponCodeLimitError - | Order; +export type ApplyCouponCodeResult = CouponCodeExpiredError | CouponCodeInvalidError | CouponCodeLimitError | Order; export type Asset = Node & { - __typename?: 'Asset'; - createdAt: Scalars['DateTime']; - customFields?: Maybe; - fileSize: Scalars['Int']; - focalPoint?: Maybe; - height: Scalars['Int']; - id: Scalars['ID']; - mimeType: Scalars['String']; - name: Scalars['String']; - preview: Scalars['String']; - source: Scalars['String']; - tags: Array; - type: AssetType; - updatedAt: Scalars['DateTime']; - width: Scalars['Int']; + __typename?: 'Asset'; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + fileSize: Scalars['Int']; + focalPoint?: Maybe; + height: Scalars['Int']; + id: Scalars['ID']; + mimeType: Scalars['String']; + name: Scalars['String']; + preview: Scalars['String']; + source: Scalars['String']; + tags: Array; + type: AssetType; + updatedAt: Scalars['DateTime']; + width: Scalars['Int']; }; export type AssetList = PaginatedList & { - __typename?: 'AssetList'; - items: Array; - totalItems: Scalars['Int']; + __typename?: 'AssetList'; + items: Array; + totalItems: Scalars['Int']; }; export enum AssetType { - BINARY = 'BINARY', - IMAGE = 'IMAGE', - VIDEO = 'VIDEO', + BINARY = 'BINARY', + IMAGE = 'IMAGE', + VIDEO = 'VIDEO' } export type AuthenticationInput = { - native?: InputMaybe; + native?: InputMaybe; }; export type AuthenticationMethod = Node & { - __typename?: 'AuthenticationMethod'; - createdAt: Scalars['DateTime']; - id: Scalars['ID']; - strategy: Scalars['String']; - updatedAt: Scalars['DateTime']; + __typename?: 'AuthenticationMethod'; + createdAt: Scalars['DateTime']; + id: Scalars['ID']; + strategy: Scalars['String']; + updatedAt: Scalars['DateTime']; }; export type AuthenticationResult = CurrentUser | InvalidCredentialsError | NotVerifiedError; export type BooleanCustomFieldConfig = CustomField & { - __typename?: 'BooleanCustomFieldConfig'; - description?: Maybe>; - internal?: Maybe; - label?: Maybe>; - list: Scalars['Boolean']; - name: Scalars['String']; - nullable?: Maybe; - readonly?: Maybe; - type: Scalars['String']; - ui?: Maybe; + __typename?: 'BooleanCustomFieldConfig'; + description?: Maybe>; + internal?: Maybe; + label?: Maybe>; + list: Scalars['Boolean']; + name: Scalars['String']; + nullable?: Maybe; + readonly?: Maybe; + type: Scalars['String']; + ui?: Maybe; }; /** Operators for filtering on a list of Boolean fields */ export type BooleanListOperators = { - inList: Scalars['Boolean']; + inList: Scalars['Boolean']; }; /** Operators for filtering on a Boolean field */ export type BooleanOperators = { - eq?: InputMaybe; - isNull?: InputMaybe; + eq?: InputMaybe; + isNull?: InputMaybe; }; export type Channel = Node & { - __typename?: 'Channel'; - code: Scalars['String']; - createdAt: Scalars['DateTime']; - currencyCode: CurrencyCode; - customFields?: Maybe; - defaultLanguageCode: LanguageCode; - defaultShippingZone?: Maybe; - defaultTaxZone?: Maybe; - id: Scalars['ID']; - pricesIncludeTax: Scalars['Boolean']; - seller?: Maybe; - token: Scalars['String']; - updatedAt: Scalars['DateTime']; + __typename?: 'Channel'; + code: Scalars['String']; + createdAt: Scalars['DateTime']; + currencyCode: CurrencyCode; + customFields?: Maybe; + defaultLanguageCode: LanguageCode; + defaultShippingZone?: Maybe; + defaultTaxZone?: Maybe; + id: Scalars['ID']; + pricesIncludeTax: Scalars['Boolean']; + seller?: Maybe; + token: Scalars['String']; + updatedAt: Scalars['DateTime']; }; export type Collection = Node & { - __typename?: 'Collection'; - assets: Array; - breadcrumbs: Array; - children?: Maybe>; - createdAt: Scalars['DateTime']; - customFields?: Maybe; - description: Scalars['String']; - featuredAsset?: Maybe; - filters: Array; - id: Scalars['ID']; - languageCode?: Maybe; - name: Scalars['String']; - parent?: Maybe; - position: Scalars['Int']; - productVariants: ProductVariantList; - slug: Scalars['String']; - translations: Array; - updatedAt: Scalars['DateTime']; + __typename?: 'Collection'; + assets: Array; + breadcrumbs: Array; + children?: Maybe>; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + description: Scalars['String']; + featuredAsset?: Maybe; + filters: Array; + id: Scalars['ID']; + languageCode?: Maybe; + name: Scalars['String']; + parent?: Maybe; + position: Scalars['Int']; + productVariants: ProductVariantList; + slug: Scalars['String']; + translations: Array; + updatedAt: Scalars['DateTime']; }; + export type CollectionProductVariantsArgs = { - options?: InputMaybe; + options?: InputMaybe; }; export type CollectionBreadcrumb = { - __typename?: 'CollectionBreadcrumb'; - id: Scalars['ID']; - name: Scalars['String']; - slug: Scalars['String']; + __typename?: 'CollectionBreadcrumb'; + id: Scalars['ID']; + name: Scalars['String']; + slug: Scalars['String']; }; export type CollectionFilterParameter = { - createdAt?: InputMaybe; - description?: InputMaybe; - id?: InputMaybe; - languageCode?: InputMaybe; - name?: InputMaybe; - position?: InputMaybe; - slug?: InputMaybe; - updatedAt?: InputMaybe; + createdAt?: InputMaybe; + description?: InputMaybe; + id?: InputMaybe; + languageCode?: InputMaybe; + name?: InputMaybe; + position?: InputMaybe; + slug?: InputMaybe; + updatedAt?: InputMaybe; }; export type CollectionList = PaginatedList & { - __typename?: 'CollectionList'; - items: Array; - totalItems: Scalars['Int']; + __typename?: 'CollectionList'; + items: Array; + totalItems: Scalars['Int']; }; export type CollectionListOptions = { - /** Allows the results to be filtered */ - filter?: InputMaybe; - /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ - filterOperator?: InputMaybe; - /** Skips the first n results, for use in pagination */ - skip?: InputMaybe; - /** Specifies which properties to sort the results by */ - sort?: InputMaybe; - /** Takes n results, for use in pagination */ - take?: InputMaybe; + /** Allows the results to be filtered */ + filter?: InputMaybe; + /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ + filterOperator?: InputMaybe; + /** Skips the first n results, for use in pagination */ + skip?: InputMaybe; + /** Specifies which properties to sort the results by */ + sort?: InputMaybe; + /** Takes n results, for use in pagination */ + take?: InputMaybe; }; /** @@ -228,155 +218,155 @@ export type CollectionListOptions = { * by the search, and in what quantity. */ export type CollectionResult = { - __typename?: 'CollectionResult'; - collection: Collection; - count: Scalars['Int']; + __typename?: 'CollectionResult'; + collection: Collection; + count: Scalars['Int']; }; export type CollectionSortParameter = { - createdAt?: InputMaybe; - description?: InputMaybe; - id?: InputMaybe; - name?: InputMaybe; - position?: InputMaybe; - slug?: InputMaybe; - updatedAt?: InputMaybe; + createdAt?: InputMaybe; + description?: InputMaybe; + id?: InputMaybe; + name?: InputMaybe; + position?: InputMaybe; + slug?: InputMaybe; + updatedAt?: InputMaybe; }; export type CollectionTranslation = { - __typename?: 'CollectionTranslation'; - createdAt: Scalars['DateTime']; - description: Scalars['String']; - id: Scalars['ID']; - languageCode: LanguageCode; - name: Scalars['String']; - slug: Scalars['String']; - updatedAt: Scalars['DateTime']; + __typename?: 'CollectionTranslation'; + createdAt: Scalars['DateTime']; + description: Scalars['String']; + id: Scalars['ID']; + languageCode: LanguageCode; + name: Scalars['String']; + slug: Scalars['String']; + updatedAt: Scalars['DateTime']; }; export type ConfigArg = { - __typename?: 'ConfigArg'; - name: Scalars['String']; - value: Scalars['String']; + __typename?: 'ConfigArg'; + name: Scalars['String']; + value: Scalars['String']; }; export type ConfigArgDefinition = { - __typename?: 'ConfigArgDefinition'; - defaultValue?: Maybe; - description?: Maybe; - label?: Maybe; - list: Scalars['Boolean']; - name: Scalars['String']; - required: Scalars['Boolean']; - type: Scalars['String']; - ui?: Maybe; + __typename?: 'ConfigArgDefinition'; + defaultValue?: Maybe; + description?: Maybe; + label?: Maybe; + list: Scalars['Boolean']; + name: Scalars['String']; + required: Scalars['Boolean']; + type: Scalars['String']; + ui?: Maybe; }; export type ConfigArgInput = { - name: Scalars['String']; - /** A JSON stringified representation of the actual value */ - value: Scalars['String']; + name: Scalars['String']; + /** A JSON stringified representation of the actual value */ + value: Scalars['String']; }; export type ConfigurableOperation = { - __typename?: 'ConfigurableOperation'; - args: Array; - code: Scalars['String']; + __typename?: 'ConfigurableOperation'; + args: Array; + code: Scalars['String']; }; export type ConfigurableOperationDefinition = { - __typename?: 'ConfigurableOperationDefinition'; - args: Array; - code: Scalars['String']; - description: Scalars['String']; + __typename?: 'ConfigurableOperationDefinition'; + args: Array; + code: Scalars['String']; + description: Scalars['String']; }; export type ConfigurableOperationInput = { - arguments: Array; - code: Scalars['String']; + arguments: Array; + code: Scalars['String']; }; export type Coordinate = { - __typename?: 'Coordinate'; - x: Scalars['Float']; - y: Scalars['Float']; + __typename?: 'Coordinate'; + x: Scalars['Float']; + y: Scalars['Float']; }; export type Country = Node & { - __typename?: 'Country'; - code: Scalars['String']; - createdAt: Scalars['DateTime']; - customFields?: Maybe; - enabled: Scalars['Boolean']; - id: Scalars['ID']; - languageCode: LanguageCode; - name: Scalars['String']; - translations: Array; - updatedAt: Scalars['DateTime']; + __typename?: 'Country'; + code: Scalars['String']; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + enabled: Scalars['Boolean']; + id: Scalars['ID']; + languageCode: LanguageCode; + name: Scalars['String']; + translations: Array; + updatedAt: Scalars['DateTime']; }; export type CountryList = PaginatedList & { - __typename?: 'CountryList'; - items: Array; - totalItems: Scalars['Int']; + __typename?: 'CountryList'; + items: Array; + totalItems: Scalars['Int']; }; export type CountryTranslation = { - __typename?: 'CountryTranslation'; - createdAt: Scalars['DateTime']; - id: Scalars['ID']; - languageCode: LanguageCode; - name: Scalars['String']; - updatedAt: Scalars['DateTime']; + __typename?: 'CountryTranslation'; + createdAt: Scalars['DateTime']; + id: Scalars['ID']; + languageCode: LanguageCode; + name: Scalars['String']; + updatedAt: Scalars['DateTime']; }; /** Returned if the provided coupon code is invalid */ export type CouponCodeExpiredError = ErrorResult & { - __typename?: 'CouponCodeExpiredError'; - couponCode: Scalars['String']; - errorCode: ErrorCode; - message: Scalars['String']; + __typename?: 'CouponCodeExpiredError'; + couponCode: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; }; /** Returned if the provided coupon code is invalid */ export type CouponCodeInvalidError = ErrorResult & { - __typename?: 'CouponCodeInvalidError'; - couponCode: Scalars['String']; - errorCode: ErrorCode; - message: Scalars['String']; + __typename?: 'CouponCodeInvalidError'; + couponCode: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; }; /** Returned if the provided coupon code is invalid */ export type CouponCodeLimitError = ErrorResult & { - __typename?: 'CouponCodeLimitError'; - couponCode: Scalars['String']; - errorCode: ErrorCode; - limit: Scalars['Int']; - message: Scalars['String']; + __typename?: 'CouponCodeLimitError'; + couponCode: Scalars['String']; + errorCode: ErrorCode; + limit: Scalars['Int']; + message: Scalars['String']; }; export type CreateAddressInput = { - city?: InputMaybe; - company?: InputMaybe; - countryCode: Scalars['String']; - customFields?: InputMaybe; - defaultBillingAddress?: InputMaybe; - defaultShippingAddress?: InputMaybe; - fullName?: InputMaybe; - phoneNumber?: InputMaybe; - postalCode?: InputMaybe; - province?: InputMaybe; - streetLine1: Scalars['String']; - streetLine2?: InputMaybe; + city?: InputMaybe; + company?: InputMaybe; + countryCode: Scalars['String']; + customFields?: InputMaybe; + defaultBillingAddress?: InputMaybe; + defaultShippingAddress?: InputMaybe; + fullName?: InputMaybe; + phoneNumber?: InputMaybe; + postalCode?: InputMaybe; + province?: InputMaybe; + streetLine1: Scalars['String']; + streetLine2?: InputMaybe; }; export type CreateCustomerInput = { - customFields?: InputMaybe; - emailAddress: Scalars['String']; - firstName: Scalars['String']; - lastName: Scalars['String']; - phoneNumber?: InputMaybe; - title?: InputMaybe; + customFields?: InputMaybe; + emailAddress: Scalars['String']; + firstName: Scalars['String']; + lastName: Scalars['String']; + phoneNumber?: InputMaybe; + title?: InputMaybe; }; /** @@ -386,451 +376,445 @@ export type CreateCustomerInput = { * @docsCategory common */ export enum CurrencyCode { - /** United Arab Emirates dirham */ - AED = 'AED', - /** Afghan afghani */ - AFN = 'AFN', - /** Albanian lek */ - ALL = 'ALL', - /** Armenian dram */ - AMD = 'AMD', - /** Netherlands Antillean guilder */ - ANG = 'ANG', - /** Angolan kwanza */ - AOA = 'AOA', - /** Argentine peso */ - ARS = 'ARS', - /** Australian dollar */ - AUD = 'AUD', - /** Aruban florin */ - AWG = 'AWG', - /** Azerbaijani manat */ - AZN = 'AZN', - /** Bosnia and Herzegovina convertible mark */ - BAM = 'BAM', - /** Barbados dollar */ - BBD = 'BBD', - /** Bangladeshi taka */ - BDT = 'BDT', - /** Bulgarian lev */ - BGN = 'BGN', - /** Bahraini dinar */ - BHD = 'BHD', - /** Burundian franc */ - BIF = 'BIF', - /** Bermudian dollar */ - BMD = 'BMD', - /** Brunei dollar */ - BND = 'BND', - /** Boliviano */ - BOB = 'BOB', - /** Brazilian real */ - BRL = 'BRL', - /** Bahamian dollar */ - BSD = 'BSD', - /** Bhutanese ngultrum */ - BTN = 'BTN', - /** Botswana pula */ - BWP = 'BWP', - /** Belarusian ruble */ - BYN = 'BYN', - /** Belize dollar */ - BZD = 'BZD', - /** Canadian dollar */ - CAD = 'CAD', - /** Congolese franc */ - CDF = 'CDF', - /** Swiss franc */ - CHF = 'CHF', - /** Chilean peso */ - CLP = 'CLP', - /** Renminbi (Chinese) yuan */ - CNY = 'CNY', - /** Colombian peso */ - COP = 'COP', - /** Costa Rican colon */ - CRC = 'CRC', - /** Cuban convertible peso */ - CUC = 'CUC', - /** Cuban peso */ - CUP = 'CUP', - /** Cape Verde escudo */ - CVE = 'CVE', - /** Czech koruna */ - CZK = 'CZK', - /** Djiboutian franc */ - DJF = 'DJF', - /** Danish krone */ - DKK = 'DKK', - /** Dominican peso */ - DOP = 'DOP', - /** Algerian dinar */ - DZD = 'DZD', - /** Egyptian pound */ - EGP = 'EGP', - /** Eritrean nakfa */ - ERN = 'ERN', - /** Ethiopian birr */ - ETB = 'ETB', - /** Euro */ - EUR = 'EUR', - /** Fiji dollar */ - FJD = 'FJD', - /** Falkland Islands pound */ - FKP = 'FKP', - /** Pound sterling */ - GBP = 'GBP', - /** Georgian lari */ - GEL = 'GEL', - /** Ghanaian cedi */ - GHS = 'GHS', - /** Gibraltar pound */ - GIP = 'GIP', - /** Gambian dalasi */ - GMD = 'GMD', - /** Guinean franc */ - GNF = 'GNF', - /** Guatemalan quetzal */ - GTQ = 'GTQ', - /** Guyanese dollar */ - GYD = 'GYD', - /** Hong Kong dollar */ - HKD = 'HKD', - /** Honduran lempira */ - HNL = 'HNL', - /** Croatian kuna */ - HRK = 'HRK', - /** Haitian gourde */ - HTG = 'HTG', - /** Hungarian forint */ - HUF = 'HUF', - /** Indonesian rupiah */ - IDR = 'IDR', - /** Israeli new shekel */ - ILS = 'ILS', - /** Indian rupee */ - INR = 'INR', - /** Iraqi dinar */ - IQD = 'IQD', - /** Iranian rial */ - IRR = 'IRR', - /** Icelandic króna */ - ISK = 'ISK', - /** Jamaican dollar */ - JMD = 'JMD', - /** Jordanian dinar */ - JOD = 'JOD', - /** Japanese yen */ - JPY = 'JPY', - /** Kenyan shilling */ - KES = 'KES', - /** Kyrgyzstani som */ - KGS = 'KGS', - /** Cambodian riel */ - KHR = 'KHR', - /** Comoro franc */ - KMF = 'KMF', - /** North Korean won */ - KPW = 'KPW', - /** South Korean won */ - KRW = 'KRW', - /** Kuwaiti dinar */ - KWD = 'KWD', - /** Cayman Islands dollar */ - KYD = 'KYD', - /** Kazakhstani tenge */ - KZT = 'KZT', - /** Lao kip */ - LAK = 'LAK', - /** Lebanese pound */ - LBP = 'LBP', - /** Sri Lankan rupee */ - LKR = 'LKR', - /** Liberian dollar */ - LRD = 'LRD', - /** Lesotho loti */ - LSL = 'LSL', - /** Libyan dinar */ - LYD = 'LYD', - /** Moroccan dirham */ - MAD = 'MAD', - /** Moldovan leu */ - MDL = 'MDL', - /** Malagasy ariary */ - MGA = 'MGA', - /** Macedonian denar */ - MKD = 'MKD', - /** Myanmar kyat */ - MMK = 'MMK', - /** Mongolian tögrög */ - MNT = 'MNT', - /** Macanese pataca */ - MOP = 'MOP', - /** Mauritanian ouguiya */ - MRU = 'MRU', - /** Mauritian rupee */ - MUR = 'MUR', - /** Maldivian rufiyaa */ - MVR = 'MVR', - /** Malawian kwacha */ - MWK = 'MWK', - /** Mexican peso */ - MXN = 'MXN', - /** Malaysian ringgit */ - MYR = 'MYR', - /** Mozambican metical */ - MZN = 'MZN', - /** Namibian dollar */ - NAD = 'NAD', - /** Nigerian naira */ - NGN = 'NGN', - /** Nicaraguan córdoba */ - NIO = 'NIO', - /** Norwegian krone */ - NOK = 'NOK', - /** Nepalese rupee */ - NPR = 'NPR', - /** New Zealand dollar */ - NZD = 'NZD', - /** Omani rial */ - OMR = 'OMR', - /** Panamanian balboa */ - PAB = 'PAB', - /** Peruvian sol */ - PEN = 'PEN', - /** Papua New Guinean kina */ - PGK = 'PGK', - /** Philippine peso */ - PHP = 'PHP', - /** Pakistani rupee */ - PKR = 'PKR', - /** Polish złoty */ - PLN = 'PLN', - /** Paraguayan guaraní */ - PYG = 'PYG', - /** Qatari riyal */ - QAR = 'QAR', - /** Romanian leu */ - RON = 'RON', - /** Serbian dinar */ - RSD = 'RSD', - /** Russian ruble */ - RUB = 'RUB', - /** Rwandan franc */ - RWF = 'RWF', - /** Saudi riyal */ - SAR = 'SAR', - /** Solomon Islands dollar */ - SBD = 'SBD', - /** Seychelles rupee */ - SCR = 'SCR', - /** Sudanese pound */ - SDG = 'SDG', - /** Swedish krona/kronor */ - SEK = 'SEK', - /** Singapore dollar */ - SGD = 'SGD', - /** Saint Helena pound */ - SHP = 'SHP', - /** Sierra Leonean leone */ - SLL = 'SLL', - /** Somali shilling */ - SOS = 'SOS', - /** Surinamese dollar */ - SRD = 'SRD', - /** South Sudanese pound */ - SSP = 'SSP', - /** São Tomé and Príncipe dobra */ - STN = 'STN', - /** Salvadoran colón */ - SVC = 'SVC', - /** Syrian pound */ - SYP = 'SYP', - /** Swazi lilangeni */ - SZL = 'SZL', - /** Thai baht */ - THB = 'THB', - /** Tajikistani somoni */ - TJS = 'TJS', - /** Turkmenistan manat */ - TMT = 'TMT', - /** Tunisian dinar */ - TND = 'TND', - /** Tongan paʻanga */ - TOP = 'TOP', - /** Turkish lira */ - TRY = 'TRY', - /** Trinidad and Tobago dollar */ - TTD = 'TTD', - /** New Taiwan dollar */ - TWD = 'TWD', - /** Tanzanian shilling */ - TZS = 'TZS', - /** Ukrainian hryvnia */ - UAH = 'UAH', - /** Ugandan shilling */ - UGX = 'UGX', - /** United States dollar */ - USD = 'USD', - /** Uruguayan peso */ - UYU = 'UYU', - /** Uzbekistan som */ - UZS = 'UZS', - /** Venezuelan bolívar soberano */ - VES = 'VES', - /** Vietnamese đồng */ - VND = 'VND', - /** Vanuatu vatu */ - VUV = 'VUV', - /** Samoan tala */ - WST = 'WST', - /** CFA franc BEAC */ - XAF = 'XAF', - /** East Caribbean dollar */ - XCD = 'XCD', - /** CFA franc BCEAO */ - XOF = 'XOF', - /** CFP franc (franc Pacifique) */ - XPF = 'XPF', - /** Yemeni rial */ - YER = 'YER', - /** South African rand */ - ZAR = 'ZAR', - /** Zambian kwacha */ - ZMW = 'ZMW', - /** Zimbabwean dollar */ - ZWL = 'ZWL', + /** United Arab Emirates dirham */ + AED = 'AED', + /** Afghan afghani */ + AFN = 'AFN', + /** Albanian lek */ + ALL = 'ALL', + /** Armenian dram */ + AMD = 'AMD', + /** Netherlands Antillean guilder */ + ANG = 'ANG', + /** Angolan kwanza */ + AOA = 'AOA', + /** Argentine peso */ + ARS = 'ARS', + /** Australian dollar */ + AUD = 'AUD', + /** Aruban florin */ + AWG = 'AWG', + /** Azerbaijani manat */ + AZN = 'AZN', + /** Bosnia and Herzegovina convertible mark */ + BAM = 'BAM', + /** Barbados dollar */ + BBD = 'BBD', + /** Bangladeshi taka */ + BDT = 'BDT', + /** Bulgarian lev */ + BGN = 'BGN', + /** Bahraini dinar */ + BHD = 'BHD', + /** Burundian franc */ + BIF = 'BIF', + /** Bermudian dollar */ + BMD = 'BMD', + /** Brunei dollar */ + BND = 'BND', + /** Boliviano */ + BOB = 'BOB', + /** Brazilian real */ + BRL = 'BRL', + /** Bahamian dollar */ + BSD = 'BSD', + /** Bhutanese ngultrum */ + BTN = 'BTN', + /** Botswana pula */ + BWP = 'BWP', + /** Belarusian ruble */ + BYN = 'BYN', + /** Belize dollar */ + BZD = 'BZD', + /** Canadian dollar */ + CAD = 'CAD', + /** Congolese franc */ + CDF = 'CDF', + /** Swiss franc */ + CHF = 'CHF', + /** Chilean peso */ + CLP = 'CLP', + /** Renminbi (Chinese) yuan */ + CNY = 'CNY', + /** Colombian peso */ + COP = 'COP', + /** Costa Rican colon */ + CRC = 'CRC', + /** Cuban convertible peso */ + CUC = 'CUC', + /** Cuban peso */ + CUP = 'CUP', + /** Cape Verde escudo */ + CVE = 'CVE', + /** Czech koruna */ + CZK = 'CZK', + /** Djiboutian franc */ + DJF = 'DJF', + /** Danish krone */ + DKK = 'DKK', + /** Dominican peso */ + DOP = 'DOP', + /** Algerian dinar */ + DZD = 'DZD', + /** Egyptian pound */ + EGP = 'EGP', + /** Eritrean nakfa */ + ERN = 'ERN', + /** Ethiopian birr */ + ETB = 'ETB', + /** Euro */ + EUR = 'EUR', + /** Fiji dollar */ + FJD = 'FJD', + /** Falkland Islands pound */ + FKP = 'FKP', + /** Pound sterling */ + GBP = 'GBP', + /** Georgian lari */ + GEL = 'GEL', + /** Ghanaian cedi */ + GHS = 'GHS', + /** Gibraltar pound */ + GIP = 'GIP', + /** Gambian dalasi */ + GMD = 'GMD', + /** Guinean franc */ + GNF = 'GNF', + /** Guatemalan quetzal */ + GTQ = 'GTQ', + /** Guyanese dollar */ + GYD = 'GYD', + /** Hong Kong dollar */ + HKD = 'HKD', + /** Honduran lempira */ + HNL = 'HNL', + /** Croatian kuna */ + HRK = 'HRK', + /** Haitian gourde */ + HTG = 'HTG', + /** Hungarian forint */ + HUF = 'HUF', + /** Indonesian rupiah */ + IDR = 'IDR', + /** Israeli new shekel */ + ILS = 'ILS', + /** Indian rupee */ + INR = 'INR', + /** Iraqi dinar */ + IQD = 'IQD', + /** Iranian rial */ + IRR = 'IRR', + /** Icelandic króna */ + ISK = 'ISK', + /** Jamaican dollar */ + JMD = 'JMD', + /** Jordanian dinar */ + JOD = 'JOD', + /** Japanese yen */ + JPY = 'JPY', + /** Kenyan shilling */ + KES = 'KES', + /** Kyrgyzstani som */ + KGS = 'KGS', + /** Cambodian riel */ + KHR = 'KHR', + /** Comoro franc */ + KMF = 'KMF', + /** North Korean won */ + KPW = 'KPW', + /** South Korean won */ + KRW = 'KRW', + /** Kuwaiti dinar */ + KWD = 'KWD', + /** Cayman Islands dollar */ + KYD = 'KYD', + /** Kazakhstani tenge */ + KZT = 'KZT', + /** Lao kip */ + LAK = 'LAK', + /** Lebanese pound */ + LBP = 'LBP', + /** Sri Lankan rupee */ + LKR = 'LKR', + /** Liberian dollar */ + LRD = 'LRD', + /** Lesotho loti */ + LSL = 'LSL', + /** Libyan dinar */ + LYD = 'LYD', + /** Moroccan dirham */ + MAD = 'MAD', + /** Moldovan leu */ + MDL = 'MDL', + /** Malagasy ariary */ + MGA = 'MGA', + /** Macedonian denar */ + MKD = 'MKD', + /** Myanmar kyat */ + MMK = 'MMK', + /** Mongolian tögrög */ + MNT = 'MNT', + /** Macanese pataca */ + MOP = 'MOP', + /** Mauritanian ouguiya */ + MRU = 'MRU', + /** Mauritian rupee */ + MUR = 'MUR', + /** Maldivian rufiyaa */ + MVR = 'MVR', + /** Malawian kwacha */ + MWK = 'MWK', + /** Mexican peso */ + MXN = 'MXN', + /** Malaysian ringgit */ + MYR = 'MYR', + /** Mozambican metical */ + MZN = 'MZN', + /** Namibian dollar */ + NAD = 'NAD', + /** Nigerian naira */ + NGN = 'NGN', + /** Nicaraguan córdoba */ + NIO = 'NIO', + /** Norwegian krone */ + NOK = 'NOK', + /** Nepalese rupee */ + NPR = 'NPR', + /** New Zealand dollar */ + NZD = 'NZD', + /** Omani rial */ + OMR = 'OMR', + /** Panamanian balboa */ + PAB = 'PAB', + /** Peruvian sol */ + PEN = 'PEN', + /** Papua New Guinean kina */ + PGK = 'PGK', + /** Philippine peso */ + PHP = 'PHP', + /** Pakistani rupee */ + PKR = 'PKR', + /** Polish złoty */ + PLN = 'PLN', + /** Paraguayan guaraní */ + PYG = 'PYG', + /** Qatari riyal */ + QAR = 'QAR', + /** Romanian leu */ + RON = 'RON', + /** Serbian dinar */ + RSD = 'RSD', + /** Russian ruble */ + RUB = 'RUB', + /** Rwandan franc */ + RWF = 'RWF', + /** Saudi riyal */ + SAR = 'SAR', + /** Solomon Islands dollar */ + SBD = 'SBD', + /** Seychelles rupee */ + SCR = 'SCR', + /** Sudanese pound */ + SDG = 'SDG', + /** Swedish krona/kronor */ + SEK = 'SEK', + /** Singapore dollar */ + SGD = 'SGD', + /** Saint Helena pound */ + SHP = 'SHP', + /** Sierra Leonean leone */ + SLL = 'SLL', + /** Somali shilling */ + SOS = 'SOS', + /** Surinamese dollar */ + SRD = 'SRD', + /** South Sudanese pound */ + SSP = 'SSP', + /** São Tomé and Príncipe dobra */ + STN = 'STN', + /** Salvadoran colón */ + SVC = 'SVC', + /** Syrian pound */ + SYP = 'SYP', + /** Swazi lilangeni */ + SZL = 'SZL', + /** Thai baht */ + THB = 'THB', + /** Tajikistani somoni */ + TJS = 'TJS', + /** Turkmenistan manat */ + TMT = 'TMT', + /** Tunisian dinar */ + TND = 'TND', + /** Tongan paʻanga */ + TOP = 'TOP', + /** Turkish lira */ + TRY = 'TRY', + /** Trinidad and Tobago dollar */ + TTD = 'TTD', + /** New Taiwan dollar */ + TWD = 'TWD', + /** Tanzanian shilling */ + TZS = 'TZS', + /** Ukrainian hryvnia */ + UAH = 'UAH', + /** Ugandan shilling */ + UGX = 'UGX', + /** United States dollar */ + USD = 'USD', + /** Uruguayan peso */ + UYU = 'UYU', + /** Uzbekistan som */ + UZS = 'UZS', + /** Venezuelan bolívar soberano */ + VES = 'VES', + /** Vietnamese đồng */ + VND = 'VND', + /** Vanuatu vatu */ + VUV = 'VUV', + /** Samoan tala */ + WST = 'WST', + /** CFA franc BEAC */ + XAF = 'XAF', + /** East Caribbean dollar */ + XCD = 'XCD', + /** CFA franc BCEAO */ + XOF = 'XOF', + /** CFP franc (franc Pacifique) */ + XPF = 'XPF', + /** Yemeni rial */ + YER = 'YER', + /** South African rand */ + ZAR = 'ZAR', + /** Zambian kwacha */ + ZMW = 'ZMW', + /** Zimbabwean dollar */ + ZWL = 'ZWL' } export type CurrentUser = { - __typename?: 'CurrentUser'; - channels: Array; - id: Scalars['ID']; - identifier: Scalars['String']; + __typename?: 'CurrentUser'; + channels: Array; + id: Scalars['ID']; + identifier: Scalars['String']; }; export type CurrentUserChannel = { - __typename?: 'CurrentUserChannel'; - code: Scalars['String']; - id: Scalars['ID']; - permissions: Array; - token: Scalars['String']; + __typename?: 'CurrentUserChannel'; + code: Scalars['String']; + id: Scalars['ID']; + permissions: Array; + token: Scalars['String']; }; export type CustomField = { - description?: Maybe>; - internal?: Maybe; - label?: Maybe>; - list: Scalars['Boolean']; - name: Scalars['String']; - nullable?: Maybe; - readonly?: Maybe; - type: Scalars['String']; - ui?: Maybe; -}; - -export type CustomFieldConfig = - | BooleanCustomFieldConfig - | DateTimeCustomFieldConfig - | FloatCustomFieldConfig - | IntCustomFieldConfig - | LocaleStringCustomFieldConfig - | RelationCustomFieldConfig - | StringCustomFieldConfig - | TextCustomFieldConfig; + description?: Maybe>; + internal?: Maybe; + label?: Maybe>; + list: Scalars['Boolean']; + name: Scalars['String']; + nullable?: Maybe; + readonly?: Maybe; + type: Scalars['String']; + ui?: Maybe; +}; + +export type CustomFieldConfig = BooleanCustomFieldConfig | DateTimeCustomFieldConfig | FloatCustomFieldConfig | IntCustomFieldConfig | LocaleStringCustomFieldConfig | RelationCustomFieldConfig | StringCustomFieldConfig | TextCustomFieldConfig; export type Customer = Node & { - __typename?: 'Customer'; - addresses?: Maybe>; - createdAt: Scalars['DateTime']; - customFields?: Maybe; - emailAddress: Scalars['String']; - firstName: Scalars['String']; - id: Scalars['ID']; - lastName: Scalars['String']; - orders: OrderList; - phoneNumber?: Maybe; - title?: Maybe; - updatedAt: Scalars['DateTime']; - user?: Maybe; + __typename?: 'Customer'; + addresses?: Maybe>; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + emailAddress: Scalars['String']; + firstName: Scalars['String']; + id: Scalars['ID']; + lastName: Scalars['String']; + orders: OrderList; + phoneNumber?: Maybe; + title?: Maybe; + updatedAt: Scalars['DateTime']; + user?: Maybe; }; + export type CustomerOrdersArgs = { - options?: InputMaybe; + options?: InputMaybe; }; export type CustomerFilterParameter = { - createdAt?: InputMaybe; - emailAddress?: InputMaybe; - firstName?: InputMaybe; - id?: InputMaybe; - lastName?: InputMaybe; - phoneNumber?: InputMaybe; - title?: InputMaybe; - updatedAt?: InputMaybe; + createdAt?: InputMaybe; + emailAddress?: InputMaybe; + firstName?: InputMaybe; + id?: InputMaybe; + lastName?: InputMaybe; + phoneNumber?: InputMaybe; + title?: InputMaybe; + updatedAt?: InputMaybe; }; export type CustomerGroup = Node & { - __typename?: 'CustomerGroup'; - createdAt: Scalars['DateTime']; - customFields?: Maybe; - customers: CustomerList; - id: Scalars['ID']; - name: Scalars['String']; - updatedAt: Scalars['DateTime']; + __typename?: 'CustomerGroup'; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + customers: CustomerList; + id: Scalars['ID']; + name: Scalars['String']; + updatedAt: Scalars['DateTime']; }; + export type CustomerGroupCustomersArgs = { - options?: InputMaybe; + options?: InputMaybe; }; export type CustomerList = PaginatedList & { - __typename?: 'CustomerList'; - items: Array; - totalItems: Scalars['Int']; + __typename?: 'CustomerList'; + items: Array; + totalItems: Scalars['Int']; }; export type CustomerListOptions = { - /** Allows the results to be filtered */ - filter?: InputMaybe; - /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ - filterOperator?: InputMaybe; - /** Skips the first n results, for use in pagination */ - skip?: InputMaybe; - /** Specifies which properties to sort the results by */ - sort?: InputMaybe; - /** Takes n results, for use in pagination */ - take?: InputMaybe; + /** Allows the results to be filtered */ + filter?: InputMaybe; + /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ + filterOperator?: InputMaybe; + /** Skips the first n results, for use in pagination */ + skip?: InputMaybe; + /** Specifies which properties to sort the results by */ + sort?: InputMaybe; + /** Takes n results, for use in pagination */ + take?: InputMaybe; }; export type CustomerSortParameter = { - createdAt?: InputMaybe; - emailAddress?: InputMaybe; - firstName?: InputMaybe; - id?: InputMaybe; - lastName?: InputMaybe; - phoneNumber?: InputMaybe; - title?: InputMaybe; - updatedAt?: InputMaybe; + createdAt?: InputMaybe; + emailAddress?: InputMaybe; + firstName?: InputMaybe; + id?: InputMaybe; + lastName?: InputMaybe; + phoneNumber?: InputMaybe; + title?: InputMaybe; + updatedAt?: InputMaybe; }; /** Operators for filtering on a list of Date fields */ export type DateListOperators = { - inList: Scalars['DateTime']; + inList: Scalars['DateTime']; }; /** Operators for filtering on a DateTime field */ export type DateOperators = { - after?: InputMaybe; - before?: InputMaybe; - between?: InputMaybe; - eq?: InputMaybe; - isNull?: InputMaybe; + after?: InputMaybe; + before?: InputMaybe; + between?: InputMaybe; + eq?: InputMaybe; + isNull?: InputMaybe; }; export type DateRange = { - end: Scalars['DateTime']; - start: Scalars['DateTime']; + end: Scalars['DateTime']; + start: Scalars['DateTime']; }; /** @@ -838,156 +822,156 @@ export type DateRange = { * See https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/datetime-local#Additional_attributes */ export type DateTimeCustomFieldConfig = CustomField & { - __typename?: 'DateTimeCustomFieldConfig'; - description?: Maybe>; - internal?: Maybe; - label?: Maybe>; - list: Scalars['Boolean']; - max?: Maybe; - min?: Maybe; - name: Scalars['String']; - nullable?: Maybe; - readonly?: Maybe; - step?: Maybe; - type: Scalars['String']; - ui?: Maybe; + __typename?: 'DateTimeCustomFieldConfig'; + description?: Maybe>; + internal?: Maybe; + label?: Maybe>; + list: Scalars['Boolean']; + max?: Maybe; + min?: Maybe; + name: Scalars['String']; + nullable?: Maybe; + readonly?: Maybe; + step?: Maybe; + type: Scalars['String']; + ui?: Maybe; }; export type DeletionResponse = { - __typename?: 'DeletionResponse'; - message?: Maybe; - result: DeletionResult; + __typename?: 'DeletionResponse'; + message?: Maybe; + result: DeletionResult; }; export enum DeletionResult { - /** The entity was successfully deleted */ - DELETED = 'DELETED', - /** Deletion did not take place, reason given in message */ - NOT_DELETED = 'NOT_DELETED', + /** The entity was successfully deleted */ + DELETED = 'DELETED', + /** Deletion did not take place, reason given in message */ + NOT_DELETED = 'NOT_DELETED' } export type Discount = { - __typename?: 'Discount'; - adjustmentSource: Scalars['String']; - amount: Scalars['Int']; - amountWithTax: Scalars['Int']; - description: Scalars['String']; - type: AdjustmentType; + __typename?: 'Discount'; + adjustmentSource: Scalars['String']; + amount: Scalars['Int']; + amountWithTax: Scalars['Int']; + description: Scalars['String']; + type: AdjustmentType; }; /** Returned when attempting to create a Customer with an email address already registered to an existing User. */ export type EmailAddressConflictError = ErrorResult & { - __typename?: 'EmailAddressConflictError'; - errorCode: ErrorCode; - message: Scalars['String']; + __typename?: 'EmailAddressConflictError'; + errorCode: ErrorCode; + message: Scalars['String']; }; export enum ErrorCode { - ALREADY_LOGGED_IN_ERROR = 'ALREADY_LOGGED_IN_ERROR', - COUPON_CODE_EXPIRED_ERROR = 'COUPON_CODE_EXPIRED_ERROR', - COUPON_CODE_INVALID_ERROR = 'COUPON_CODE_INVALID_ERROR', - COUPON_CODE_LIMIT_ERROR = 'COUPON_CODE_LIMIT_ERROR', - EMAIL_ADDRESS_CONFLICT_ERROR = 'EMAIL_ADDRESS_CONFLICT_ERROR', - IDENTIFIER_CHANGE_TOKEN_EXPIRED_ERROR = 'IDENTIFIER_CHANGE_TOKEN_EXPIRED_ERROR', - IDENTIFIER_CHANGE_TOKEN_INVALID_ERROR = 'IDENTIFIER_CHANGE_TOKEN_INVALID_ERROR', - INELIGIBLE_PAYMENT_METHOD_ERROR = 'INELIGIBLE_PAYMENT_METHOD_ERROR', - INELIGIBLE_SHIPPING_METHOD_ERROR = 'INELIGIBLE_SHIPPING_METHOD_ERROR', - INSUFFICIENT_STOCK_ERROR = 'INSUFFICIENT_STOCK_ERROR', - INVALID_CREDENTIALS_ERROR = 'INVALID_CREDENTIALS_ERROR', - MISSING_PASSWORD_ERROR = 'MISSING_PASSWORD_ERROR', - NATIVE_AUTH_STRATEGY_ERROR = 'NATIVE_AUTH_STRATEGY_ERROR', - NEGATIVE_QUANTITY_ERROR = 'NEGATIVE_QUANTITY_ERROR', - NOT_VERIFIED_ERROR = 'NOT_VERIFIED_ERROR', - NO_ACTIVE_ORDER_ERROR = 'NO_ACTIVE_ORDER_ERROR', - ORDER_LIMIT_ERROR = 'ORDER_LIMIT_ERROR', - ORDER_MODIFICATION_ERROR = 'ORDER_MODIFICATION_ERROR', - ORDER_PAYMENT_STATE_ERROR = 'ORDER_PAYMENT_STATE_ERROR', - ORDER_STATE_TRANSITION_ERROR = 'ORDER_STATE_TRANSITION_ERROR', - PASSWORD_ALREADY_SET_ERROR = 'PASSWORD_ALREADY_SET_ERROR', - PASSWORD_RESET_TOKEN_EXPIRED_ERROR = 'PASSWORD_RESET_TOKEN_EXPIRED_ERROR', - PASSWORD_RESET_TOKEN_INVALID_ERROR = 'PASSWORD_RESET_TOKEN_INVALID_ERROR', - PASSWORD_VALIDATION_ERROR = 'PASSWORD_VALIDATION_ERROR', - PAYMENT_DECLINED_ERROR = 'PAYMENT_DECLINED_ERROR', - PAYMENT_FAILED_ERROR = 'PAYMENT_FAILED_ERROR', - UNKNOWN_ERROR = 'UNKNOWN_ERROR', - VERIFICATION_TOKEN_EXPIRED_ERROR = 'VERIFICATION_TOKEN_EXPIRED_ERROR', - VERIFICATION_TOKEN_INVALID_ERROR = 'VERIFICATION_TOKEN_INVALID_ERROR', + ALREADY_LOGGED_IN_ERROR = 'ALREADY_LOGGED_IN_ERROR', + COUPON_CODE_EXPIRED_ERROR = 'COUPON_CODE_EXPIRED_ERROR', + COUPON_CODE_INVALID_ERROR = 'COUPON_CODE_INVALID_ERROR', + COUPON_CODE_LIMIT_ERROR = 'COUPON_CODE_LIMIT_ERROR', + EMAIL_ADDRESS_CONFLICT_ERROR = 'EMAIL_ADDRESS_CONFLICT_ERROR', + IDENTIFIER_CHANGE_TOKEN_EXPIRED_ERROR = 'IDENTIFIER_CHANGE_TOKEN_EXPIRED_ERROR', + IDENTIFIER_CHANGE_TOKEN_INVALID_ERROR = 'IDENTIFIER_CHANGE_TOKEN_INVALID_ERROR', + INELIGIBLE_PAYMENT_METHOD_ERROR = 'INELIGIBLE_PAYMENT_METHOD_ERROR', + INELIGIBLE_SHIPPING_METHOD_ERROR = 'INELIGIBLE_SHIPPING_METHOD_ERROR', + INSUFFICIENT_STOCK_ERROR = 'INSUFFICIENT_STOCK_ERROR', + INVALID_CREDENTIALS_ERROR = 'INVALID_CREDENTIALS_ERROR', + MISSING_PASSWORD_ERROR = 'MISSING_PASSWORD_ERROR', + NATIVE_AUTH_STRATEGY_ERROR = 'NATIVE_AUTH_STRATEGY_ERROR', + NEGATIVE_QUANTITY_ERROR = 'NEGATIVE_QUANTITY_ERROR', + NOT_VERIFIED_ERROR = 'NOT_VERIFIED_ERROR', + NO_ACTIVE_ORDER_ERROR = 'NO_ACTIVE_ORDER_ERROR', + ORDER_LIMIT_ERROR = 'ORDER_LIMIT_ERROR', + ORDER_MODIFICATION_ERROR = 'ORDER_MODIFICATION_ERROR', + ORDER_PAYMENT_STATE_ERROR = 'ORDER_PAYMENT_STATE_ERROR', + ORDER_STATE_TRANSITION_ERROR = 'ORDER_STATE_TRANSITION_ERROR', + PASSWORD_ALREADY_SET_ERROR = 'PASSWORD_ALREADY_SET_ERROR', + PASSWORD_RESET_TOKEN_EXPIRED_ERROR = 'PASSWORD_RESET_TOKEN_EXPIRED_ERROR', + PASSWORD_RESET_TOKEN_INVALID_ERROR = 'PASSWORD_RESET_TOKEN_INVALID_ERROR', + PASSWORD_VALIDATION_ERROR = 'PASSWORD_VALIDATION_ERROR', + PAYMENT_DECLINED_ERROR = 'PAYMENT_DECLINED_ERROR', + PAYMENT_FAILED_ERROR = 'PAYMENT_FAILED_ERROR', + UNKNOWN_ERROR = 'UNKNOWN_ERROR', + VERIFICATION_TOKEN_EXPIRED_ERROR = 'VERIFICATION_TOKEN_EXPIRED_ERROR', + VERIFICATION_TOKEN_INVALID_ERROR = 'VERIFICATION_TOKEN_INVALID_ERROR' } export type ErrorResult = { - errorCode: ErrorCode; - message: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; }; export type Facet = Node & { - __typename?: 'Facet'; - code: Scalars['String']; - createdAt: Scalars['DateTime']; - customFields?: Maybe; - id: Scalars['ID']; - languageCode: LanguageCode; - name: Scalars['String']; - translations: Array; - updatedAt: Scalars['DateTime']; - values: Array; + __typename?: 'Facet'; + code: Scalars['String']; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + id: Scalars['ID']; + languageCode: LanguageCode; + name: Scalars['String']; + translations: Array; + updatedAt: Scalars['DateTime']; + values: Array; }; export type FacetFilterParameter = { - code?: InputMaybe; - createdAt?: InputMaybe; - id?: InputMaybe; - languageCode?: InputMaybe; - name?: InputMaybe; - updatedAt?: InputMaybe; + code?: InputMaybe; + createdAt?: InputMaybe; + id?: InputMaybe; + languageCode?: InputMaybe; + name?: InputMaybe; + updatedAt?: InputMaybe; }; export type FacetList = PaginatedList & { - __typename?: 'FacetList'; - items: Array; - totalItems: Scalars['Int']; + __typename?: 'FacetList'; + items: Array; + totalItems: Scalars['Int']; }; export type FacetListOptions = { - /** Allows the results to be filtered */ - filter?: InputMaybe; - /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ - filterOperator?: InputMaybe; - /** Skips the first n results, for use in pagination */ - skip?: InputMaybe; - /** Specifies which properties to sort the results by */ - sort?: InputMaybe; - /** Takes n results, for use in pagination */ - take?: InputMaybe; + /** Allows the results to be filtered */ + filter?: InputMaybe; + /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ + filterOperator?: InputMaybe; + /** Skips the first n results, for use in pagination */ + skip?: InputMaybe; + /** Specifies which properties to sort the results by */ + sort?: InputMaybe; + /** Takes n results, for use in pagination */ + take?: InputMaybe; }; export type FacetSortParameter = { - code?: InputMaybe; - createdAt?: InputMaybe; - id?: InputMaybe; - name?: InputMaybe; - updatedAt?: InputMaybe; + code?: InputMaybe; + createdAt?: InputMaybe; + id?: InputMaybe; + name?: InputMaybe; + updatedAt?: InputMaybe; }; export type FacetTranslation = { - __typename?: 'FacetTranslation'; - createdAt: Scalars['DateTime']; - id: Scalars['ID']; - languageCode: LanguageCode; - name: Scalars['String']; - updatedAt: Scalars['DateTime']; + __typename?: 'FacetTranslation'; + createdAt: Scalars['DateTime']; + id: Scalars['ID']; + languageCode: LanguageCode; + name: Scalars['String']; + updatedAt: Scalars['DateTime']; }; export type FacetValue = Node & { - __typename?: 'FacetValue'; - code: Scalars['String']; - createdAt: Scalars['DateTime']; - customFields?: Maybe; - facet: Facet; - id: Scalars['ID']; - languageCode: LanguageCode; - name: Scalars['String']; - translations: Array; - updatedAt: Scalars['DateTime']; + __typename?: 'FacetValue'; + code: Scalars['String']; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + facet: Facet; + id: Scalars['ID']; + languageCode: LanguageCode; + name: Scalars['String']; + translations: Array; + updatedAt: Scalars['DateTime']; }; /** @@ -999,8 +983,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>; }; /** @@ -1008,145 +992,145 @@ export type FacetValueFilterInput = { * by the search, and in what quantity. */ export type FacetValueResult = { - __typename?: 'FacetValueResult'; - count: Scalars['Int']; - facetValue: FacetValue; + __typename?: 'FacetValueResult'; + count: Scalars['Int']; + facetValue: FacetValue; }; export type FacetValueTranslation = { - __typename?: 'FacetValueTranslation'; - createdAt: Scalars['DateTime']; - id: Scalars['ID']; - languageCode: LanguageCode; - name: Scalars['String']; - updatedAt: Scalars['DateTime']; + __typename?: 'FacetValueTranslation'; + createdAt: Scalars['DateTime']; + id: Scalars['ID']; + languageCode: LanguageCode; + name: Scalars['String']; + updatedAt: Scalars['DateTime']; }; export type FloatCustomFieldConfig = CustomField & { - __typename?: 'FloatCustomFieldConfig'; - description?: Maybe>; - internal?: Maybe; - label?: Maybe>; - list: Scalars['Boolean']; - max?: Maybe; - min?: Maybe; - name: Scalars['String']; - nullable?: Maybe; - readonly?: Maybe; - step?: Maybe; - type: Scalars['String']; - ui?: Maybe; + __typename?: 'FloatCustomFieldConfig'; + description?: Maybe>; + internal?: Maybe; + label?: Maybe>; + list: Scalars['Boolean']; + max?: Maybe; + min?: Maybe; + name: Scalars['String']; + nullable?: Maybe; + readonly?: Maybe; + step?: Maybe; + type: Scalars['String']; + ui?: Maybe; }; export type Fulfillment = Node & { - __typename?: 'Fulfillment'; - createdAt: Scalars['DateTime']; - customFields?: Maybe; - id: Scalars['ID']; - lines: Array; - method: Scalars['String']; - state: Scalars['String']; - /** @deprecated Use the `lines` field instead */ - summary: Array; - trackingCode?: Maybe; - updatedAt: Scalars['DateTime']; + __typename?: 'Fulfillment'; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + id: Scalars['ID']; + lines: Array; + method: Scalars['String']; + state: Scalars['String']; + /** @deprecated Use the `lines` field instead */ + summary: Array; + trackingCode?: Maybe; + updatedAt: Scalars['DateTime']; }; export type FulfillmentLine = { - __typename?: 'FulfillmentLine'; - fulfillment: Fulfillment; - fulfillmentId: Scalars['ID']; - orderLine: OrderLine; - orderLineId: Scalars['ID']; - quantity: Scalars['Int']; + __typename?: 'FulfillmentLine'; + fulfillment: Fulfillment; + fulfillmentId: Scalars['ID']; + orderLine: OrderLine; + orderLineId: Scalars['ID']; + quantity: Scalars['Int']; }; export enum GlobalFlag { - FALSE = 'FALSE', - INHERIT = 'INHERIT', - TRUE = 'TRUE', + FALSE = 'FALSE', + INHERIT = 'INHERIT', + TRUE = 'TRUE' } export type HistoryEntry = Node & { - __typename?: 'HistoryEntry'; - createdAt: Scalars['DateTime']; - data: Scalars['JSON']; - id: Scalars['ID']; - type: HistoryEntryType; - updatedAt: Scalars['DateTime']; + __typename?: 'HistoryEntry'; + createdAt: Scalars['DateTime']; + data: Scalars['JSON']; + id: Scalars['ID']; + type: HistoryEntryType; + updatedAt: Scalars['DateTime']; }; export type HistoryEntryFilterParameter = { - createdAt?: InputMaybe; - id?: InputMaybe; - type?: InputMaybe; - updatedAt?: InputMaybe; + createdAt?: InputMaybe; + id?: InputMaybe; + type?: InputMaybe; + updatedAt?: InputMaybe; }; export type HistoryEntryList = PaginatedList & { - __typename?: 'HistoryEntryList'; - items: Array; - totalItems: Scalars['Int']; + __typename?: 'HistoryEntryList'; + items: Array; + totalItems: Scalars['Int']; }; export type HistoryEntryListOptions = { - /** Allows the results to be filtered */ - filter?: InputMaybe; - /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ - filterOperator?: InputMaybe; - /** Skips the first n results, for use in pagination */ - skip?: InputMaybe; - /** Specifies which properties to sort the results by */ - sort?: InputMaybe; - /** Takes n results, for use in pagination */ - take?: InputMaybe; + /** Allows the results to be filtered */ + filter?: InputMaybe; + /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ + filterOperator?: InputMaybe; + /** Skips the first n results, for use in pagination */ + skip?: InputMaybe; + /** Specifies which properties to sort the results by */ + sort?: InputMaybe; + /** Takes n results, for use in pagination */ + take?: InputMaybe; }; export type HistoryEntrySortParameter = { - createdAt?: InputMaybe; - id?: InputMaybe; - updatedAt?: InputMaybe; + createdAt?: InputMaybe; + id?: InputMaybe; + updatedAt?: InputMaybe; }; export enum HistoryEntryType { - CUSTOMER_ADDED_TO_GROUP = 'CUSTOMER_ADDED_TO_GROUP', - CUSTOMER_ADDRESS_CREATED = 'CUSTOMER_ADDRESS_CREATED', - CUSTOMER_ADDRESS_DELETED = 'CUSTOMER_ADDRESS_DELETED', - CUSTOMER_ADDRESS_UPDATED = 'CUSTOMER_ADDRESS_UPDATED', - CUSTOMER_DETAIL_UPDATED = 'CUSTOMER_DETAIL_UPDATED', - CUSTOMER_EMAIL_UPDATE_REQUESTED = 'CUSTOMER_EMAIL_UPDATE_REQUESTED', - CUSTOMER_EMAIL_UPDATE_VERIFIED = 'CUSTOMER_EMAIL_UPDATE_VERIFIED', - CUSTOMER_NOTE = 'CUSTOMER_NOTE', - CUSTOMER_PASSWORD_RESET_REQUESTED = 'CUSTOMER_PASSWORD_RESET_REQUESTED', - CUSTOMER_PASSWORD_RESET_VERIFIED = 'CUSTOMER_PASSWORD_RESET_VERIFIED', - CUSTOMER_PASSWORD_UPDATED = 'CUSTOMER_PASSWORD_UPDATED', - CUSTOMER_REGISTERED = 'CUSTOMER_REGISTERED', - CUSTOMER_REMOVED_FROM_GROUP = 'CUSTOMER_REMOVED_FROM_GROUP', - CUSTOMER_VERIFIED = 'CUSTOMER_VERIFIED', - ORDER_CANCELLATION = 'ORDER_CANCELLATION', - ORDER_COUPON_APPLIED = 'ORDER_COUPON_APPLIED', - ORDER_COUPON_REMOVED = 'ORDER_COUPON_REMOVED', - ORDER_FULFILLMENT = 'ORDER_FULFILLMENT', - ORDER_FULFILLMENT_TRANSITION = 'ORDER_FULFILLMENT_TRANSITION', - ORDER_MODIFIED = 'ORDER_MODIFIED', - ORDER_NOTE = 'ORDER_NOTE', - ORDER_PAYMENT_TRANSITION = 'ORDER_PAYMENT_TRANSITION', - ORDER_REFUND_TRANSITION = 'ORDER_REFUND_TRANSITION', - ORDER_STATE_TRANSITION = 'ORDER_STATE_TRANSITION', + CUSTOMER_ADDED_TO_GROUP = 'CUSTOMER_ADDED_TO_GROUP', + CUSTOMER_ADDRESS_CREATED = 'CUSTOMER_ADDRESS_CREATED', + CUSTOMER_ADDRESS_DELETED = 'CUSTOMER_ADDRESS_DELETED', + CUSTOMER_ADDRESS_UPDATED = 'CUSTOMER_ADDRESS_UPDATED', + CUSTOMER_DETAIL_UPDATED = 'CUSTOMER_DETAIL_UPDATED', + CUSTOMER_EMAIL_UPDATE_REQUESTED = 'CUSTOMER_EMAIL_UPDATE_REQUESTED', + CUSTOMER_EMAIL_UPDATE_VERIFIED = 'CUSTOMER_EMAIL_UPDATE_VERIFIED', + CUSTOMER_NOTE = 'CUSTOMER_NOTE', + CUSTOMER_PASSWORD_RESET_REQUESTED = 'CUSTOMER_PASSWORD_RESET_REQUESTED', + CUSTOMER_PASSWORD_RESET_VERIFIED = 'CUSTOMER_PASSWORD_RESET_VERIFIED', + CUSTOMER_PASSWORD_UPDATED = 'CUSTOMER_PASSWORD_UPDATED', + CUSTOMER_REGISTERED = 'CUSTOMER_REGISTERED', + CUSTOMER_REMOVED_FROM_GROUP = 'CUSTOMER_REMOVED_FROM_GROUP', + CUSTOMER_VERIFIED = 'CUSTOMER_VERIFIED', + ORDER_CANCELLATION = 'ORDER_CANCELLATION', + ORDER_COUPON_APPLIED = 'ORDER_COUPON_APPLIED', + ORDER_COUPON_REMOVED = 'ORDER_COUPON_REMOVED', + ORDER_FULFILLMENT = 'ORDER_FULFILLMENT', + ORDER_FULFILLMENT_TRANSITION = 'ORDER_FULFILLMENT_TRANSITION', + ORDER_MODIFIED = 'ORDER_MODIFIED', + ORDER_NOTE = 'ORDER_NOTE', + ORDER_PAYMENT_TRANSITION = 'ORDER_PAYMENT_TRANSITION', + ORDER_REFUND_TRANSITION = 'ORDER_REFUND_TRANSITION', + ORDER_STATE_TRANSITION = 'ORDER_STATE_TRANSITION' } /** Operators for filtering on a list of ID fields */ export type IdListOperators = { - inList: Scalars['ID']; + inList: Scalars['ID']; }; /** Operators for filtering on an ID field */ export type IdOperators = { - eq?: InputMaybe; - in?: InputMaybe>; - isNull?: InputMaybe; - notEq?: InputMaybe; - notIn?: InputMaybe>; + eq?: InputMaybe; + in?: InputMaybe>; + isNull?: InputMaybe; + notEq?: InputMaybe; + notIn?: InputMaybe>; }; /** @@ -1154,9 +1138,9 @@ export type IdOperators = { * expired according to the `verificationTokenDuration` setting in the AuthOptions. */ export type IdentifierChangeTokenExpiredError = ErrorResult & { - __typename?: 'IdentifierChangeTokenExpiredError'; - errorCode: ErrorCode; - message: Scalars['String']; + __typename?: 'IdentifierChangeTokenExpiredError'; + errorCode: ErrorCode; + message: Scalars['String']; }; /** @@ -1164,57 +1148,57 @@ export type IdentifierChangeTokenExpiredError = ErrorResult & { * invalid or does not match any expected tokens. */ export type IdentifierChangeTokenInvalidError = ErrorResult & { - __typename?: 'IdentifierChangeTokenInvalidError'; - errorCode: ErrorCode; - message: Scalars['String']; + __typename?: 'IdentifierChangeTokenInvalidError'; + errorCode: ErrorCode; + message: Scalars['String']; }; /** Returned when attempting to add a Payment using a PaymentMethod for which the Order is not eligible. */ export type IneligiblePaymentMethodError = ErrorResult & { - __typename?: 'IneligiblePaymentMethodError'; - eligibilityCheckerMessage?: Maybe; - errorCode: ErrorCode; - message: Scalars['String']; + __typename?: 'IneligiblePaymentMethodError'; + eligibilityCheckerMessage?: Maybe; + errorCode: ErrorCode; + message: Scalars['String']; }; /** Returned when attempting to set a ShippingMethod for which the Order is not eligible */ export type IneligibleShippingMethodError = ErrorResult & { - __typename?: 'IneligibleShippingMethodError'; - errorCode: ErrorCode; - message: Scalars['String']; + __typename?: 'IneligibleShippingMethodError'; + errorCode: ErrorCode; + message: Scalars['String']; }; /** Returned when attempting to add more items to the Order than are available */ export type InsufficientStockError = ErrorResult & { - __typename?: 'InsufficientStockError'; - errorCode: ErrorCode; - message: Scalars['String']; - order: Order; - quantityAvailable: Scalars['Int']; + __typename?: 'InsufficientStockError'; + errorCode: ErrorCode; + message: Scalars['String']; + order: Order; + quantityAvailable: Scalars['Int']; }; export type IntCustomFieldConfig = CustomField & { - __typename?: 'IntCustomFieldConfig'; - description?: Maybe>; - internal?: Maybe; - label?: Maybe>; - list: Scalars['Boolean']; - max?: Maybe; - min?: Maybe; - name: Scalars['String']; - nullable?: Maybe; - readonly?: Maybe; - step?: Maybe; - type: Scalars['String']; - ui?: Maybe; + __typename?: 'IntCustomFieldConfig'; + description?: Maybe>; + internal?: Maybe; + label?: Maybe>; + list: Scalars['Boolean']; + max?: Maybe; + min?: Maybe; + name: Scalars['String']; + nullable?: Maybe; + readonly?: Maybe; + step?: Maybe; + type: Scalars['String']; + ui?: Maybe; }; /** Returned if the user authentication credentials are not valid */ export type InvalidCredentialsError = ErrorResult & { - __typename?: 'InvalidCredentialsError'; - authenticationError: Scalars['String']; - errorCode: ErrorCode; - message: Scalars['String']; + __typename?: 'InvalidCredentialsError'; + authenticationError: Scalars['String']; + errorCode: ErrorCode; + message: Scalars['String']; }; /** @@ -1227,634 +1211,657 @@ export type InvalidCredentialsError = ErrorResult & { * @docsCategory common */ export enum LanguageCode { - /** Afrikaans */ - af = 'af', - /** Akan */ - ak = 'ak', - /** Amharic */ - am = 'am', - /** Arabic */ - ar = 'ar', - /** Assamese */ - as = 'as', - /** Azerbaijani */ - az = 'az', - /** Belarusian */ - be = 'be', - /** Bulgarian */ - bg = 'bg', - /** Bambara */ - bm = 'bm', - /** Bangla */ - bn = 'bn', - /** Tibetan */ - bo = 'bo', - /** Breton */ - br = 'br', - /** Bosnian */ - bs = 'bs', - /** Catalan */ - ca = 'ca', - /** Chechen */ - ce = 'ce', - /** Corsican */ - co = 'co', - /** Czech */ - cs = 'cs', - /** Church Slavic */ - cu = 'cu', - /** Welsh */ - cy = 'cy', - /** Danish */ - da = 'da', - /** German */ - de = 'de', - /** Austrian German */ - de_AT = 'de_AT', - /** Swiss High German */ - de_CH = 'de_CH', - /** Dzongkha */ - dz = 'dz', - /** Ewe */ - ee = 'ee', - /** Greek */ - el = 'el', - /** English */ - en = 'en', - /** Australian English */ - en_AU = 'en_AU', - /** Canadian English */ - en_CA = 'en_CA', - /** British English */ - en_GB = 'en_GB', - /** American English */ - en_US = 'en_US', - /** Esperanto */ - eo = 'eo', - /** Spanish */ - es = 'es', - /** European Spanish */ - es_ES = 'es_ES', - /** Mexican Spanish */ - es_MX = 'es_MX', - /** Estonian */ - et = 'et', - /** Basque */ - eu = 'eu', - /** Persian */ - fa = 'fa', - /** Dari */ - fa_AF = 'fa_AF', - /** Fulah */ - ff = 'ff', - /** Finnish */ - fi = 'fi', - /** Faroese */ - fo = 'fo', - /** French */ - fr = 'fr', - /** Canadian French */ - fr_CA = 'fr_CA', - /** Swiss French */ - fr_CH = 'fr_CH', - /** Western Frisian */ - fy = 'fy', - /** Irish */ - ga = 'ga', - /** Scottish Gaelic */ - gd = 'gd', - /** Galician */ - gl = 'gl', - /** Gujarati */ - gu = 'gu', - /** Manx */ - gv = 'gv', - /** Hausa */ - ha = 'ha', - /** Hebrew */ - he = 'he', - /** Hindi */ - hi = 'hi', - /** Croatian */ - hr = 'hr', - /** Haitian Creole */ - ht = 'ht', - /** Hungarian */ - hu = 'hu', - /** Armenian */ - hy = 'hy', - /** Interlingua */ - ia = 'ia', - /** Indonesian */ - id = 'id', - /** Igbo */ - ig = 'ig', - /** Sichuan Yi */ - ii = 'ii', - /** Icelandic */ - is = 'is', - /** Italian */ - it = 'it', - /** Japanese */ - ja = 'ja', - /** Javanese */ - jv = 'jv', - /** Georgian */ - ka = 'ka', - /** Kikuyu */ - ki = 'ki', - /** Kazakh */ - kk = 'kk', - /** Kalaallisut */ - kl = 'kl', - /** Khmer */ - km = 'km', - /** Kannada */ - kn = 'kn', - /** Korean */ - ko = 'ko', - /** Kashmiri */ - ks = 'ks', - /** Kurdish */ - ku = 'ku', - /** Cornish */ - kw = 'kw', - /** Kyrgyz */ - ky = 'ky', - /** Latin */ - la = 'la', - /** Luxembourgish */ - lb = 'lb', - /** Ganda */ - lg = 'lg', - /** Lingala */ - ln = 'ln', - /** Lao */ - lo = 'lo', - /** Lithuanian */ - lt = 'lt', - /** Luba-Katanga */ - lu = 'lu', - /** Latvian */ - lv = 'lv', - /** Malagasy */ - mg = 'mg', - /** Maori */ - mi = 'mi', - /** Macedonian */ - mk = 'mk', - /** Malayalam */ - ml = 'ml', - /** Mongolian */ - mn = 'mn', - /** Marathi */ - mr = 'mr', - /** Malay */ - ms = 'ms', - /** Maltese */ - mt = 'mt', - /** Burmese */ - my = 'my', - /** Norwegian Bokmål */ - nb = 'nb', - /** North Ndebele */ - nd = 'nd', - /** Nepali */ - ne = 'ne', - /** Dutch */ - nl = 'nl', - /** Flemish */ - nl_BE = 'nl_BE', - /** Norwegian Nynorsk */ - nn = 'nn', - /** Nyanja */ - ny = 'ny', - /** Oromo */ - om = 'om', - /** Odia */ - or = 'or', - /** Ossetic */ - os = 'os', - /** Punjabi */ - pa = 'pa', - /** Polish */ - pl = 'pl', - /** Pashto */ - ps = 'ps', - /** Portuguese */ - pt = 'pt', - /** Brazilian Portuguese */ - pt_BR = 'pt_BR', - /** European Portuguese */ - pt_PT = 'pt_PT', - /** Quechua */ - qu = 'qu', - /** Romansh */ - rm = 'rm', - /** Rundi */ - rn = 'rn', - /** Romanian */ - ro = 'ro', - /** Moldavian */ - ro_MD = 'ro_MD', - /** Russian */ - ru = 'ru', - /** Kinyarwanda */ - rw = 'rw', - /** Sanskrit */ - sa = 'sa', - /** Sindhi */ - sd = 'sd', - /** Northern Sami */ - se = 'se', - /** Sango */ - sg = 'sg', - /** Sinhala */ - si = 'si', - /** Slovak */ - sk = 'sk', - /** Slovenian */ - sl = 'sl', - /** Samoan */ - sm = 'sm', - /** Shona */ - sn = 'sn', - /** Somali */ - so = 'so', - /** Albanian */ - sq = 'sq', - /** Serbian */ - sr = 'sr', - /** Southern Sotho */ - st = 'st', - /** Sundanese */ - su = 'su', - /** Swedish */ - sv = 'sv', - /** Swahili */ - sw = 'sw', - /** Congo Swahili */ - sw_CD = 'sw_CD', - /** Tamil */ - ta = 'ta', - /** Telugu */ - te = 'te', - /** Tajik */ - tg = 'tg', - /** Thai */ - th = 'th', - /** Tigrinya */ - ti = 'ti', - /** Turkmen */ - tk = 'tk', - /** Tongan */ - to = 'to', - /** Turkish */ - tr = 'tr', - /** Tatar */ - tt = 'tt', - /** Uyghur */ - ug = 'ug', - /** Ukrainian */ - uk = 'uk', - /** Urdu */ - ur = 'ur', - /** Uzbek */ - uz = 'uz', - /** Vietnamese */ - vi = 'vi', - /** Volapük */ - vo = 'vo', - /** Wolof */ - wo = 'wo', - /** Xhosa */ - xh = 'xh', - /** Yiddish */ - yi = 'yi', - /** Yoruba */ - yo = 'yo', - /** Chinese */ - zh = 'zh', - /** Simplified Chinese */ - zh_Hans = 'zh_Hans', - /** Traditional Chinese */ - zh_Hant = 'zh_Hant', - /** Zulu */ - zu = 'zu', + /** Afrikaans */ + af = 'af', + /** Akan */ + ak = 'ak', + /** Amharic */ + am = 'am', + /** Arabic */ + ar = 'ar', + /** Assamese */ + as = 'as', + /** Azerbaijani */ + az = 'az', + /** Belarusian */ + be = 'be', + /** Bulgarian */ + bg = 'bg', + /** Bambara */ + bm = 'bm', + /** Bangla */ + bn = 'bn', + /** Tibetan */ + bo = 'bo', + /** Breton */ + br = 'br', + /** Bosnian */ + bs = 'bs', + /** Catalan */ + ca = 'ca', + /** Chechen */ + ce = 'ce', + /** Corsican */ + co = 'co', + /** Czech */ + cs = 'cs', + /** Church Slavic */ + cu = 'cu', + /** Welsh */ + cy = 'cy', + /** Danish */ + da = 'da', + /** German */ + de = 'de', + /** Austrian German */ + de_AT = 'de_AT', + /** Swiss High German */ + de_CH = 'de_CH', + /** Dzongkha */ + dz = 'dz', + /** Ewe */ + ee = 'ee', + /** Greek */ + el = 'el', + /** English */ + en = 'en', + /** Australian English */ + en_AU = 'en_AU', + /** Canadian English */ + en_CA = 'en_CA', + /** British English */ + en_GB = 'en_GB', + /** American English */ + en_US = 'en_US', + /** Esperanto */ + eo = 'eo', + /** Spanish */ + es = 'es', + /** European Spanish */ + es_ES = 'es_ES', + /** Mexican Spanish */ + es_MX = 'es_MX', + /** Estonian */ + et = 'et', + /** Basque */ + eu = 'eu', + /** Persian */ + fa = 'fa', + /** Dari */ + fa_AF = 'fa_AF', + /** Fulah */ + ff = 'ff', + /** Finnish */ + fi = 'fi', + /** Faroese */ + fo = 'fo', + /** French */ + fr = 'fr', + /** Canadian French */ + fr_CA = 'fr_CA', + /** Swiss French */ + fr_CH = 'fr_CH', + /** Western Frisian */ + fy = 'fy', + /** Irish */ + ga = 'ga', + /** Scottish Gaelic */ + gd = 'gd', + /** Galician */ + gl = 'gl', + /** Gujarati */ + gu = 'gu', + /** Manx */ + gv = 'gv', + /** Hausa */ + ha = 'ha', + /** Hebrew */ + he = 'he', + /** Hindi */ + hi = 'hi', + /** Croatian */ + hr = 'hr', + /** Haitian Creole */ + ht = 'ht', + /** Hungarian */ + hu = 'hu', + /** Armenian */ + hy = 'hy', + /** Interlingua */ + ia = 'ia', + /** Indonesian */ + id = 'id', + /** Igbo */ + ig = 'ig', + /** Sichuan Yi */ + ii = 'ii', + /** Icelandic */ + is = 'is', + /** Italian */ + it = 'it', + /** Japanese */ + ja = 'ja', + /** Javanese */ + jv = 'jv', + /** Georgian */ + ka = 'ka', + /** Kikuyu */ + ki = 'ki', + /** Kazakh */ + kk = 'kk', + /** Kalaallisut */ + kl = 'kl', + /** Khmer */ + km = 'km', + /** Kannada */ + kn = 'kn', + /** Korean */ + ko = 'ko', + /** Kashmiri */ + ks = 'ks', + /** Kurdish */ + ku = 'ku', + /** Cornish */ + kw = 'kw', + /** Kyrgyz */ + ky = 'ky', + /** Latin */ + la = 'la', + /** Luxembourgish */ + lb = 'lb', + /** Ganda */ + lg = 'lg', + /** Lingala */ + ln = 'ln', + /** Lao */ + lo = 'lo', + /** Lithuanian */ + lt = 'lt', + /** Luba-Katanga */ + lu = 'lu', + /** Latvian */ + lv = 'lv', + /** Malagasy */ + mg = 'mg', + /** Maori */ + mi = 'mi', + /** Macedonian */ + mk = 'mk', + /** Malayalam */ + ml = 'ml', + /** Mongolian */ + mn = 'mn', + /** Marathi */ + mr = 'mr', + /** Malay */ + ms = 'ms', + /** Maltese */ + mt = 'mt', + /** Burmese */ + my = 'my', + /** Norwegian Bokmål */ + nb = 'nb', + /** North Ndebele */ + nd = 'nd', + /** Nepali */ + ne = 'ne', + /** Dutch */ + nl = 'nl', + /** Flemish */ + nl_BE = 'nl_BE', + /** Norwegian Nynorsk */ + nn = 'nn', + /** Nyanja */ + ny = 'ny', + /** Oromo */ + om = 'om', + /** Odia */ + or = 'or', + /** Ossetic */ + os = 'os', + /** Punjabi */ + pa = 'pa', + /** Polish */ + pl = 'pl', + /** Pashto */ + ps = 'ps', + /** Portuguese */ + pt = 'pt', + /** Brazilian Portuguese */ + pt_BR = 'pt_BR', + /** European Portuguese */ + pt_PT = 'pt_PT', + /** Quechua */ + qu = 'qu', + /** Romansh */ + rm = 'rm', + /** Rundi */ + rn = 'rn', + /** Romanian */ + ro = 'ro', + /** Moldavian */ + ro_MD = 'ro_MD', + /** Russian */ + ru = 'ru', + /** Kinyarwanda */ + rw = 'rw', + /** Sanskrit */ + sa = 'sa', + /** Sindhi */ + sd = 'sd', + /** Northern Sami */ + se = 'se', + /** Sango */ + sg = 'sg', + /** Sinhala */ + si = 'si', + /** Slovak */ + sk = 'sk', + /** Slovenian */ + sl = 'sl', + /** Samoan */ + sm = 'sm', + /** Shona */ + sn = 'sn', + /** Somali */ + so = 'so', + /** Albanian */ + sq = 'sq', + /** Serbian */ + sr = 'sr', + /** Southern Sotho */ + st = 'st', + /** Sundanese */ + su = 'su', + /** Swedish */ + sv = 'sv', + /** Swahili */ + sw = 'sw', + /** Congo Swahili */ + sw_CD = 'sw_CD', + /** Tamil */ + ta = 'ta', + /** Telugu */ + te = 'te', + /** Tajik */ + tg = 'tg', + /** Thai */ + th = 'th', + /** Tigrinya */ + ti = 'ti', + /** Turkmen */ + tk = 'tk', + /** Tongan */ + to = 'to', + /** Turkish */ + tr = 'tr', + /** Tatar */ + tt = 'tt', + /** Uyghur */ + ug = 'ug', + /** Ukrainian */ + uk = 'uk', + /** Urdu */ + ur = 'ur', + /** Uzbek */ + uz = 'uz', + /** Vietnamese */ + vi = 'vi', + /** Volapük */ + vo = 'vo', + /** Wolof */ + wo = 'wo', + /** Xhosa */ + xh = 'xh', + /** Yiddish */ + yi = 'yi', + /** Yoruba */ + yo = 'yo', + /** Chinese */ + zh = 'zh', + /** Simplified Chinese */ + zh_Hans = 'zh_Hans', + /** Traditional Chinese */ + zh_Hant = 'zh_Hant', + /** Zulu */ + zu = 'zu' } export type LocaleStringCustomFieldConfig = CustomField & { - __typename?: 'LocaleStringCustomFieldConfig'; - description?: Maybe>; - internal?: Maybe; - label?: Maybe>; - length?: Maybe; - list: Scalars['Boolean']; - name: Scalars['String']; - nullable?: Maybe; - pattern?: Maybe; - readonly?: Maybe; - type: Scalars['String']; - ui?: Maybe; + __typename?: 'LocaleStringCustomFieldConfig'; + description?: Maybe>; + internal?: Maybe; + label?: Maybe>; + length?: Maybe; + list: Scalars['Boolean']; + name: Scalars['String']; + nullable?: Maybe; + pattern?: Maybe; + readonly?: Maybe; + type: Scalars['String']; + ui?: Maybe; }; export type LocalizedString = { - __typename?: 'LocalizedString'; - languageCode: LanguageCode; - value: Scalars['String']; + __typename?: 'LocalizedString'; + languageCode: LanguageCode; + value: Scalars['String']; }; export enum LogicalOperator { - AND = 'AND', - OR = 'OR', + AND = 'AND', + OR = 'OR' } /** Returned when attempting to register or verify a customer account without a password, when one is required. */ export type MissingPasswordError = ErrorResult & { - __typename?: 'MissingPasswordError'; - errorCode: ErrorCode; - message: Scalars['String']; + __typename?: 'MissingPasswordError'; + errorCode: ErrorCode; + message: Scalars['String']; }; export type MollieAmount = { - __typename?: 'MollieAmount'; - currency?: Maybe; - value?: Maybe; + __typename?: 'MollieAmount'; + currency?: Maybe; + value?: Maybe; }; export type MolliePaymentIntent = { - __typename?: 'MolliePaymentIntent'; - url: Scalars['String']; + __typename?: 'MolliePaymentIntent'; + url: Scalars['String']; }; export type MolliePaymentIntentError = ErrorResult & { - __typename?: 'MolliePaymentIntentError'; - errorCode: ErrorCode; - message: Scalars['String']; + __typename?: 'MolliePaymentIntentError'; + errorCode: ErrorCode; + message: Scalars['String']; }; export type MolliePaymentIntentInput = { - molliePaymentMethodCode?: InputMaybe; - paymentMethodCode: Scalars['String']; + molliePaymentMethodCode?: InputMaybe; + paymentMethodCode: Scalars['String']; }; export type MolliePaymentIntentResult = MolliePaymentIntent | MolliePaymentIntentError; export type MolliePaymentMethod = { - __typename?: 'MolliePaymentMethod'; - code: Scalars['String']; - description?: Maybe; - id: Scalars['ID']; - image?: Maybe; - maximumAmount?: Maybe; - minimumAmount?: Maybe; + __typename?: 'MolliePaymentMethod'; + code: Scalars['String']; + description?: Maybe; + id: Scalars['ID']; + image?: Maybe; + maximumAmount?: Maybe; + minimumAmount?: Maybe; }; export type MolliePaymentMethodImages = { - __typename?: 'MolliePaymentMethodImages'; - size1x?: Maybe; - size2x?: Maybe; - svg?: Maybe; + __typename?: 'MolliePaymentMethodImages'; + size1x?: Maybe; + size2x?: Maybe; + svg?: Maybe; }; export type MolliePaymentMethodsInput = { - paymentMethodCode: Scalars['String']; + paymentMethodCode: Scalars['String']; }; export type Mutation = { - __typename?: 'Mutation'; - /** Adds an item to the order. If custom fields are defined on the OrderLine entity, a third argument 'customFields' will be available. */ - addItemToOrder: UpdateOrderItemsResult; - /** Add a Payment to the Order */ - addPaymentToOrder: AddPaymentToOrderResult; - /** Adjusts an OrderLine. If custom fields are defined on the OrderLine entity, a third argument 'customFields' of type `OrderLineCustomFieldsInput` will be available. */ - adjustOrderLine: UpdateOrderItemsResult; - /** Applies the given coupon code to the active Order */ - applyCouponCode: ApplyCouponCodeResult; - /** Authenticates the user using a named authentication strategy */ - authenticate: AuthenticationResult; - /** Create a new Customer Address */ - createCustomerAddress: Address; - createMolliePaymentIntent: MolliePaymentIntentResult; - /** Delete an existing Address */ - deleteCustomerAddress: Success; - /** Authenticates the user using the native authentication strategy. This mutation is an alias for `authenticate({ native: { ... }})` */ - login: NativeAuthenticationResult; - /** End the current authenticated session */ - logout: Success; - /** Regenerate and send a verification token for a new Customer registration. Only applicable if `authOptions.requireVerification` is set to true. */ - refreshCustomerVerification: RefreshCustomerVerificationResult; - /** - * Register a Customer account with the given credentials. There are three possible registration flows: - * - * _If `authOptions.requireVerification` is set to `true`:_ - * - * 1. **The Customer is registered _with_ a password**. A verificationToken will be created (and typically emailed to the Customer). That - * verificationToken would then be passed to the `verifyCustomerAccount` mutation _without_ a password. The Customer is then - * verified and authenticated in one step. - * 2. **The Customer is registered _without_ a password**. A verificationToken will be created (and typically emailed to the Customer). That - * verificationToken would then be passed to the `verifyCustomerAccount` mutation _with_ the chosen password of the Customer. The Customer is then - * verified and authenticated in one step. - * - * _If `authOptions.requireVerification` is set to `false`:_ - * - * 3. The Customer _must_ be registered _with_ a password. No further action is needed - the Customer is able to authenticate immediately. - */ - registerCustomerAccount: RegisterCustomerAccountResult; - /** Remove all OrderLine from the Order */ - removeAllOrderLines: RemoveOrderItemsResult; - /** Removes the given coupon code from the active Order */ - removeCouponCode?: Maybe; - /** Remove an OrderLine from the Order */ - removeOrderLine: RemoveOrderItemsResult; - /** Requests a password reset email to be sent */ - requestPasswordReset?: Maybe; - /** - * Request to update the emailAddress of the active Customer. If `authOptions.requireVerification` is enabled - * (as is the default), then the `identifierChangeToken` will be assigned to the current User and - * a IdentifierChangeRequestEvent will be raised. This can then be used e.g. by the EmailPlugin to email - * that verification token to the Customer, which is then used to verify the change of email address. - */ - requestUpdateCustomerEmailAddress: RequestUpdateCustomerEmailAddressResult; - /** Resets a Customer's password based on the provided token */ - resetPassword: ResetPasswordResult; - /** Set the Customer for the Order. Required only if the Customer is not currently logged in */ - setCustomerForOrder: SetCustomerForOrderResult; - /** Sets the billing address for this order */ - setOrderBillingAddress: ActiveOrderResult; - /** Allows any custom fields to be set for the active order */ - setOrderCustomFields: ActiveOrderResult; - /** Sets the shipping address for this order */ - setOrderShippingAddress: ActiveOrderResult; - /** - * Sets the shipping method by id, which can be obtained with the `eligibleShippingMethods` query. - * An Order can have multiple shipping methods, in which case you can pass an array of ids. In this case, - * you should configure a custom ShippingLineAssignmentStrategy in order to know which OrderLines each - * shipping method will apply to. - */ - setOrderShippingMethod: SetOrderShippingMethodResult; - /** Transitions an Order to a new state. Valid next states can be found by querying `nextOrderStates` */ - transitionOrderToState?: Maybe; - /** Update an existing Customer */ - updateCustomer: Customer; - /** Update an existing Address */ - updateCustomerAddress: Address; - /** - * Confirm the update of the emailAddress with the provided token, which has been generated by the - * `requestUpdateCustomerEmailAddress` mutation. - */ - updateCustomerEmailAddress: UpdateCustomerEmailAddressResult; - /** Update the password of the active Customer */ - updateCustomerPassword: UpdateCustomerPasswordResult; - /** - * Verify a Customer email address with the token sent to that address. Only applicable if `authOptions.requireVerification` is set to true. - * - * If the Customer was not registered with a password in the `registerCustomerAccount` mutation, the password _must_ be - * provided here. - */ - verifyCustomerAccount: VerifyCustomerAccountResult; + __typename?: 'Mutation'; + /** Adds an item to the order. If custom fields are defined on the OrderLine entity, a third argument 'customFields' will be available. */ + addItemToOrder: UpdateOrderItemsResult; + /** Add a Payment to the Order */ + addPaymentToOrder: AddPaymentToOrderResult; + /** Adjusts an OrderLine. If custom fields are defined on the OrderLine entity, a third argument 'customFields' of type `OrderLineCustomFieldsInput` will be available. */ + adjustOrderLine: UpdateOrderItemsResult; + /** Applies the given coupon code to the active Order */ + applyCouponCode: ApplyCouponCodeResult; + /** Authenticates the user using a named authentication strategy */ + authenticate: AuthenticationResult; + /** Create a new Customer Address */ + createCustomerAddress: Address; + createMolliePaymentIntent: MolliePaymentIntentResult; + /** Delete an existing Address */ + deleteCustomerAddress: Success; + /** Authenticates the user using the native authentication strategy. This mutation is an alias for `authenticate({ native: { ... }})` */ + login: NativeAuthenticationResult; + /** End the current authenticated session */ + logout: Success; + /** Regenerate and send a verification token for a new Customer registration. Only applicable if `authOptions.requireVerification` is set to true. */ + refreshCustomerVerification: RefreshCustomerVerificationResult; + /** + * Register a Customer account with the given credentials. There are three possible registration flows: + * + * _If `authOptions.requireVerification` is set to `true`:_ + * + * 1. **The Customer is registered _with_ a password**. A verificationToken will be created (and typically emailed to the Customer). That + * verificationToken would then be passed to the `verifyCustomerAccount` mutation _without_ a password. The Customer is then + * verified and authenticated in one step. + * 2. **The Customer is registered _without_ a password**. A verificationToken will be created (and typically emailed to the Customer). That + * verificationToken would then be passed to the `verifyCustomerAccount` mutation _with_ the chosen password of the Customer. The Customer is then + * verified and authenticated in one step. + * + * _If `authOptions.requireVerification` is set to `false`:_ + * + * 3. The Customer _must_ be registered _with_ a password. No further action is needed - the Customer is able to authenticate immediately. + */ + registerCustomerAccount: RegisterCustomerAccountResult; + /** Remove all OrderLine from the Order */ + removeAllOrderLines: RemoveOrderItemsResult; + /** Removes the given coupon code from the active Order */ + removeCouponCode?: Maybe; + /** Remove an OrderLine from the Order */ + removeOrderLine: RemoveOrderItemsResult; + /** Requests a password reset email to be sent */ + requestPasswordReset?: Maybe; + /** + * Request to update the emailAddress of the active Customer. If `authOptions.requireVerification` is enabled + * (as is the default), then the `identifierChangeToken` will be assigned to the current User and + * a IdentifierChangeRequestEvent will be raised. This can then be used e.g. by the EmailPlugin to email + * that verification token to the Customer, which is then used to verify the change of email address. + */ + requestUpdateCustomerEmailAddress: RequestUpdateCustomerEmailAddressResult; + /** Resets a Customer's password based on the provided token */ + resetPassword: ResetPasswordResult; + /** Set the Customer for the Order. Required only if the Customer is not currently logged in */ + setCustomerForOrder: SetCustomerForOrderResult; + /** Sets the billing address for this order */ + setOrderBillingAddress: ActiveOrderResult; + /** Allows any custom fields to be set for the active order */ + setOrderCustomFields: ActiveOrderResult; + /** Sets the shipping address for this order */ + setOrderShippingAddress: ActiveOrderResult; + /** + * Sets the shipping method by id, which can be obtained with the `eligibleShippingMethods` query. + * An Order can have multiple shipping methods, in which case you can pass an array of ids. In this case, + * you should configure a custom ShippingLineAssignmentStrategy in order to know which OrderLines each + * shipping method will apply to. + */ + setOrderShippingMethod: SetOrderShippingMethodResult; + /** Transitions an Order to a new state. Valid next states can be found by querying `nextOrderStates` */ + transitionOrderToState?: Maybe; + /** Update an existing Customer */ + updateCustomer: Customer; + /** Update an existing Address */ + updateCustomerAddress: Address; + /** + * Confirm the update of the emailAddress with the provided token, which has been generated by the + * `requestUpdateCustomerEmailAddress` mutation. + */ + updateCustomerEmailAddress: UpdateCustomerEmailAddressResult; + /** Update the password of the active Customer */ + updateCustomerPassword: UpdateCustomerPasswordResult; + /** + * Verify a Customer email address with the token sent to that address. Only applicable if `authOptions.requireVerification` is set to true. + * + * If the Customer was not registered with a password in the `registerCustomerAccount` mutation, the password _must_ be + * provided here. + */ + verifyCustomerAccount: VerifyCustomerAccountResult; }; + export type MutationAddItemToOrderArgs = { - productVariantId: Scalars['ID']; - quantity: Scalars['Int']; + productVariantId: Scalars['ID']; + quantity: Scalars['Int']; }; + export type MutationAddPaymentToOrderArgs = { - input: PaymentInput; + input: PaymentInput; }; + export type MutationAdjustOrderLineArgs = { - orderLineId: Scalars['ID']; - quantity: Scalars['Int']; + orderLineId: Scalars['ID']; + quantity: Scalars['Int']; }; + export type MutationApplyCouponCodeArgs = { - couponCode: Scalars['String']; + couponCode: Scalars['String']; }; + export type MutationAuthenticateArgs = { - input: AuthenticationInput; - rememberMe?: InputMaybe; + input: AuthenticationInput; + rememberMe?: InputMaybe; }; + export type MutationCreateCustomerAddressArgs = { - input: CreateAddressInput; + input: CreateAddressInput; }; + export type MutationCreateMolliePaymentIntentArgs = { - input: MolliePaymentIntentInput; + input: MolliePaymentIntentInput; }; + 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 & { - __typename?: 'NativeAuthStrategyError'; - errorCode: ErrorCode; - message: Scalars['String']; + __typename?: 'NativeAuthStrategyError'; + errorCode: ErrorCode; + message: Scalars['String']; }; -export type NativeAuthenticationResult = - | CurrentUser - | InvalidCredentialsError - | NativeAuthStrategyError - | NotVerifiedError; +export type NativeAuthenticationResult = CurrentUser | InvalidCredentialsError | NativeAuthStrategyError | NotVerifiedError; /** Returned when attempting to set a negative OrderLine quantity. */ export type NegativeQuantityError = ErrorResult & { - __typename?: 'NegativeQuantityError'; - errorCode: ErrorCode; - message: Scalars['String']; + __typename?: 'NegativeQuantityError'; + errorCode: ErrorCode; + message: Scalars['String']; }; /** @@ -1862,13 +1869,13 @@ export type NegativeQuantityError = ErrorResult & { * current session. */ export type NoActiveOrderError = ErrorResult & { - __typename?: 'NoActiveOrderError'; - errorCode: ErrorCode; - message: Scalars['String']; + __typename?: 'NoActiveOrderError'; + errorCode: ErrorCode; + message: Scalars['String']; }; export type Node = { - id: Scalars['ID']; + id: Scalars['ID']; }; /** @@ -1876,293 +1883,294 @@ export type Node = { * and an unverified user attempts to authenticate. */ export type NotVerifiedError = ErrorResult & { - __typename?: 'NotVerifiedError'; - errorCode: ErrorCode; - message: Scalars['String']; + __typename?: 'NotVerifiedError'; + errorCode: ErrorCode; + message: Scalars['String']; }; /** Operators for filtering on a list of Number fields */ export type NumberListOperators = { - inList: Scalars['Float']; + inList: Scalars['Float']; }; /** Operators for filtering on a Int or Float field */ export type NumberOperators = { - between?: InputMaybe; - eq?: InputMaybe; - gt?: InputMaybe; - gte?: InputMaybe; - isNull?: InputMaybe; - lt?: InputMaybe; - lte?: InputMaybe; + between?: InputMaybe; + eq?: InputMaybe; + gt?: InputMaybe; + gte?: InputMaybe; + isNull?: InputMaybe; + lt?: InputMaybe; + lte?: InputMaybe; }; export type NumberRange = { - end: Scalars['Float']; - start: Scalars['Float']; + end: Scalars['Float']; + start: Scalars['Float']; }; export type Order = Node & { - __typename?: 'Order'; - /** An order is active as long as the payment process has not been completed */ - active: Scalars['Boolean']; - billingAddress?: Maybe; - /** A unique code for the Order */ - code: Scalars['String']; - /** An array of all coupon codes applied to the Order */ - couponCodes: Array; - createdAt: Scalars['DateTime']; - currencyCode: CurrencyCode; - customFields?: Maybe; - customer?: Maybe; - discounts: Array; - fulfillments?: Maybe>; - history: HistoryEntryList; - id: Scalars['ID']; - lines: Array; - /** - * The date & time that the Order was placed, i.e. the Customer - * completed the checkout and the Order is no longer "active" - */ - orderPlacedAt?: Maybe; - payments?: Maybe>; - /** Promotions applied to the order. Only gets populated after the payment process has completed. */ - promotions: Array; - shipping: Scalars['Int']; - shippingAddress?: Maybe; - shippingLines: Array; - shippingWithTax: Scalars['Int']; - state: Scalars['String']; - /** - * The subTotal is the total of all OrderLines in the Order. This figure also includes any Order-level - * discounts which have been prorated (proportionally distributed) amongst the OrderItems. - * To get a total of all OrderLines which does not account for prorated discounts, use the - * sum of `OrderLine.discountedLinePrice` values. - */ - subTotal: Scalars['Int']; - /** Same as subTotal, but inclusive of tax */ - subTotalWithTax: Scalars['Int']; - /** - * Surcharges are arbitrary modifications to the Order total which are neither - * ProductVariants nor discounts resulting from applied Promotions. For example, - * one-off discounts based on customer interaction, or surcharges based on payment - * methods. - */ - surcharges: Array; - /** A summary of the taxes being applied to this Order */ - taxSummary: Array; - /** Equal to subTotal plus shipping */ - total: Scalars['Int']; - totalQuantity: Scalars['Int']; - /** The final payable amount. Equal to subTotalWithTax plus shippingWithTax */ - totalWithTax: Scalars['Int']; - type: OrderType; - updatedAt: Scalars['DateTime']; + __typename?: 'Order'; + /** An order is active as long as the payment process has not been completed */ + active: Scalars['Boolean']; + billingAddress?: Maybe; + /** A unique code for the Order */ + code: Scalars['String']; + /** An array of all coupon codes applied to the Order */ + couponCodes: Array; + createdAt: Scalars['DateTime']; + currencyCode: CurrencyCode; + customFields?: Maybe; + customer?: Maybe; + discounts: Array; + fulfillments?: Maybe>; + history: HistoryEntryList; + id: Scalars['ID']; + lines: Array; + /** + * The date & time that the Order was placed, i.e. the Customer + * completed the checkout and the Order is no longer "active" + */ + orderPlacedAt?: Maybe; + payments?: Maybe>; + /** Promotions applied to the order. Only gets populated after the payment process has completed. */ + promotions: Array; + shipping: Scalars['Int']; + shippingAddress?: Maybe; + shippingLines: Array; + shippingWithTax: Scalars['Int']; + state: Scalars['String']; + /** + * The subTotal is the total of all OrderLines in the Order. This figure also includes any Order-level + * discounts which have been prorated (proportionally distributed) amongst the OrderItems. + * To get a total of all OrderLines which does not account for prorated discounts, use the + * sum of `OrderLine.discountedLinePrice` values. + */ + subTotal: Scalars['Int']; + /** Same as subTotal, but inclusive of tax */ + subTotalWithTax: Scalars['Int']; + /** + * Surcharges are arbitrary modifications to the Order total which are neither + * ProductVariants nor discounts resulting from applied Promotions. For example, + * one-off discounts based on customer interaction, or surcharges based on payment + * methods. + */ + surcharges: Array; + /** A summary of the taxes being applied to this Order */ + taxSummary: Array; + /** Equal to subTotal plus shipping */ + total: Scalars['Int']; + totalQuantity: Scalars['Int']; + /** The final payable amount. Equal to subTotalWithTax plus shippingWithTax */ + totalWithTax: Scalars['Int']; + type: OrderType; + updatedAt: Scalars['DateTime']; }; + export type OrderHistoryArgs = { - options?: InputMaybe; + options?: InputMaybe; }; export type OrderAddress = { - __typename?: 'OrderAddress'; - city?: Maybe; - company?: Maybe; - country?: Maybe; - countryCode?: Maybe; - customFields?: Maybe; - fullName?: Maybe; - phoneNumber?: Maybe; - postalCode?: Maybe; - province?: Maybe; - streetLine1?: Maybe; - streetLine2?: Maybe; + __typename?: 'OrderAddress'; + city?: Maybe; + company?: Maybe; + country?: Maybe; + countryCode?: Maybe; + customFields?: Maybe; + fullName?: Maybe; + phoneNumber?: Maybe; + postalCode?: Maybe; + province?: Maybe; + streetLine1?: Maybe; + streetLine2?: Maybe; }; export type OrderFilterParameter = { - active?: InputMaybe; - code?: InputMaybe; - createdAt?: InputMaybe; - currencyCode?: InputMaybe; - id?: InputMaybe; - orderPlacedAt?: InputMaybe; - shipping?: InputMaybe; - shippingWithTax?: InputMaybe; - state?: InputMaybe; - subTotal?: InputMaybe; - subTotalWithTax?: InputMaybe; - total?: InputMaybe; - totalQuantity?: InputMaybe; - totalWithTax?: InputMaybe; - 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 & { - __typename?: 'OrderItem'; - adjustments: Array; - cancelled: Scalars['Boolean']; - createdAt: Scalars['DateTime']; - /** - * The price of a single unit including discounts, excluding tax. - * - * If Order-level discounts have been applied, this will not be the - * actual taxable unit price (see `proratedUnitPrice`), but is generally the - * correct price to display to customers to avoid confusion - * about the internal handling of distributed Order-level discounts. - */ - discountedUnitPrice: Scalars['Int']; - /** The price of a single unit including discounts and tax */ - discountedUnitPriceWithTax: Scalars['Int']; - fulfillment?: Maybe; - id: Scalars['ID']; - /** - * The actual unit price, taking into account both item discounts _and_ prorated (proportionally-distributed) - * Order-level discounts. This value is the true economic value of the OrderItem, and is used in tax - * and refund calculations. - */ - proratedUnitPrice: Scalars['Int']; - /** The proratedUnitPrice including tax */ - proratedUnitPriceWithTax: Scalars['Int']; - refundId?: Maybe; - taxLines: Array; - taxRate: Scalars['Float']; - /** The price of a single unit, excluding tax and discounts */ - unitPrice: Scalars['Int']; - /** The price of a single unit, including tax but excluding discounts */ - unitPriceWithTax: Scalars['Int']; - unitTax: Scalars['Int']; - updatedAt: Scalars['DateTime']; + __typename?: 'OrderItem'; + adjustments: Array; + cancelled: Scalars['Boolean']; + createdAt: Scalars['DateTime']; + /** + * The price of a single unit including discounts, excluding tax. + * + * If Order-level discounts have been applied, this will not be the + * actual taxable unit price (see `proratedUnitPrice`), but is generally the + * correct price to display to customers to avoid confusion + * about the internal handling of distributed Order-level discounts. + */ + discountedUnitPrice: Scalars['Int']; + /** The price of a single unit including discounts and tax */ + discountedUnitPriceWithTax: Scalars['Int']; + fulfillment?: Maybe; + id: Scalars['ID']; + /** + * The actual unit price, taking into account both item discounts _and_ prorated (proportionally-distributed) + * Order-level discounts. This value is the true economic value of the OrderItem, and is used in tax + * and refund calculations. + */ + proratedUnitPrice: Scalars['Int']; + /** The proratedUnitPrice including tax */ + proratedUnitPriceWithTax: Scalars['Int']; + refundId?: Maybe; + taxLines: Array; + taxRate: Scalars['Float']; + /** The price of a single unit, excluding tax and discounts */ + unitPrice: Scalars['Int']; + /** The price of a single unit, including tax but excluding discounts */ + unitPriceWithTax: Scalars['Int']; + unitTax: Scalars['Int']; + updatedAt: Scalars['DateTime']; }; /** Returned when the maximum order size limit has been reached. */ export type OrderLimitError = ErrorResult & { - __typename?: 'OrderLimitError'; - errorCode: ErrorCode; - maxItems: Scalars['Int']; - message: Scalars['String']; + __typename?: 'OrderLimitError'; + errorCode: ErrorCode; + maxItems: Scalars['Int']; + message: Scalars['String']; }; export type OrderLine = Node & { - __typename?: 'OrderLine'; - createdAt: Scalars['DateTime']; - customFields?: Maybe; - /** The price of the line including discounts, excluding tax */ - discountedLinePrice: Scalars['Int']; - /** The price of the line including discounts and tax */ - discountedLinePriceWithTax: Scalars['Int']; - /** - * The price of a single unit including discounts, excluding tax. - * - * If Order-level discounts have been applied, this will not be the - * actual taxable unit price (see `proratedUnitPrice`), but is generally the - * correct price to display to customers to avoid confusion - * about the internal handling of distributed Order-level discounts. - */ - discountedUnitPrice: Scalars['Int']; - /** The price of a single unit including discounts and tax */ - discountedUnitPriceWithTax: Scalars['Int']; - discounts: Array; - featuredAsset?: Maybe; - fulfillmentLines?: Maybe>; - id: Scalars['ID']; - /** 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; - /** The quantity at the time the Order was placed */ - orderPlacedQuantity: Scalars['Int']; - productVariant: ProductVariant; - /** - * The actual line price, taking into account both item discounts _and_ prorated (proportionally-distributed) - * Order-level discounts. This value is the true economic value of the OrderLine, and is used in tax - * and refund calculations. - */ - proratedLinePrice: Scalars['Int']; - /** The proratedLinePrice including tax */ - proratedLinePriceWithTax: Scalars['Int']; - /** - * The actual unit price, taking into account both item discounts _and_ prorated (proportionally-distributed) - * Order-level discounts. This value is the true economic value of the OrderItem, and is used in tax - * and refund calculations. - */ - proratedUnitPrice: Scalars['Int']; - /** The proratedUnitPrice including tax */ - proratedUnitPriceWithTax: Scalars['Int']; - quantity: Scalars['Int']; - taxLines: Array; - taxRate: Scalars['Float']; - /** The price of a single unit, excluding tax and discounts */ - unitPrice: Scalars['Int']; - /** Non-zero if the unitPrice has changed since it was initially added to Order */ - unitPriceChangeSinceAdded: Scalars['Int']; - /** The price of a single unit, including tax but excluding discounts */ - unitPriceWithTax: Scalars['Int']; - /** Non-zero if the unitPriceWithTax has changed since it was initially added to Order */ - unitPriceWithTaxChangeSinceAdded: Scalars['Int']; - updatedAt: Scalars['DateTime']; + __typename?: 'OrderLine'; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + /** The price of the line including discounts, excluding tax */ + discountedLinePrice: Scalars['Int']; + /** The price of the line including discounts and tax */ + discountedLinePriceWithTax: Scalars['Int']; + /** + * The price of a single unit including discounts, excluding tax. + * + * If Order-level discounts have been applied, this will not be the + * actual taxable unit price (see `proratedUnitPrice`), but is generally the + * correct price to display to customers to avoid confusion + * about the internal handling of distributed Order-level discounts. + */ + discountedUnitPrice: Scalars['Int']; + /** The price of a single unit including discounts and tax */ + discountedUnitPriceWithTax: Scalars['Int']; + discounts: Array; + featuredAsset?: Maybe; + fulfillmentLines?: Maybe>; + id: Scalars['ID']; + /** 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; + /** The quantity at the time the Order was placed */ + orderPlacedQuantity: Scalars['Int']; + productVariant: ProductVariant; + /** + * The actual line price, taking into account both item discounts _and_ prorated (proportionally-distributed) + * Order-level discounts. This value is the true economic value of the OrderLine, and is used in tax + * and refund calculations. + */ + proratedLinePrice: Scalars['Int']; + /** The proratedLinePrice including tax */ + proratedLinePriceWithTax: Scalars['Int']; + /** + * The actual unit price, taking into account both item discounts _and_ prorated (proportionally-distributed) + * Order-level discounts. This value is the true economic value of the OrderItem, and is used in tax + * and refund calculations. + */ + proratedUnitPrice: Scalars['Int']; + /** The proratedUnitPrice including tax */ + proratedUnitPriceWithTax: Scalars['Int']; + quantity: Scalars['Int']; + taxLines: Array; + taxRate: Scalars['Float']; + /** The price of a single unit, excluding tax and discounts */ + unitPrice: Scalars['Int']; + /** Non-zero if the unitPrice has changed since it was initially added to Order */ + unitPriceChangeSinceAdded: Scalars['Int']; + /** The price of a single unit, including tax but excluding discounts */ + unitPriceWithTax: Scalars['Int']; + /** Non-zero if the unitPriceWithTax has changed since it was initially added to Order */ + unitPriceWithTaxChangeSinceAdded: Scalars['Int']; + updatedAt: Scalars['DateTime']; }; export type OrderList = PaginatedList & { - __typename?: 'OrderList'; - items: Array; - totalItems: Scalars['Int']; + __typename?: 'OrderList'; + items: Array; + totalItems: Scalars['Int']; }; export type OrderListOptions = { - /** Allows the results to be filtered */ - filter?: InputMaybe; - /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ - filterOperator?: InputMaybe; - /** Skips the first n results, for use in pagination */ - skip?: InputMaybe; - /** Specifies which properties to sort the results by */ - sort?: InputMaybe; - /** Takes n results, for use in pagination */ - take?: InputMaybe; + /** Allows the results to be filtered */ + filter?: InputMaybe; + /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ + filterOperator?: InputMaybe; + /** Skips the first n results, for use in pagination */ + skip?: InputMaybe; + /** Specifies which properties to sort the results by */ + sort?: InputMaybe; + /** Takes n results, for use in pagination */ + take?: InputMaybe; }; /** Returned when attempting to modify the contents of an Order that is not in the `AddingItems` state. */ export type OrderModificationError = ErrorResult & { - __typename?: 'OrderModificationError'; - errorCode: ErrorCode; - message: Scalars['String']; + __typename?: 'OrderModificationError'; + errorCode: ErrorCode; + message: Scalars['String']; }; /** Returned when attempting to add a Payment to an Order that is not in the `ArrangingPayment` state. */ export type OrderPaymentStateError = ErrorResult & { - __typename?: 'OrderPaymentStateError'; - errorCode: ErrorCode; - message: Scalars['String']; + __typename?: 'OrderPaymentStateError'; + errorCode: ErrorCode; + message: Scalars['String']; }; export type OrderSortParameter = { - code?: InputMaybe; - createdAt?: InputMaybe; - id?: InputMaybe; - orderPlacedAt?: InputMaybe; - shipping?: InputMaybe; - shippingWithTax?: InputMaybe; - state?: InputMaybe; - subTotal?: InputMaybe; - subTotalWithTax?: InputMaybe; - total?: InputMaybe; - totalQuantity?: InputMaybe; - totalWithTax?: InputMaybe; - updatedAt?: InputMaybe; + code?: InputMaybe; + createdAt?: InputMaybe; + id?: InputMaybe; + orderPlacedAt?: InputMaybe; + shipping?: InputMaybe; + shippingWithTax?: InputMaybe; + state?: InputMaybe; + subTotal?: InputMaybe; + subTotalWithTax?: InputMaybe; + total?: InputMaybe; + totalQuantity?: InputMaybe; + totalWithTax?: InputMaybe; + updatedAt?: InputMaybe; }; /** Returned if there is an error in transitioning the Order state */ export type OrderStateTransitionError = ErrorResult & { - __typename?: 'OrderStateTransitionError'; - errorCode: ErrorCode; - fromState: Scalars['String']; - message: Scalars['String']; - toState: Scalars['String']; - transitionError: Scalars['String']; + __typename?: 'OrderStateTransitionError'; + errorCode: ErrorCode; + fromState: Scalars['String']; + message: Scalars['String']; + toState: Scalars['String']; + transitionError: Scalars['String']; }; /** @@ -2170,33 +2178,33 @@ export type OrderStateTransitionError = ErrorResult & { * by taxRate. */ export type OrderTaxSummary = { - __typename?: 'OrderTaxSummary'; - /** A description of this tax */ - description: Scalars['String']; - /** The total net price or OrderItems to which this taxRate applies */ - taxBase: Scalars['Int']; - /** The taxRate as a percentage */ - taxRate: Scalars['Float']; - /** The total tax being applied to the Order at this taxRate */ - taxTotal: Scalars['Int']; + __typename?: 'OrderTaxSummary'; + /** A description of this tax */ + description: Scalars['String']; + /** The total net price or OrderItems to which this taxRate applies */ + taxBase: Scalars['Int']; + /** The taxRate as a percentage */ + taxRate: Scalars['Float']; + /** The total tax being applied to the Order at this taxRate */ + taxTotal: Scalars['Int']; }; export 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 & { - __typename?: 'PasswordAlreadySetError'; - errorCode: ErrorCode; - message: Scalars['String']; + __typename?: 'PasswordAlreadySetError'; + errorCode: ErrorCode; + message: Scalars['String']; }; /** @@ -2204,9 +2212,9 @@ export type PasswordAlreadySetError = ErrorResult & { * expired according to the `verificationTokenDuration` setting in the AuthOptions. */ export type PasswordResetTokenExpiredError = ErrorResult & { - __typename?: 'PasswordResetTokenExpiredError'; - errorCode: ErrorCode; - message: Scalars['String']; + __typename?: 'PasswordResetTokenExpiredError'; + errorCode: ErrorCode; + message: Scalars['String']; }; /** @@ -2214,84 +2222,84 @@ export type PasswordResetTokenExpiredError = ErrorResult & { * invalid or does not match any expected tokens. */ export type PasswordResetTokenInvalidError = ErrorResult & { - __typename?: 'PasswordResetTokenInvalidError'; - errorCode: ErrorCode; - message: Scalars['String']; + __typename?: 'PasswordResetTokenInvalidError'; + errorCode: ErrorCode; + message: Scalars['String']; }; /** Returned when attempting to register or verify a customer account where the given password fails password validation. */ export type PasswordValidationError = ErrorResult & { - __typename?: 'PasswordValidationError'; - errorCode: ErrorCode; - message: Scalars['String']; - validationErrorMessage: Scalars['String']; + __typename?: 'PasswordValidationError'; + errorCode: ErrorCode; + message: Scalars['String']; + validationErrorMessage: Scalars['String']; }; export type Payment = Node & { - __typename?: 'Payment'; - amount: Scalars['Int']; - createdAt: Scalars['DateTime']; - errorMessage?: Maybe; - id: Scalars['ID']; - metadata?: Maybe; - method: Scalars['String']; - refunds: Array; - state: Scalars['String']; - transactionId?: Maybe; - updatedAt: Scalars['DateTime']; + __typename?: 'Payment'; + amount: Scalars['Int']; + createdAt: Scalars['DateTime']; + errorMessage?: Maybe; + id: Scalars['ID']; + metadata?: Maybe; + method: Scalars['String']; + refunds: Array; + state: Scalars['String']; + transactionId?: Maybe; + updatedAt: Scalars['DateTime']; }; /** Returned when a Payment is declined by the payment provider. */ export type PaymentDeclinedError = ErrorResult & { - __typename?: 'PaymentDeclinedError'; - errorCode: ErrorCode; - message: Scalars['String']; - paymentErrorMessage: Scalars['String']; + __typename?: 'PaymentDeclinedError'; + errorCode: ErrorCode; + message: Scalars['String']; + paymentErrorMessage: Scalars['String']; }; /** Returned when a Payment fails due to an error. */ export type PaymentFailedError = ErrorResult & { - __typename?: 'PaymentFailedError'; - errorCode: ErrorCode; - message: Scalars['String']; - paymentErrorMessage: Scalars['String']; + __typename?: 'PaymentFailedError'; + errorCode: ErrorCode; + message: Scalars['String']; + paymentErrorMessage: Scalars['String']; }; /** Passed as input to the `addPaymentToOrder` mutation. */ export type PaymentInput = { - /** - * This field should contain arbitrary data passed to the specified PaymentMethodHandler's `createPayment()` method - * as the "metadata" argument. For example, it could contain an ID for the payment and other - * data generated by the payment provider. - */ - metadata: Scalars['JSON']; - /** This field should correspond to the `code` property of a PaymentMethod. */ - method: Scalars['String']; + /** + * This field should contain arbitrary data passed to the specified PaymentMethodHandler's `createPayment()` method + * as the "metadata" argument. For example, it could contain an ID for the payment and other + * data generated by the payment provider. + */ + metadata: Scalars['JSON']; + /** This field should correspond to the `code` property of a PaymentMethod. */ + method: Scalars['String']; }; export type PaymentMethod = Node & { - __typename?: 'PaymentMethod'; - checker?: Maybe; - code: Scalars['String']; - createdAt: Scalars['DateTime']; - customFields?: Maybe; - description: Scalars['String']; - enabled: Scalars['Boolean']; - handler: ConfigurableOperation; - id: Scalars['ID']; - name: Scalars['String']; - updatedAt: Scalars['DateTime']; + __typename?: 'PaymentMethod'; + checker?: Maybe; + code: Scalars['String']; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + description: Scalars['String']; + enabled: Scalars['Boolean']; + handler: ConfigurableOperation; + id: Scalars['ID']; + name: Scalars['String']; + updatedAt: Scalars['DateTime']; }; export type PaymentMethodQuote = { - __typename?: 'PaymentMethodQuote'; - code: Scalars['String']; - customFields?: Maybe; - description: Scalars['String']; - eligibilityMessage?: Maybe; - id: Scalars['ID']; - isEligible: Scalars['Boolean']; - name: Scalars['String']; + __typename?: 'PaymentMethodQuote'; + code: Scalars['String']; + customFields?: Maybe; + description: Scalars['String']; + eligibilityMessage?: Maybe; + id: Scalars['ID']; + isEligible: Scalars['Boolean']; + name: Scalars['String']; }; /** @@ -2327,932 +2335,908 @@ 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 = { - __typename?: 'PriceRange'; - max: Scalars['Int']; - min: Scalars['Int']; + __typename?: 'PriceRange'; + max: Scalars['Int']; + min: Scalars['Int']; }; export type Product = Node & { - __typename?: 'Product'; - assets: Array; - collections: Array; - createdAt: Scalars['DateTime']; - customFields?: Maybe; - description: Scalars['String']; - facetValues: Array; - featuredAsset?: Maybe; - id: Scalars['ID']; - languageCode: LanguageCode; - name: Scalars['String']; - optionGroups: Array; - slug: Scalars['String']; - translations: Array; - updatedAt: Scalars['DateTime']; - /** Returns a paginated, sortable, filterable list of ProductVariants */ - variantList: ProductVariantList; - /** Returns all ProductVariants */ - variants: Array; + __typename?: 'Product'; + assets: Array; + collections: Array; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + description: Scalars['String']; + facetValues: Array; + featuredAsset?: Maybe; + id: Scalars['ID']; + languageCode: LanguageCode; + name: Scalars['String']; + optionGroups: Array; + slug: Scalars['String']; + translations: Array; + updatedAt: Scalars['DateTime']; + /** Returns a paginated, sortable, filterable list of ProductVariants */ + variantList: ProductVariantList; + /** Returns all ProductVariants */ + variants: Array; }; + export type ProductVariantListArgs = { - options?: InputMaybe; + options?: InputMaybe; }; export type ProductFilterParameter = { - createdAt?: InputMaybe; - description?: InputMaybe; - id?: InputMaybe; - languageCode?: InputMaybe; - name?: InputMaybe; - slug?: InputMaybe; - updatedAt?: InputMaybe; + createdAt?: InputMaybe; + description?: InputMaybe; + id?: InputMaybe; + languageCode?: InputMaybe; + name?: InputMaybe; + slug?: InputMaybe; + updatedAt?: InputMaybe; }; export type ProductList = PaginatedList & { - __typename?: 'ProductList'; - items: Array; - totalItems: Scalars['Int']; + __typename?: 'ProductList'; + items: Array; + totalItems: Scalars['Int']; }; export type ProductListOptions = { - /** Allows the results to be filtered */ - filter?: InputMaybe; - /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ - filterOperator?: InputMaybe; - /** Skips the first n results, for use in pagination */ - skip?: InputMaybe; - /** Specifies which properties to sort the results by */ - sort?: InputMaybe; - /** Takes n results, for use in pagination */ - take?: InputMaybe; + /** Allows the results to be filtered */ + filter?: InputMaybe; + /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ + filterOperator?: InputMaybe; + /** Skips the first n results, for use in pagination */ + skip?: InputMaybe; + /** Specifies which properties to sort the results by */ + sort?: InputMaybe; + /** Takes n results, for use in pagination */ + take?: InputMaybe; }; export type ProductOption = Node & { - __typename?: 'ProductOption'; - code: Scalars['String']; - createdAt: Scalars['DateTime']; - customFields?: Maybe; - group: ProductOptionGroup; - groupId: Scalars['ID']; - id: Scalars['ID']; - languageCode: LanguageCode; - name: Scalars['String']; - translations: Array; - updatedAt: Scalars['DateTime']; + __typename?: 'ProductOption'; + code: Scalars['String']; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + group: ProductOptionGroup; + groupId: Scalars['ID']; + id: Scalars['ID']; + languageCode: LanguageCode; + name: Scalars['String']; + translations: Array; + updatedAt: Scalars['DateTime']; }; export type ProductOptionGroup = Node & { - __typename?: 'ProductOptionGroup'; - code: Scalars['String']; - createdAt: Scalars['DateTime']; - customFields?: Maybe; - id: Scalars['ID']; - languageCode: LanguageCode; - name: Scalars['String']; - options: Array; - translations: Array; - updatedAt: Scalars['DateTime']; + __typename?: 'ProductOptionGroup'; + code: Scalars['String']; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + id: Scalars['ID']; + languageCode: LanguageCode; + name: Scalars['String']; + options: Array; + translations: Array; + updatedAt: Scalars['DateTime']; }; export type ProductOptionGroupTranslation = { - __typename?: 'ProductOptionGroupTranslation'; - createdAt: Scalars['DateTime']; - id: Scalars['ID']; - languageCode: LanguageCode; - name: Scalars['String']; - updatedAt: Scalars['DateTime']; + __typename?: 'ProductOptionGroupTranslation'; + createdAt: Scalars['DateTime']; + id: Scalars['ID']; + languageCode: LanguageCode; + name: Scalars['String']; + updatedAt: Scalars['DateTime']; }; export type ProductOptionTranslation = { - __typename?: 'ProductOptionTranslation'; - createdAt: Scalars['DateTime']; - id: Scalars['ID']; - languageCode: LanguageCode; - name: Scalars['String']; - updatedAt: Scalars['DateTime']; + __typename?: 'ProductOptionTranslation'; + createdAt: Scalars['DateTime']; + id: Scalars['ID']; + languageCode: LanguageCode; + name: Scalars['String']; + updatedAt: Scalars['DateTime']; }; export type ProductSortParameter = { - createdAt?: InputMaybe; - description?: InputMaybe; - id?: InputMaybe; - name?: InputMaybe; - slug?: InputMaybe; - updatedAt?: InputMaybe; + createdAt?: InputMaybe; + description?: InputMaybe; + id?: InputMaybe; + name?: InputMaybe; + slug?: InputMaybe; + updatedAt?: InputMaybe; }; export type ProductTranslation = { - __typename?: 'ProductTranslation'; - createdAt: Scalars['DateTime']; - description: Scalars['String']; - id: Scalars['ID']; - languageCode: LanguageCode; - name: Scalars['String']; - slug: Scalars['String']; - updatedAt: Scalars['DateTime']; + __typename?: 'ProductTranslation'; + createdAt: Scalars['DateTime']; + description: Scalars['String']; + id: Scalars['ID']; + languageCode: LanguageCode; + name: Scalars['String']; + slug: Scalars['String']; + updatedAt: Scalars['DateTime']; }; export type ProductVariant = Node & { - __typename?: 'ProductVariant'; - assets: Array; - createdAt: Scalars['DateTime']; - currencyCode: CurrencyCode; - customFields?: Maybe; - facetValues: Array; - featuredAsset?: Maybe; - id: Scalars['ID']; - languageCode: LanguageCode; - name: Scalars['String']; - options: Array; - price: Scalars['Int']; - priceWithTax: Scalars['Int']; - product: Product; - productId: Scalars['ID']; - sku: Scalars['String']; - stockLevel: Scalars['String']; - taxCategory: TaxCategory; - taxRateApplied: TaxRate; - translations: Array; - updatedAt: Scalars['DateTime']; + __typename?: 'ProductVariant'; + assets: Array; + createdAt: Scalars['DateTime']; + currencyCode: CurrencyCode; + customFields?: Maybe; + facetValues: Array; + featuredAsset?: Maybe; + id: Scalars['ID']; + languageCode: LanguageCode; + name: Scalars['String']; + options: Array; + price: Scalars['Int']; + priceWithTax: Scalars['Int']; + product: Product; + productId: Scalars['ID']; + sku: Scalars['String']; + stockLevel: Scalars['String']; + taxCategory: TaxCategory; + taxRateApplied: TaxRate; + translations: Array; + updatedAt: Scalars['DateTime']; }; export type ProductVariantFilterParameter = { - createdAt?: InputMaybe; - currencyCode?: InputMaybe; - id?: InputMaybe; - languageCode?: InputMaybe; - name?: InputMaybe; - price?: InputMaybe; - priceWithTax?: InputMaybe; - productId?: InputMaybe; - sku?: InputMaybe; - stockLevel?: InputMaybe; - updatedAt?: InputMaybe; + createdAt?: InputMaybe; + currencyCode?: InputMaybe; + id?: InputMaybe; + languageCode?: InputMaybe; + name?: InputMaybe; + price?: InputMaybe; + priceWithTax?: InputMaybe; + productId?: InputMaybe; + sku?: InputMaybe; + stockLevel?: InputMaybe; + updatedAt?: InputMaybe; }; export type ProductVariantList = PaginatedList & { - __typename?: 'ProductVariantList'; - items: Array; - totalItems: Scalars['Int']; + __typename?: 'ProductVariantList'; + items: Array; + totalItems: Scalars['Int']; }; export type ProductVariantListOptions = { - /** Allows the results to be filtered */ - filter?: InputMaybe; - /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ - filterOperator?: InputMaybe; - /** Skips the first n results, for use in pagination */ - skip?: InputMaybe; - /** Specifies which properties to sort the results by */ - sort?: InputMaybe; - /** Takes n results, for use in pagination */ - take?: InputMaybe; + /** Allows the results to be filtered */ + filter?: InputMaybe; + /** Specifies whether multiple "filter" arguments should be combines with a logical AND or OR operation. Defaults to AND. */ + filterOperator?: InputMaybe; + /** Skips the first n results, for use in pagination */ + skip?: InputMaybe; + /** Specifies which properties to sort the results by */ + sort?: InputMaybe; + /** Takes n results, for use in pagination */ + take?: InputMaybe; }; export type ProductVariantSortParameter = { - createdAt?: InputMaybe; - id?: InputMaybe; - name?: InputMaybe; - price?: InputMaybe; - priceWithTax?: InputMaybe; - productId?: InputMaybe; - sku?: InputMaybe; - stockLevel?: InputMaybe; - updatedAt?: InputMaybe; + createdAt?: InputMaybe; + id?: InputMaybe; + name?: InputMaybe; + price?: InputMaybe; + priceWithTax?: InputMaybe; + productId?: InputMaybe; + sku?: InputMaybe; + stockLevel?: InputMaybe; + updatedAt?: InputMaybe; }; export type ProductVariantTranslation = { - __typename?: 'ProductVariantTranslation'; - createdAt: Scalars['DateTime']; - id: Scalars['ID']; - languageCode: LanguageCode; - name: Scalars['String']; - updatedAt: Scalars['DateTime']; + __typename?: 'ProductVariantTranslation'; + createdAt: Scalars['DateTime']; + id: Scalars['ID']; + languageCode: LanguageCode; + name: Scalars['String']; + updatedAt: Scalars['DateTime']; }; export type Promotion = Node & { - __typename?: 'Promotion'; - actions: Array; - conditions: Array; - couponCode?: Maybe; - createdAt: Scalars['DateTime']; - customFields?: Maybe; - enabled: Scalars['Boolean']; - endsAt?: Maybe; - id: Scalars['ID']; - name: Scalars['String']; - perCustomerUsageLimit?: Maybe; - startsAt?: Maybe; - updatedAt: Scalars['DateTime']; + __typename?: 'Promotion'; + actions: Array; + conditions: Array; + couponCode?: Maybe; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + enabled: Scalars['Boolean']; + endsAt?: Maybe; + id: Scalars['ID']; + name: Scalars['String']; + perCustomerUsageLimit?: Maybe; + startsAt?: Maybe; + updatedAt: Scalars['DateTime']; }; export type PromotionList = PaginatedList & { - __typename?: 'PromotionList'; - items: Array; - totalItems: Scalars['Int']; + __typename?: 'PromotionList'; + items: Array; + totalItems: Scalars['Int']; }; export type Query = { - __typename?: 'Query'; - /** The active Channel */ - activeChannel: Channel; - /** The active Customer */ - activeCustomer?: Maybe; - /** - * The active Order. Will be `null` until an Order is created via `addItemToOrder`. Once an Order reaches the - * state of `PaymentAuthorized` or `PaymentSettled`, then that Order is no longer considered "active" and this - * query will once again return `null`. - */ - activeOrder?: Maybe; - /** An array of supported Countries */ - availableCountries: Array; - /** Returns a Collection either by its id or slug. If neither 'id' nor 'slug' is specified, an error will result. */ - collection?: Maybe; - /** A list of Collections available to the shop */ - collections: CollectionList; - /** Returns a list of payment methods and their eligibility based on the current active Order */ - eligiblePaymentMethods: Array; - /** Returns a list of eligible shipping methods based on the current active Order */ - eligibleShippingMethods: Array; - /** Returns a Facet by its id */ - facet?: Maybe; - /** A list of Facets available to the shop */ - facets: FacetList; - /** Returns information about the current authenticated User */ - me?: Maybe; - molliePaymentMethods: Array; - /** Returns the possible next states that the activeOrder can transition to */ - nextOrderStates: Array; - /** - * Returns an Order based on the id. Note that in the Shop API, only orders belonging to the - * currently-authenticated User may be queried. - */ - order?: Maybe; - /** - * Returns an Order based on the order `code`. For guest Orders (i.e. Orders placed by non-authenticated Customers) - * this query will only return the Order within 2 hours of the Order being placed. This allows an Order confirmation - * screen to be shown immediately after completion of a guest checkout, yet prevents security risks of allowing - * general anonymous access to Order data. - */ - orderByCode?: Maybe; - /** Get a Product either by id or slug. If neither 'id' nor 'slug' is specified, an error will result. */ - product?: Maybe; - /** Get a list of Products */ - products: ProductList; - /** Search Products based on the criteria set by the `SearchInput` */ - search: SearchResponse; + __typename?: 'Query'; + /** The active Channel */ + activeChannel: Channel; + /** The active Customer */ + activeCustomer?: Maybe; + /** + * The active Order. Will be `null` until an Order is created via `addItemToOrder`. Once an Order reaches the + * state of `PaymentAuthorized` or `PaymentSettled`, then that Order is no longer considered "active" and this + * query will once again return `null`. + */ + activeOrder?: Maybe; + /** An array of supported Countries */ + availableCountries: Array; + /** Returns a Collection either by its id or slug. If neither 'id' nor 'slug' is specified, an error will result. */ + collection?: Maybe; + /** A list of Collections available to the shop */ + collections: CollectionList; + /** Returns a list of payment methods and their eligibility based on the current active Order */ + eligiblePaymentMethods: Array; + /** Returns a list of eligible shipping methods based on the current active Order */ + eligibleShippingMethods: Array; + /** Returns a Facet by its id */ + facet?: Maybe; + /** A list of Facets available to the shop */ + facets: FacetList; + /** Returns information about the current authenticated User */ + me?: Maybe; + molliePaymentMethods: Array; + /** 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 QueryMolliePaymentMethodsArgs = { - input: MolliePaymentMethodsInput; + input: MolliePaymentMethodsInput; }; + export type QueryOrderArgs = { - id: Scalars['ID']; + id: Scalars['ID']; }; + export type QueryOrderByCodeArgs = { - code: Scalars['String']; + code: Scalars['String']; }; + export type QueryProductArgs = { - id?: InputMaybe; - slug?: InputMaybe; + id?: InputMaybe; + slug?: InputMaybe; }; + export type QueryProductsArgs = { - options?: InputMaybe; + options?: InputMaybe; }; + export type QuerySearchArgs = { - input: SearchInput; + input: SearchInput; }; export type RefreshCustomerVerificationResult = NativeAuthStrategyError | Success; export type Refund = Node & { - __typename?: 'Refund'; - adjustment: Scalars['Int']; - createdAt: Scalars['DateTime']; - id: Scalars['ID']; - items: Scalars['Int']; - lines: Array; - metadata?: Maybe; - method?: Maybe; - paymentId: Scalars['ID']; - reason?: Maybe; - shipping: Scalars['Int']; - state: Scalars['String']; - total: Scalars['Int']; - transactionId?: Maybe; - updatedAt: Scalars['DateTime']; + __typename?: 'Refund'; + adjustment: Scalars['Int']; + createdAt: Scalars['DateTime']; + id: Scalars['ID']; + items: Scalars['Int']; + lines: Array; + metadata?: Maybe; + method?: Maybe; + paymentId: Scalars['ID']; + reason?: Maybe; + shipping: Scalars['Int']; + state: Scalars['String']; + total: Scalars['Int']; + transactionId?: Maybe; + updatedAt: Scalars['DateTime']; }; export type RefundLine = { - __typename?: 'RefundLine'; - orderLine: OrderLine; - orderLineId: Scalars['ID']; - quantity: Scalars['Int']; - refund: Refund; - refundId: Scalars['ID']; + __typename?: 'RefundLine'; + orderLine: OrderLine; + orderLineId: Scalars['ID']; + quantity: Scalars['Int']; + refund: Refund; + refundId: Scalars['ID']; }; -export type RegisterCustomerAccountResult = - | MissingPasswordError - | NativeAuthStrategyError - | PasswordValidationError - | Success; +export type RegisterCustomerAccountResult = MissingPasswordError | NativeAuthStrategyError | PasswordValidationError | Success; export type RegisterCustomerInput = { - emailAddress: Scalars['String']; - firstName?: InputMaybe; - lastName?: InputMaybe; - password?: InputMaybe; - phoneNumber?: InputMaybe; - title?: InputMaybe; + emailAddress: Scalars['String']; + firstName?: InputMaybe; + lastName?: InputMaybe; + password?: InputMaybe; + phoneNumber?: InputMaybe; + title?: InputMaybe; }; export type RelationCustomFieldConfig = CustomField & { - __typename?: 'RelationCustomFieldConfig'; - description?: Maybe>; - entity: Scalars['String']; - internal?: Maybe; - label?: Maybe>; - list: Scalars['Boolean']; - name: Scalars['String']; - nullable?: Maybe; - readonly?: Maybe; - scalarFields: Array; - type: Scalars['String']; - ui?: Maybe; + __typename?: 'RelationCustomFieldConfig'; + description?: Maybe>; + entity: Scalars['String']; + internal?: Maybe; + label?: Maybe>; + list: Scalars['Boolean']; + name: Scalars['String']; + nullable?: Maybe; + readonly?: Maybe; + scalarFields: Array; + type: Scalars['String']; + ui?: Maybe; }; export type RemoveOrderItemsResult = Order | OrderModificationError; export type RequestPasswordResetResult = NativeAuthStrategyError | Success; -export type RequestUpdateCustomerEmailAddressResult = - | EmailAddressConflictError - | InvalidCredentialsError - | NativeAuthStrategyError - | Success; +export type RequestUpdateCustomerEmailAddressResult = EmailAddressConflictError | InvalidCredentialsError | NativeAuthStrategyError | Success; -export type ResetPasswordResult = - | CurrentUser - | NativeAuthStrategyError - | NotVerifiedError - | PasswordResetTokenExpiredError - | PasswordResetTokenInvalidError - | PasswordValidationError; +export type ResetPasswordResult = CurrentUser | NativeAuthStrategyError | NotVerifiedError | PasswordResetTokenExpiredError | PasswordResetTokenInvalidError | PasswordValidationError; export type Role = Node & { - __typename?: 'Role'; - channels: Array; - code: Scalars['String']; - createdAt: Scalars['DateTime']; - description: Scalars['String']; - id: Scalars['ID']; - permissions: Array; - updatedAt: Scalars['DateTime']; + __typename?: 'Role'; + channels: Array; + code: Scalars['String']; + createdAt: Scalars['DateTime']; + description: Scalars['String']; + id: Scalars['ID']; + permissions: Array; + updatedAt: Scalars['DateTime']; }; export type RoleList = PaginatedList & { - __typename?: 'RoleList'; - items: Array; - totalItems: Scalars['Int']; + __typename?: 'RoleList'; + items: Array; + totalItems: Scalars['Int']; }; export type SearchInput = { - collectionId?: InputMaybe; - collectionSlug?: InputMaybe; - facetValueFilters?: InputMaybe>; - facetValueIds?: InputMaybe>; - facetValueOperator?: InputMaybe; - groupByProduct?: InputMaybe; - skip?: InputMaybe; - sort?: InputMaybe; - take?: InputMaybe; - term?: InputMaybe; + collectionId?: InputMaybe; + collectionSlug?: InputMaybe; + facetValueFilters?: InputMaybe>; + facetValueIds?: InputMaybe>; + facetValueOperator?: InputMaybe; + groupByProduct?: InputMaybe; + skip?: InputMaybe; + sort?: InputMaybe; + take?: InputMaybe; + term?: InputMaybe; }; export type SearchReindexResponse = { - __typename?: 'SearchReindexResponse'; - success: Scalars['Boolean']; + __typename?: 'SearchReindexResponse'; + success: Scalars['Boolean']; }; export type SearchResponse = { - __typename?: 'SearchResponse'; - collections: Array; - facetValues: Array; - items: Array; - totalItems: Scalars['Int']; + __typename?: 'SearchResponse'; + collections: Array; + facetValues: Array; + items: Array; + totalItems: Scalars['Int']; }; export type SearchResult = { - __typename?: 'SearchResult'; - /** An array of ids of the Collections in which this result appears */ - collectionIds: Array; - currencyCode: CurrencyCode; - description: Scalars['String']; - facetIds: Array; - facetValueIds: Array; - price: SearchResultPrice; - priceWithTax: SearchResultPrice; - productAsset?: Maybe; - productId: Scalars['ID']; - productName: Scalars['String']; - productVariantAsset?: Maybe; - productVariantId: Scalars['ID']; - productVariantName: Scalars['String']; - /** A relevance score for the result. Differs between database implementations */ - score: Scalars['Float']; - sku: Scalars['String']; - slug: Scalars['String']; + __typename?: 'SearchResult'; + /** An array of ids of the Collections in which this result appears */ + collectionIds: Array; + currencyCode: CurrencyCode; + description: Scalars['String']; + facetIds: Array; + facetValueIds: Array; + price: SearchResultPrice; + priceWithTax: SearchResultPrice; + productAsset?: Maybe; + productId: Scalars['ID']; + productName: Scalars['String']; + productVariantAsset?: Maybe; + productVariantId: Scalars['ID']; + productVariantName: Scalars['String']; + /** A relevance score for the result. Differs between database implementations */ + score: Scalars['Float']; + sku: Scalars['String']; + slug: Scalars['String']; }; export type SearchResultAsset = { - __typename?: 'SearchResultAsset'; - focalPoint?: Maybe; - id: Scalars['ID']; - preview: Scalars['String']; + __typename?: 'SearchResultAsset'; + focalPoint?: Maybe; + id: Scalars['ID']; + preview: Scalars['String']; }; /** The price of a search result product, either as a range or as a single price */ export type SearchResultPrice = PriceRange | SinglePrice; export type SearchResultSortParameter = { - name?: InputMaybe; - price?: InputMaybe; + name?: InputMaybe; + price?: InputMaybe; }; export type Seller = Node & { - __typename?: 'Seller'; - createdAt: Scalars['DateTime']; - customFields?: Maybe; - id: Scalars['ID']; - name: Scalars['String']; - updatedAt: Scalars['DateTime']; -}; - -export type SetCustomerForOrderResult = - | AlreadyLoggedInError - | EmailAddressConflictError - | NoActiveOrderError - | Order; - -export type SetOrderShippingMethodResult = - | IneligibleShippingMethodError - | NoActiveOrderError - | Order - | OrderModificationError; + __typename?: 'Seller'; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + id: Scalars['ID']; + name: Scalars['String']; + updatedAt: Scalars['DateTime']; +}; + +export type SetCustomerForOrderResult = AlreadyLoggedInError | EmailAddressConflictError | NoActiveOrderError | Order; + +export type SetOrderShippingMethodResult = IneligibleShippingMethodError | NoActiveOrderError | Order | OrderModificationError; export type ShippingLine = { - __typename?: 'ShippingLine'; - discountedPrice: Scalars['Int']; - discountedPriceWithTax: Scalars['Int']; - discounts: Array; - id: Scalars['ID']; - price: Scalars['Int']; - priceWithTax: Scalars['Int']; - shippingMethod: ShippingMethod; + __typename?: 'ShippingLine'; + discountedPrice: Scalars['Int']; + discountedPriceWithTax: Scalars['Int']; + discounts: Array; + id: Scalars['ID']; + price: Scalars['Int']; + priceWithTax: Scalars['Int']; + shippingMethod: ShippingMethod; }; export type ShippingMethod = Node & { - __typename?: 'ShippingMethod'; - calculator: ConfigurableOperation; - checker: ConfigurableOperation; - code: Scalars['String']; - createdAt: Scalars['DateTime']; - customFields?: Maybe; - description: Scalars['String']; - fulfillmentHandlerCode: Scalars['String']; - id: Scalars['ID']; - languageCode: LanguageCode; - name: Scalars['String']; - translations: Array; - updatedAt: Scalars['DateTime']; + __typename?: 'ShippingMethod'; + calculator: ConfigurableOperation; + checker: ConfigurableOperation; + code: Scalars['String']; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + description: Scalars['String']; + fulfillmentHandlerCode: Scalars['String']; + id: Scalars['ID']; + languageCode: LanguageCode; + name: Scalars['String']; + translations: Array; + updatedAt: Scalars['DateTime']; }; export type ShippingMethodList = PaginatedList & { - __typename?: 'ShippingMethodList'; - items: Array; - totalItems: Scalars['Int']; + __typename?: 'ShippingMethodList'; + items: Array; + totalItems: Scalars['Int']; }; export type ShippingMethodQuote = { - __typename?: 'ShippingMethodQuote'; - code: Scalars['String']; - customFields?: Maybe; - description: Scalars['String']; - id: Scalars['ID']; - /** Any optional metadata returned by the ShippingCalculator in the ShippingCalculationResult */ - metadata?: Maybe; - name: Scalars['String']; - price: Scalars['Int']; - priceWithTax: Scalars['Int']; + __typename?: 'ShippingMethodQuote'; + code: Scalars['String']; + customFields?: Maybe; + description: Scalars['String']; + id: Scalars['ID']; + /** Any optional metadata returned by the ShippingCalculator in the ShippingCalculationResult */ + metadata?: Maybe; + name: Scalars['String']; + price: Scalars['Int']; + priceWithTax: Scalars['Int']; }; export type ShippingMethodTranslation = { - __typename?: 'ShippingMethodTranslation'; - createdAt: Scalars['DateTime']; - description: Scalars['String']; - id: Scalars['ID']; - languageCode: LanguageCode; - name: Scalars['String']; - updatedAt: Scalars['DateTime']; + __typename?: 'ShippingMethodTranslation'; + createdAt: Scalars['DateTime']; + description: Scalars['String']; + id: Scalars['ID']; + languageCode: LanguageCode; + name: Scalars['String']; + updatedAt: Scalars['DateTime']; }; /** The price value where the result has a single price */ export type SinglePrice = { - __typename?: 'SinglePrice'; - value: Scalars['Int']; + __typename?: 'SinglePrice'; + value: Scalars['Int']; }; export enum SortOrder { - ASC = 'ASC', - DESC = 'DESC', + ASC = 'ASC', + DESC = 'DESC' } export type StringCustomFieldConfig = CustomField & { - __typename?: 'StringCustomFieldConfig'; - description?: Maybe>; - internal?: Maybe; - label?: Maybe>; - length?: Maybe; - list: Scalars['Boolean']; - name: Scalars['String']; - nullable?: Maybe; - options?: Maybe>; - pattern?: Maybe; - readonly?: Maybe; - type: Scalars['String']; - ui?: Maybe; + __typename?: 'StringCustomFieldConfig'; + description?: Maybe>; + internal?: Maybe; + label?: Maybe>; + length?: Maybe; + list: Scalars['Boolean']; + name: Scalars['String']; + nullable?: Maybe; + options?: Maybe>; + pattern?: Maybe; + readonly?: Maybe; + type: Scalars['String']; + ui?: Maybe; }; export type StringFieldOption = { - __typename?: 'StringFieldOption'; - label?: Maybe>; - value: Scalars['String']; + __typename?: 'StringFieldOption'; + label?: Maybe>; + value: Scalars['String']; }; /** Operators for filtering on a list of String fields */ export type StringListOperators = { - inList: Scalars['String']; + inList: Scalars['String']; }; /** Operators for filtering on a String field */ export type StringOperators = { - contains?: InputMaybe; - eq?: InputMaybe; - in?: InputMaybe>; - isNull?: InputMaybe; - notContains?: InputMaybe; - notEq?: InputMaybe; - notIn?: InputMaybe>; - regex?: InputMaybe; + contains?: InputMaybe; + eq?: InputMaybe; + in?: InputMaybe>; + isNull?: InputMaybe; + notContains?: InputMaybe; + notEq?: InputMaybe; + notIn?: InputMaybe>; + regex?: InputMaybe; }; /** Indicates that an operation succeeded, where we do not want to return any more specific information. */ export type Success = { - __typename?: 'Success'; - success: Scalars['Boolean']; + __typename?: 'Success'; + success: Scalars['Boolean']; }; export type Surcharge = Node & { - __typename?: 'Surcharge'; - createdAt: Scalars['DateTime']; - description: Scalars['String']; - id: Scalars['ID']; - price: Scalars['Int']; - priceWithTax: Scalars['Int']; - sku?: Maybe; - taxLines: Array; - taxRate: Scalars['Float']; - updatedAt: Scalars['DateTime']; + __typename?: 'Surcharge'; + createdAt: Scalars['DateTime']; + description: Scalars['String']; + id: Scalars['ID']; + price: Scalars['Int']; + priceWithTax: Scalars['Int']; + sku?: Maybe; + taxLines: Array; + taxRate: Scalars['Float']; + updatedAt: Scalars['DateTime']; }; export type Tag = Node & { - __typename?: 'Tag'; - createdAt: Scalars['DateTime']; - id: Scalars['ID']; - updatedAt: Scalars['DateTime']; - value: Scalars['String']; + __typename?: 'Tag'; + createdAt: Scalars['DateTime']; + id: Scalars['ID']; + updatedAt: Scalars['DateTime']; + value: Scalars['String']; }; export type TagList = PaginatedList & { - __typename?: 'TagList'; - items: Array; - totalItems: Scalars['Int']; + __typename?: 'TagList'; + items: Array; + totalItems: Scalars['Int']; }; export type TaxCategory = Node & { - __typename?: 'TaxCategory'; - createdAt: Scalars['DateTime']; - customFields?: Maybe; - id: Scalars['ID']; - isDefault: Scalars['Boolean']; - name: Scalars['String']; - updatedAt: Scalars['DateTime']; + __typename?: 'TaxCategory'; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + id: Scalars['ID']; + isDefault: Scalars['Boolean']; + name: Scalars['String']; + updatedAt: Scalars['DateTime']; }; export type TaxLine = { - __typename?: 'TaxLine'; - description: Scalars['String']; - taxRate: Scalars['Float']; + __typename?: 'TaxLine'; + description: Scalars['String']; + taxRate: Scalars['Float']; }; export type TaxRate = Node & { - __typename?: 'TaxRate'; - category: TaxCategory; - createdAt: Scalars['DateTime']; - customFields?: Maybe; - customerGroup?: Maybe; - enabled: Scalars['Boolean']; - id: Scalars['ID']; - name: Scalars['String']; - updatedAt: Scalars['DateTime']; - value: Scalars['Float']; - zone: Zone; + __typename?: 'TaxRate'; + category: TaxCategory; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + customerGroup?: Maybe; + enabled: Scalars['Boolean']; + id: Scalars['ID']; + name: Scalars['String']; + updatedAt: Scalars['DateTime']; + value: Scalars['Float']; + zone: Zone; }; export type TaxRateList = PaginatedList & { - __typename?: 'TaxRateList'; - items: Array; - totalItems: Scalars['Int']; + __typename?: 'TaxRateList'; + items: Array; + totalItems: Scalars['Int']; }; export type TextCustomFieldConfig = CustomField & { - __typename?: 'TextCustomFieldConfig'; - description?: Maybe>; - internal?: Maybe; - label?: Maybe>; - list: Scalars['Boolean']; - name: Scalars['String']; - nullable?: Maybe; - readonly?: Maybe; - type: Scalars['String']; - ui?: Maybe; + __typename?: 'TextCustomFieldConfig'; + description?: Maybe>; + internal?: Maybe; + label?: Maybe>; + list: Scalars['Boolean']; + name: Scalars['String']; + nullable?: Maybe; + readonly?: Maybe; + type: Scalars['String']; + ui?: Maybe; }; export type TransitionOrderToStateResult = Order | OrderStateTransitionError; export type UpdateAddressInput = { - city?: InputMaybe; - company?: InputMaybe; - countryCode?: InputMaybe; - customFields?: InputMaybe; - defaultBillingAddress?: InputMaybe; - defaultShippingAddress?: InputMaybe; - fullName?: InputMaybe; - id: Scalars['ID']; - phoneNumber?: InputMaybe; - postalCode?: InputMaybe; - province?: InputMaybe; - streetLine1?: InputMaybe; - streetLine2?: InputMaybe; -}; - -export type UpdateCustomerEmailAddressResult = - | IdentifierChangeTokenExpiredError - | IdentifierChangeTokenInvalidError - | NativeAuthStrategyError - | Success; + city?: InputMaybe; + company?: InputMaybe; + countryCode?: InputMaybe; + customFields?: InputMaybe; + defaultBillingAddress?: InputMaybe; + defaultShippingAddress?: InputMaybe; + fullName?: InputMaybe; + id: Scalars['ID']; + phoneNumber?: InputMaybe; + postalCode?: InputMaybe; + province?: InputMaybe; + streetLine1?: InputMaybe; + streetLine2?: InputMaybe; +}; + +export type UpdateCustomerEmailAddressResult = IdentifierChangeTokenExpiredError | IdentifierChangeTokenInvalidError | NativeAuthStrategyError | Success; export type UpdateCustomerInput = { - customFields?: InputMaybe; - firstName?: InputMaybe; - lastName?: InputMaybe; - phoneNumber?: InputMaybe; - title?: InputMaybe; + customFields?: InputMaybe; + firstName?: InputMaybe; + lastName?: InputMaybe; + phoneNumber?: InputMaybe; + title?: InputMaybe; }; -export type UpdateCustomerPasswordResult = - | InvalidCredentialsError - | NativeAuthStrategyError - | PasswordValidationError - | Success; +export type UpdateCustomerPasswordResult = InvalidCredentialsError | NativeAuthStrategyError | PasswordValidationError | Success; export type UpdateOrderInput = { - customFields?: InputMaybe; + customFields?: InputMaybe; }; -export type UpdateOrderItemsResult = - | InsufficientStockError - | NegativeQuantityError - | Order - | OrderLimitError - | OrderModificationError; +export type UpdateOrderItemsResult = InsufficientStockError | NegativeQuantityError | Order | OrderLimitError | OrderModificationError; export type User = Node & { - __typename?: 'User'; - authenticationMethods: Array; - createdAt: Scalars['DateTime']; - customFields?: Maybe; - id: Scalars['ID']; - identifier: Scalars['String']; - lastLogin?: Maybe; - roles: Array; - updatedAt: Scalars['DateTime']; - verified: Scalars['Boolean']; + __typename?: 'User'; + authenticationMethods: Array; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + id: Scalars['ID']; + identifier: Scalars['String']; + lastLogin?: Maybe; + roles: Array; + updatedAt: Scalars['DateTime']; + verified: Scalars['Boolean']; }; /** @@ -3260,9 +3244,9 @@ export type User = Node & { * expired according to the `verificationTokenDuration` setting in the AuthOptions. */ export type VerificationTokenExpiredError = ErrorResult & { - __typename?: 'VerificationTokenExpiredError'; - errorCode: ErrorCode; - message: Scalars['String']; + __typename?: 'VerificationTokenExpiredError'; + errorCode: ErrorCode; + message: Scalars['String']; }; /** @@ -3270,26 +3254,19 @@ export type VerificationTokenExpiredError = ErrorResult & { * invalid or does not match any expected tokens. */ export type VerificationTokenInvalidError = ErrorResult & { - __typename?: 'VerificationTokenInvalidError'; - errorCode: ErrorCode; - message: Scalars['String']; + __typename?: 'VerificationTokenInvalidError'; + errorCode: ErrorCode; + message: Scalars['String']; }; -export type VerifyCustomerAccountResult = - | CurrentUser - | MissingPasswordError - | NativeAuthStrategyError - | PasswordAlreadySetError - | PasswordValidationError - | VerificationTokenExpiredError - | VerificationTokenInvalidError; +export type VerifyCustomerAccountResult = CurrentUser | MissingPasswordError | NativeAuthStrategyError | PasswordAlreadySetError | PasswordValidationError | VerificationTokenExpiredError | VerificationTokenInvalidError; export type Zone = Node & { - __typename?: 'Zone'; - createdAt: Scalars['DateTime']; - customFields?: Maybe; - id: Scalars['ID']; - members: Array; - name: Scalars['String']; - updatedAt: Scalars['DateTime']; + __typename?: 'Zone'; + createdAt: Scalars['DateTime']; + customFields?: Maybe; + id: Scalars['ID']; + members: Array; + name: Scalars['String']; + updatedAt: Scalars['DateTime']; };